.auth-body {
    min-height: 100vh;
    color: var(--brand-text);
    background: #03151f;
}

.auth-page {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100vh;
    padding: clamp(14px, 2vw, 30px);
    place-items: center;
    background:
        linear-gradient(90deg, rgba(2, 18, 29, .28), rgba(2, 18, 29, .12)),
        url("../img/login-lookout-background.png") center center / cover no-repeat fixed,
        #03151f;
}

.auth-page::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 8, 15, .08), rgba(0, 8, 15, .32));
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 60px));
    overflow: hidden;
    border: 1px solid rgba(101, 230, 224, .26);
    border-radius: 30px;
    background: rgba(2, 24, 34, .48);
    box-shadow: 0 34px 90px rgba(0, 8, 16, .58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.auth-shell-recovery {
    min-height: 680px;
}

.auth-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(34px, 5vw, 68px);
    color: #effcf9;
    background:
        radial-gradient(circle at 85% 12%, rgba(139, 217, 199, .2), transparent 20rem),
        radial-gradient(circle at 12% 94%, rgba(73, 127, 145, .24), transparent 22rem),
        linear-gradient(145deg, rgba(2, 25, 37, .9), rgba(4, 72, 80, .78) 58%, rgba(5, 91, 96, .7));
}

.auth-story::after {
    position: absolute;
    right: -90px;
    bottom: -100px;
    width: 310px;
    height: 310px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255, 255, 255, .035), 0 0 0 110px rgba(255, 255, 255, .025);
}

.auth-story > * {
    position: relative;
    z-index: 1;
}

.auth-brand img,
.auth-mobile-brand img {
    width: 205px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
    padding: 5px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
}

.auth-story-content {
    max-width: 620px;
    margin-block: 38px;
}

.auth-eyebrow,
.auth-portal-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #a9ece2;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-eyebrow::before {
    width: 24px;
    height: 2px;
    content: "";
    background: #60d0c0;
}

.auth-story h1 {
    max-width: 660px;
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(2.35rem, 4.3vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.auth-story p {
    max-width: 590px;
    color: rgba(239, 252, 249, .78);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}

.auth-feature-list {
    display: grid;
    gap: 13px;
    margin-top: 30px;
}

.auth-feature {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 13px;
    align-items: start;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 15px;
    background: rgba(255, 255, 255, .065);
}

.auth-feature-number {
    display: grid;
    width: 38px;
    height: 38px;
    color: #062f35;
    font-size: .75rem;
    font-weight: 800;
    border-radius: 11px;
    background: #8bd9c7;
    place-items: center;
}

.auth-feature strong,
.auth-feature small {
    display: block;
}

.auth-feature strong {
    color: #fff;
    font-size: .96rem;
}

.auth-feature small {
    margin-top: 3px;
    color: rgba(239, 252, 249, .67);
    line-height: 1.4;
}

.auth-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.auth-trust span {
    padding: 7px 11px;
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
}

.auth-form-panel {
    display: flex;
    align-items: center;
    padding: clamp(30px, 5vw, 72px);
    background: rgba(249, 253, 252, .94);
    box-shadow: -20px 0 55px rgba(0, 13, 23, .18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.auth-mobile-brand {
    display: none;
}

.auth-portal-label {
    margin-bottom: 10px;
    color: var(--brand-teal);
}

.auth-form-wrap h2 {
    margin-bottom: 9px;
    color: #062f35;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    letter-spacing: -.03em;
}

.auth-form-intro {
    margin-bottom: 28px;
    color: #647b7f;
    line-height: 1.6;
}

.auth-form-panel .form-control {
    min-height: 52px;
    color: #082f38;
    border: 1px solid #cadcda;
    background: #f9fcfb;
}

.auth-form-panel .form-control::placeholder {
    color: #91a4a7;
}

.auth-form-panel .form-label {
    color: #173f46;
    font-size: .9rem;
}

.auth-password-field {
    position: relative;
    margin-top: 8px;
}

.auth-password-field .form-control {
    padding-right: 68px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 52px;
    padding: 7px 8px;
    color: var(--brand-teal-dark);
    font-size: .78rem;
    font-weight: 800;
    border: 0;
    border-radius: 8px;
    background: #e9f7f4;
    transform: translateY(-50%);
}

.auth-text-link,
.auth-back-link {
    color: var(--brand-teal-dark);
    font-size: .86rem;
    font-weight: 700;
}

.auth-back-link {
    display: inline-block;
    margin-bottom: 28px;
}

.auth-text-link:hover,
.auth-back-link:hover {
    color: #054f53;
    text-decoration: underline;
}

.auth-submit {
    min-height: 52px;
}

.auth-help {
    margin: 26px 0 0;
    padding-top: 22px;
    color: #73878a;
    font-size: .83rem;
    line-height: 1.5;
    text-align: center;
    border-top: 1px solid #e3edeb;
}

.password-requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 10px;
    margin-top: 11px;
    color: #7a8e91;
    font-size: .74rem;
}

.password-requirements .is-met {
    color: #277d68;
}

@media (max-width: 900px) {
    .auth-page {
        padding: 16px;
        background-position: 68% center;
        background-attachment: scroll;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 32px);
        border: 1px solid rgba(101, 230, 224, .22);
        border-radius: 22px;
        box-shadow: 0 24px 70px rgba(0, 8, 16, .55);
    }

    .auth-story {
        display: none;
    }

    .auth-form-panel {
        display: block;
        padding: 30px 22px 44px;
        border-radius: 22px;
        background: rgba(249, 253, 252, .93);
    }

    .auth-mobile-brand {
        display: block;
        margin-bottom: clamp(42px, 12vh, 90px);
    }

    .auth-mobile-brand img {
        width: 180px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .password-requirements {
        grid-template-columns: 1fr;
    }
}
