.form-signin-container { top: 0; bottom: 0; left: 0; right: 0; position: fixed; background-color: #f5f5f5; } .form-signin { max-width: 330px; height: auto; position: fixed; left: 0; right: 0; top: 0; bottom: 0; margin: auto; text-align: center; } .form-signin .checkbox { font-weight: 400; } .form-signin .form-control { position: relative; box-sizing: border-box; height: auto; padding: 10px; font-size: 16px; } .form-signin .form-control:focus { z-index: 2; } .form-signin input[type="text"] { margin-bottom: -1px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .form-signin input[type="password"] { margin-bottom: 10px; border-top-left-radius: 0; border-top-right-radius: 0; }