.login-page {
    margin: 0;
    color: #1f2937;
    background: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 56% 44%;
}

.login-story {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 52px 6vw;
    color: #fff;
    background: #071f48 url("../images/login/hero-background-v1.png") center / cover no-repeat;
}

.login-story::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(4 22 54 / 66%), rgb(4 22 54 / 30%)), linear-gradient(0deg, rgb(4 20 45 / 82%), transparent 60%);
}

.login-story > * {
    position: relative;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-brand img {
    width: 94px;
    height: 88px;
    object-fit: contain;
}

.login-brand strong,
.login-brand span {
    display: block;
}

.login-brand strong {
    font-size: 15px;
    line-height: 1.35;
}

.login-brand span {
    margin-top: 5px;
    color: #d5e5f7;
    font-size: 13px;
}

.login-story-copy {
    max-width: 500px;
    padding-bottom: 34px;
}

.login-story-copy h2 {
    margin: 15px 0;
    color: #fff;
    font-size: clamp(36px, 3.7vw, 55px);
    line-height: 1.06;
    letter-spacing: -.035em;
    font-weight: 750;
}

.login-story-copy > p:last-child {
    max-width: 420px;
    color: #e3edf9;
    font-size: 16px;
    line-height: 1.6;
}

.login-story-copy .login-kicker {
    margin-top: 16px;
    color: #f6ce5e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.login-rule {
    width: 72px;
    height: 4px;
    border-radius: 2px;
    background: #e4aa18;
}

.login-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: #fff;
}

.auth-card {
    width: min(100%, 410px);
}

.auth-card::before {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin-bottom: 18px;
    background: linear-gradient(to right, #0b5cab 0 30%, transparent 30% 35%, #e4aa18 35% 65%, transparent 65% 70%, #b4232f 70%);
}

.auth-card-heading {
    margin-bottom: 33px;
}

.auth-card-eyebrow {
    margin: 0 0 12px;
    color: #0b5cab;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.auth-card h1 {
    margin: 0 0 12px;
    color: #112e51;
    font-size: 34px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.auth-card-heading > p:last-child {
    margin: 0;
    color: #5b6878;
    font-size: 15px;
    line-height: 1.55;
}

.auth-feedback {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.45;
}

.auth-feedback-error {
    border-color: #f0b6b6;
    background: #fff5f5;
    color: #9b1c1c;
}

.auth-feedback-success {
    border-color: #a7d8b5;
    background: #f0fbf3;
    color: #176b35;
}

.auth-card form {
    display: grid;
    gap: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.login-field input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid #aebccc;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    font-size: 16px;
}

.login-field input:focus-visible,
.login-page button:focus-visible,
.auth-back:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

.login-password {
    position: relative;
}

.login-password input {
    padding-right: 56px;
}

.login-password-toggle {
    position: absolute;
    right: 2px;
    bottom: 2px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #0b5cab;
    cursor: pointer;
}

.login-password-toggle svg {
    width: 21px;
    height: 21px;
}

.login-password-toggle[hidden] {
    display: none;
}

.auth-submit {
    min-height: 52px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #0b5cab;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.auth-submit:hover {
    background: #08457f;
}

.auth-submit-link {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.auth-back {
    display: inline-block;
    margin-top: 28px;
    color: #0b5cab;
    font-size: 14px;
    font-weight: 650;
}

.forgot-password-link {
    justify-self: end;
    margin-top: -1rem;
    color: #0b5cab;
    font-size: .875rem;
    font-weight: 650;
}

.login-home {
    display: block;
    text-align: center;
}

.auth-logout-form .auth-back {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

@media (max-width: 760px) {
    .login-shell {
        display: block;
    }

    .login-story {
        min-height: 210px;
        height: 210px;
        padding: 20px 22px;
        background-position: center 48%;
    }

    .login-story::before {
        background: linear-gradient(90deg, rgb(4 22 54 / 75%), rgb(4 22 54 / 18%));
    }

    .login-brand {
        gap: 10px;
    }

    .login-brand img {
        width: 70px;
        height: 70px;
    }

    .login-brand strong {
        font-size: 13px;
    }

    .login-brand span {
        font-size: 11px;
    }

    .login-story-copy {
        padding: 0;
    }

    .login-story-copy .login-kicker,
    .login-story-copy > p:last-child,
    .login-rule {
        display: none;
    }

    .login-story-copy h2 {
        max-width: 240px;
        margin: 0 0 4px;
        font-size: 25px;
    }

    .login-content {
        align-items: flex-start;
        padding: 33px 24px 42px;
    }

    .auth-card-heading {
        margin-bottom: 25px;
    }

    .auth-card h1 {
        font-size: 30px;
    }

    .auth-back {
        margin-top: 23px;
    }
}

.auth-field-error { display: block; margin-top: .4rem; color: #9b1c1c; font-size: .82rem; line-height: 1.4; }
.login-field input[aria-invalid="true"] { border-color: #b4232f; }
.auth-signup-prompt { margin: 1.25rem 0 0; color: #5b6878; font-size: .9rem; text-align: center; }
.auth-signup-prompt a { color: #0b5cab; font-weight: 700; }
.auth-signup-prompt a:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
