content { justify-content: center; align-items: center; } .login { display: flex; flex-direction: column; width: 500px; border-radius: 5px; background: white; box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.3); padding: 15px; max-width: 100vw; } .login > div { display: flex; margin-bottom: 5px; } .login > div > * { flex: 1; } #login { width: 50%; border: none; border-radius: 5px; font-size: x-large; color: white; background-color: #9f3050; margin-left: 25%; margin-top: 15px; cursor: pointer; transition-duration: 0.2s; } #login:hover { background-color: #c24166; } #login:active { background-color: #85233f; }