html{ height:100vh; overflow:hidden; } body,main{ box-sizing:border-box; } main{ display:flex; align-items:center; justify-content:center; flex-direction:column } .login{ text-align: center; width: 100%; margin-left: auto; margin-right: auto; } input, input[type="email"], input[type="date"] { text-align: center; } ::-webkit-input-placeholder { text-align: center; } :-moz-placeholder { text-align: center; } @media screen and (min-height: 239px) { .login{ max-width: 235px; } } @media screen and (min-height: 309px) { .login{ max-width: 290px; } } @media screen and (min-height: 349px) { .login{ margin-top: 2%; max-width: 340px; } } @media screen and (min-height: 539px) { .login{ margin-top: 10%; max-width: 520px; } } @media screen and (min-height: 839px) { .login{ margin-top: 12%; max-width: 600px; } } img{ width:100%; } .alertLogin{ text-align: center; min-width:90%; } form{ width:100%; display:flex; flex-direction:column; gap:1rem; margin:auto; } form > div { display:flex; flex-direction:column; align-items:center; } label{ color: #56baed; font-family: "Poppins", sans-serif; font-size:1rem; } input{ padding: 10px; background-color: white; border: 1px solid #56baed; color: #0d0d0d; border-radius:5px; transition: border-bottom 0.5s; min-width:90%; box-sizing:border-box; height: 3.2rem; text-align:center; } input:focus-visible{ outline:none; border-bottom:3px solid #56baed; } button{ min-height: 3.2rem; margin-top:1rem; min-width:90%; padding: 10px; background-color: #56baed; border: none; color: white; text-align: center; text-decoration: none; display: inline-block; text-transform: uppercase; -webkit-box-shadow: 0 10px 30px 0 rgba(95,186,233,0.4); box-shadow: 0 10px 30px 0 rgba(95,186,233,0.4); -webkit-border-radius: 5px; border-radius: 5px; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -ms-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; cursor:pointer; } button:hover{ background-color: #39ace7; } input::-webkit-date-and-time-value { text-align: center; }