html, body { height: 100%; } body { display: flex; align-items: center; padding-top: 40px; padding-bottom: 40px; background-color: #f5f5f5; } .form-signin { width: 100%; max-width: 400px; padding: 15px; margin: auto; justify-content: center; } .form-signin .checkbox { font-weight: 400; } .form-signin .form-floating:focus-within { z-index: 2; } .top { margin-bottom: -1px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .middle { border-radius: 0; margin-bottom: -1px; } .bottom { border-top-left-radius: 0; border-top-right-radius: 0; margin-bottom: 1rem; } .g-recaptcha { display: flex; justify-content: center; }