/* Loaded only when the login form is rendered. */
body {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    background: #f2f6fa;
}

#header {
    min-width: 0;
    padding: 0;
    border: 0;
    background: white;
}

#header h1 div {
    display: block;
    margin: 0;
    padding: 8px 20px;
    animation: none;
    text-decoration: none;
}

#mainContent {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.login-header {
    padding: 0 5%;
    border-bottom: 2px solid #14558f;
    background: white;
}

.login-brand {
    display: block;
    max-width: 1090px;
    margin: 0 auto;
    color: #183e65;
    font: 21px/62px Arial, sans-serif;
    letter-spacing: -0.035em;
}

.login-mark {
    position: relative;
    display: inline-block;
    width: 31px;
    height: 34px;
    margin-right: 9px;
    vertical-align: middle;
}

.login-mark::before,
.login-mark::after {
    position: absolute;
    top: 5px;
    left: 2px;
    width: 16px;
    height: 21px;
    border: 2px solid #84a5c2;
    border-radius: 2px;
    content: "";
}

.login-mark::after {
    top: 1px;
    left: 8px;
    border-color: #175b94;
    background: linear-gradient(#175b94, #175b94) 3px 5px / 10px 2px no-repeat,
                linear-gradient(#175b94, #175b94) 3px 9px / 10px 2px no-repeat, white;
}

.login-content {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 396px;
    border: 1px solid #bfcedb;
    border-radius: 9px;
    background: white;
    box-shadow: 0 5px 15px rgba(23, 59, 97, 0.06);
}

#login-heading {
    padding: 23px 29px 19px;
    border-bottom: 1px solid #cedce8;
    border-radius: 8px 8px 0 0;
    background: #e7f0f8;
    color: #112f4d;
    font: bold 29px/1.15 Arial, sans-serif;
    letter-spacing: -0.035em;
}

#login-form {
    padding: 23px 29px 28px;
}

#login-form .row {
    margin-bottom: 18px;
}

#login-form label {
    display: block;
    margin-bottom: 6px;
    color: #253d51;
    font: bold 14px/1.45 Arial, sans-serif;
}

#login-form label .required {
    color: #526577;
    font-weight: normal;
}

#login-form input[type="text"],
#login-form input[type="password"],
#login-form input[type="submit"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid #899eaf;
    border-radius: 5px;
    background: white;
    color: #142c3d;
    font: 16px/1.3 Arial, sans-serif;
}

#login-form input[type="submit"] {
    margin-top: 3px;
    border-color: #124c80;
    background: #185a96;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#login-form input[type="submit"]:hover {
    background: #104b7c;
}

#login-form input:focus {
    outline: 3px solid #0e67ad;
    outline-offset: 2px;
}

#login-form .error input,
#login-form input.error {
    border-color: #a53535;
}

#login-form .errorMessage {
    margin-top: 6px;
    color: #9d2424;
    font-size: 14px;
    line-height: 1.4;
}

#footer {
    margin: 0;
    padding: 15px 5%;
    border-top: 1px solid #d3dfe9;
    background: #eff4fa;
    color: #4b6073;
    font: 12px/1.55 Arial, sans-serif;
}

@media (min-width: 601px) {
    #footer br { display: none; }
}

@media (max-width: 600px) {
    .login-brand { line-height: 55px; }
    .login-content { align-items: flex-start; padding-top: 52px; }
    #login-heading { padding: 21px 23px 17px; }
    #login-form { padding: 22px 23px 25px; }
    #footer { padding: 13px 20px; text-align: center; }
}

/* Turnstile's horizontal widget needs 300px inside the form. */
@media (max-width: 388px) {
    .login-with-turnstile {
        padding-inline: clamp(4px, calc(50% - 160px), 20px);
    }

    .login-with-turnstile #login-heading,
    .login-with-turnstile #login-form {
        padding-inline: clamp(0px, calc(50% - 150px), 23px);
    }
}

@media (max-height: 460px) {
    .login-content { padding-top: 18px; padding-bottom: 18px; }
}
