.form-container{ margin-top: 5rem; } form{ display: flex; flex-direction: column; width: 15rem; margin: 0 auto; border-radius: 25px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.12); padding: 2rem; } form input, form select { border-radius: 3px; height: 2rem; box-sizing: border-box; } form select { background-color: white; border: 1px solid #8f8f9d; } form label { color: grey; margin-bottom: 0.1rem; } form input[type=text] { outline: 2px solid transparent; border: 1px solid #8f8f9d; transition: outline-color 0.2s ease; padding: 0.2rem 0.4rem; } form input[type=text]:focus { outline: 2px solid #7ecfff; outline-offset: -2px; } form input[type=submit] { background-color: Dodgerblue; color: white; border: 1px solid #8f8f9d; } form input[type=submit]:hover { background-color: #1EB6FF; } .form-header{ text-align: center; margin: 0 0 1.5rem 0; } .input-error, select{ margin-bottom: 0.5rem; } .error-border { border: 1px solid red !important; } .error-border:focus { outline: 2px solid red !important; } .input-error{ color: red; min-height: 1.2rem; }