.login-page {
    --login-accent: #eca726;
    --login-focus: rgba(236, 167, 38, .25);
    --login-link: #1381bc;
    margin: 0;
    min-height: 100vh;
    background: #f6f7f2;
    color: #000;
    font-family: "sofia-pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

    .login-page.victor {
        --login-accent: #074e50;
        --login-focus: rgba(7, 78, 80, .18);
        --login-link: #074e50;
    }

    .login-page *,
    .login-page *::before,
    .login-page *::after {
        box-sizing: border-box;
    }

    .login-page a {
        color: var(--login-link);
    }

.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 100px 16px 32px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
}

.login-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

    .login-heading h1 {
        margin: 0;
        font-size: 25px;
        font-weight: 400;
        line-height: 1.2;
    }

.login-brand {
    display: block;
    flex-shrink: 0;
}

    .login-brand img {
        display: block;
        max-width: 100%;
        max-height: 85px;
    }

.victor .login-brand img {
    max-width: 180px;
}

.login-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecec;
    color: #a32020;
    font-size: 14px;
}

.login-field {
    position: relative;
    margin-bottom: 20px;
    padding-top: 20px;
}

    .login-field label {
        position: absolute;
        top: 28px;
        left: 2px;
        color: #757575;
        font-size: 16px;
        line-height: 24px;
        pointer-events: none;
        transition: top .15s ease, font-size .15s ease, line-height .15s ease, color .15s ease;
    }

    .login-field input {
        display: block;
        width: 100%;
        height: 40px;
        margin: 0;
        padding: 0 2px;
        border: 0;
        border-bottom: 1px solid #cfcfcf;
        border-radius: 0;
        background: transparent;
        color: #000;
        font: inherit;
        /* Chrome forces 13.33px sans-serif on autofilled text until the first interaction; matching it avoids a jump. */
        font-family: sans-serif;
        font-size: 13.3333px;
    }

        .login-field input:focus {
            border-bottom-color: var(--login-accent);
            outline: none;
            box-shadow: 0 1px 0 0 var(--login-accent);
        }

        /* placeholder=" " in the markup is what lets :placeholder-shown mean "empty". */
        .login-field input:focus + label,
        .login-field input:not(:placeholder-shown) + label {
            top: 0;
            color: #000;
            font-size: 14px;
            font-weight: 700;
            line-height: 20px;
        }

        /* On its own: a browser that doesn't know this selector would drop the whole rule above. */
        .login-field input:-webkit-autofill + label {
            top: 0;
            color: #000;
            font-size: 14px;
            font-weight: 700;
            line-height: 20px;
        }

        .login-field input:focus + label {
            color: var(--login-accent);
        }

        /* Holds off Chrome's autofill tint, as the old page did. */
        .login-field input:-webkit-autofill {
            transition: background-color 5000s ease-in-out 0s;
        }

.login-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 24px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .login-remember input {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--login-accent);
    }

.login-page .login-forgot {
    text-decoration: underline;
}

.login-submit {
    display: block;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--login-accent);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

    .login-submit:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px var(--login-focus);
    }

    .login-submit:disabled {
        opacity: .7;
        cursor: default;
    }

.login-help {
    margin: 20px 0 0;
    color: #5f6368;
    font-size: 14px;
}

/* iOS zooms into any field under 16px, and its WebKit doesn't force the autofill font anyway. */
@supports (-webkit-touch-callout: none) {
    .login-field input {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .login-heading {
        flex-direction: column;
    }
}

@media (max-width: 439.98px) {
    .login {
        padding-right: 0;
        padding-left: 0;
    }

    .login-card {
        border-radius: 0;
    }

    .login-help {
        padding: 0 16px;
    }
}
