/* Login, password reset, maintenance and the terms page. These pages do not extend base.html and load
   Bootstrap 4 + signin.css, so this file is loaded after signin.css and only overrides what it needs. */
html, body { height: auto; min-height: 100%; }
body { background: #f4f6f8; padding-top: 32px; padding-bottom: 32px; }

.form-signin { width: 100%; max-width: 400px; margin: 0 auto 18px; padding: 32px 28px; background: #fff; border: 1px solid #e3e6ea;
    border-radius: 14px; box-shadow: 0 6px 24px rgba(16, 24, 40, .08); text-align: center; }
.form-signin img { height: 72px; width: auto; padding: 0; margin-bottom: 10px; }
.form-signin .form-control { height: auto; padding: .7rem .9rem; border-radius: 10px; border: 1px solid #ced4da; margin-bottom: 12px; font-size: 16px; }
.form-signin input[type="email"], .form-signin input[type="password"] { margin-bottom: 12px; border-radius: 10px; }
.form-signin .form-control:focus { border-color: #04abeb; box-shadow: 0 0 0 .2rem rgba(4, 171, 235, .2); }
.form-signin .btn { border-radius: 10px; padding: .7rem 1rem; font-weight: 600; }
.form-signin .btn-block { width: 100%; }
.form-signin a { color: #0a8fc4; font-size: 14px; }
.form-signin .checkbox label { font-size: 14px; color: #495057; }
.form-signin .iti { width: 100%; display: block; margin-top: 8px; }
.form-signin .iti input { width: 100%; }
.form-signin > span { font-size: 14px; color: #495057; display: block; margin-bottom: 4px; }
.form-signin .text-muted { font-size: 12px; margin-bottom: 0 !important; }

/* password reset: the second heading and divider between the two cards */
body > .main-container hr, .main-container > hr { display: none; }
.main-container > h3 { font-size: 18px; font-weight: 700; margin: 6px 0 12px; }
.main-container { max-width: 440px; margin: 0 auto; padding: 0 16px; }
.main-container .content { margin-top: 0 !important; }

/* messages above the card */
#page-content-wrapper, .main-container .content { max-width: 400px; margin-left: auto; margin-right: auto; padding: 0 16px; }
.alert { max-width: 100%; margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; border-width: 1px; font-size: 14px !important; text-align: left; }
.alert h6 { margin: 0; font-size: 14px; font-weight: 600; }
.alert-error { background: #fdecec !important; color: #842029 !important; border-color: #f5c2c7 !important; }
.alert-info, .alert-success { background: #e7f6ec !important; color: #14532d !important; border-color: #b7e1c4 !important; opacity: 1 !important; }
.alert-warning { background: #fff3cd !important; color: #5c4400 !important; border-color: #e0b93c !important; }

/* terms page: slim bar + reading card */
.termspage { max-width: 960px; margin: 0 auto; padding: 0 16px 56px; }
.termspage .main-container { max-width: none; padding: 0; width: 100% !important; }
.termspage .card-like { background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: 24px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.termspage h1 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.termspage form { margin-top: 16px; }
.termspage .btn { border-radius: 8px; }

@media (max-width: 480px) {
    .form-signin { padding: 24px 20px; border-radius: 12px; }
}
