/* ===== Home Login Hero (RIVR-inspired glassmorphism) ===== */
.login-hero {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(0.5rem, env(safe-area-inset-top, 0px))
        max(0.5rem, env(safe-area-inset-right, 0px))
        max(0.5rem, env(safe-area-inset-bottom, 0px))
        max(0.5rem, env(safe-area-inset-left, 0px));
    background: #f0f0f0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
    --login-hero-glass-blur: 10px;
    --login-hero-glass-bg: rgba(255, 255, 255, 0.76);
    --login-hero-glass-bg-soft: rgba(255, 255, 255, 0.58);
    --login-hero-glass-border: rgba(255, 255, 255, 0.48);
    --login-hero-intro-bg: rgba(255, 255, 255, 0.94);
    --login-hero-intro-text: #1e325a;
    --login-hero-intro-muted: #4a5568;
    --login-hero-form-bg: rgba(255, 255, 255, 0.52);
    --login-hero-form-blur: 4px;
}

.login-hero.login-hero-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, visibility 0s;
}

body.login-hero-active {
    overflow: hidden;
}

.login-hero__outer {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(0.5rem, env(safe-area-inset-top, 0px))
        max(0.5rem, env(safe-area-inset-right, 0px))
        max(0.5rem, env(safe-area-inset-bottom, 0px))
        max(0.5rem, env(safe-area-inset-left, 0px));
    min-height: 0;
    box-sizing: border-box;
}

.login-hero__section {
    position: relative;
    width: min(100%, 96rem);
    height: min(100%, calc(100dvh - 1rem));
    max-height: calc(100dvh - 1rem);
    margin: auto;
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f0f0f0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}

.login-hero__section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background-image: radial-gradient(rgba(30, 50, 90, 0.055) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 88% 82% at 50% 46%, #000 35%, transparent 100%);
}

@media (min-width: 768px) {
    .login-hero__outer {
        padding:
            max(1.25rem, env(safe-area-inset-top, 0px))
            max(1.25rem, env(safe-area-inset-right, 0px))
            max(1.25rem, env(safe-area-inset-bottom, 0px))
            max(1.25rem, env(safe-area-inset-left, 0px));
    }

    .login-hero__section {
        border-radius: 3rem;
        height: min(100%, calc(100dvh - 2.5rem));
        max-height: calc(100dvh - 2.5rem);
    }
}

.login-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #f0f0f0;
}

.login-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 38%;
    z-index: 0;
}

.login-hero__video-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 72% 68% at 50% 40%,
            rgba(240, 240, 240, 0) 38%,
            rgba(240, 240, 240, 0.55) 72%,
            #f0f0f0 100%
        ),
        linear-gradient(
            90deg,
            #f0f0f0 0%,
            rgba(240, 240, 240, 0.92) 6%,
            rgba(240, 240, 240, 0) 26%,
            rgba(240, 240, 240, 0) 74%,
            rgba(240, 240, 240, 0.92) 94%,
            #f0f0f0 100%
        ),
        linear-gradient(
            180deg,
            #f0f0f0 0%,
            rgba(240, 240, 240, 0.88) 5%,
            rgba(240, 240, 240, 0) 22%,
            rgba(240, 240, 240, 0) 78%,
            rgba(240, 240, 240, 0.82) 95%,
            #f0f0f0 100%
        );
    box-shadow:
        inset 0 0 72px 36px rgba(240, 240, 240, 0.95),
        inset 0 0 120px 64px rgba(240, 240, 240, 0.55);
}

@media (min-width: 768px) {
    .login-hero__video {
        object-position: center center;
    }

    .login-hero__video-vignette {
        background:
            radial-gradient(
                ellipse 78% 74% at 50% 50%,
                rgba(240, 240, 240, 0) 42%,
                rgba(240, 240, 240, 0.5) 74%,
                #f0f0f0 100%
            ),
            linear-gradient(
                90deg,
                #f0f0f0 0%,
                rgba(240, 240, 240, 0.9) 8%,
                rgba(240, 240, 240, 0) 24%,
                rgba(240, 240, 240, 0) 76%,
                rgba(240, 240, 240, 0.9) 92%,
                #f0f0f0 100%
            ),
            linear-gradient(
                180deg,
                #f0f0f0 0%,
                rgba(240, 240, 240, 0.85) 6%,
                rgba(240, 240, 240, 0) 20%,
                rgba(240, 240, 240, 0) 80%,
                rgba(240, 240, 240, 0.75) 94%,
                #f0f0f0 100%
            );
        box-shadow:
            inset 0 0 88px 44px rgba(240, 240, 240, 0.92),
            inset 0 0 140px 72px rgba(240, 240, 240, 0.5);
    }
}

.login-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse 90% 86% at 50% 42%,
        transparent 40%,
        rgba(240, 240, 240, 0.25) 72%,
        rgba(240, 240, 240, 0.55) 100%
    );
}

.login-hero__ambience {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.login-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0;
}

.login-hero__orb--1 {
    top: 12%;
    left: 8%;
    width: 18rem;
    height: 18rem;
    background: rgba(30, 50, 90, 0.07);
}

.login-hero__orb--2 {
    right: 10%;
    top: 22%;
    width: 14rem;
    height: 14rem;
    background: rgba(255, 180, 120, 0.12);
}

.login-hero__orb--3 {
    left: 18%;
    bottom: 14%;
    width: 20rem;
    height: 20rem;
    background: rgba(30, 50, 90, 0.05);
}

.login-hero__features {
    display: none;
}

.login-hero__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.35rem, 1.2vw, 0.55rem);
    width: min(100%, 42rem);
    padding: clamp(0.25rem, 0.8vw, 0.5rem) clamp(0.65rem, 2.5vw, 1.25rem);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-align: center;
}

.login-hero__intro .login-hero__badge {
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.48);
    -webkit-backdrop-filter: blur(var(--login-hero-glass-blur));
    backdrop-filter: blur(var(--login-hero-glass-blur));
}

.login-hero__intro .login-hero__badge span {
    font-size: clamp(0.68rem, 2vw, 0.78rem);
    font-weight: 500;
    color: rgba(30, 50, 90, 0.9);
}

.login-hero__intro .login-hero__badge svg {
    width: 0.9rem;
    height: 0.9rem;
}

.login-hero__intro-title {
    margin: 0;
    font-size: clamp(1.15rem, 3.2vw, 2rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--login-hero-intro-text);
    text-wrap: balance;
    -webkit-text-stroke: 1.5px #fff;
    paint-order: stroke fill;
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.95),
        0 1px 0 rgba(255, 255, 255, 0.85),
        0 0 18px rgba(240, 240, 240, 0.85);
}

.login-hero__intro-desc {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(0.76rem, 1.7vw, 0.95rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--login-hero-intro-muted);
    text-wrap: pretty;
    -webkit-text-stroke: 1px #fff;
    paint-order: stroke fill;
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.9),
        0 0 12px rgba(240, 240, 240, 0.9);
}

@media (min-width: 1024px) {
    .login-hero__center {
        max-width: min(100%, 72rem);
    }

    .login-hero__intro {
        width: min(100%, 68rem);
    }

    .login-hero__intro-desc {
        max-width: none;
        width: 100%;
        white-space: nowrap;
        text-wrap: nowrap;
        overflow: visible;
        font-size: clamp(0.72rem, 0.72vw + 0.52rem, 0.92rem);
        line-height: 1.35;
    }
}

@media (min-width: 768px) {
    .login-hero__overlay {
        background: radial-gradient(
            ellipse 92% 88% at 50% 50%,
            transparent 44%,
            rgba(240, 240, 240, 0.2) 74%,
            rgba(240, 240, 240, 0.45) 100%
        );
    }
}

.login-hero__layer {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Vertically centered intro + login form */
.login-hero__main {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 1.2vh, 0.85rem);
    padding:
        clamp(0.2rem, 0.8vh, 0.45rem)
        clamp(0.65rem, 2.5vw, 1.25rem)
        clamp(4.25rem, 11vh, 5.75rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

/* Nav */
.login-hero__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    padding: clamp(0.6rem, 1.8vw, 1rem) clamp(0.65rem, 2.5vw, 1.25rem) 0;
    gap: clamp(0.35rem, 1.2vw, 0.75rem);
}

@media (min-width: 768px) {
    .login-hero__nav {
        padding: 1.5rem 2.5rem 0;
    }
}

.login-hero__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
    color: rgba(30, 50, 90, 0.92);
}

.login-hero__brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    isolation: isolate;
}

.login-hero__brand-logo img {
    display: block;
    width: 130%;
    height: 130%;
    max-width: none;
    object-fit: cover;
    border-radius: 50%;
    background: transparent !important;
    mix-blend-mode: multiply;
    clip-path: circle(50% at 50% 50%);
}

.login-hero__brand span {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .login-hero__brand-logo {
        width: 2.25rem;
        height: 2.25rem;
    }

    .login-hero__brand span {
        font-size: 0.92rem;
    }
}

.login-hero__term-pill {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(30, 50, 90, 0.88);
    background: var(--login-hero-glass-bg-soft);
    border: 1px solid var(--login-hero-glass-border);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(var(--login-hero-glass-blur));
    backdrop-filter: blur(var(--login-hero-glass-blur));
    max-width: 58%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .login-hero__term-pill {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }
}

/* Headline */
.login-hero__center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    flex: 0 0 auto;
    padding: 0 clamp(0.65rem, 2.5vw, 1.25rem);
    max-width: 56rem;
}

@media (min-width: 768px) {
    .login-hero__center {
        padding-inline: 2rem;
    }
}

.login-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    margin-bottom: 0;
    border-radius: 999px;
    background: var(--login-hero-glass-bg-soft);
    border: 1px solid var(--login-hero-glass-border);
    -webkit-backdrop-filter: blur(var(--login-hero-glass-blur));
    backdrop-filter: blur(var(--login-hero-glass-blur));
}

.login-hero__badge svg {
    width: 1rem;
    height: 1rem;
    color: rgba(30, 50, 90, 0.8);
    flex-shrink: 0;
}

.login-hero__badge span {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(30, 50, 90, 0.9);
}

.login-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.65rem, 5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #5e6470;
}

.login-hero__lead {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(0.82rem, 2.2vw, 1.05rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(94, 100, 112, 0.85);
}

/* Form card — centered with intro in login-hero__main */
.login-hero__form-wrap {
    position: relative;
    z-index: 10;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    min-height: 0;
    overflow: visible;
}

.login-hero__form-card {
    position: relative;
    z-index: 1;
    width: min(100%, clamp(17.5rem, 88vw, 24rem));
    padding: clamp(1rem, 2.5vw, 1.6rem);
    border-radius: clamp(1.1rem, 2.5vw, 1.65rem);
    background: var(--login-hero-form-bg);
    border: 1px solid rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(var(--login-hero-form-blur));
    backdrop-filter: blur(var(--login-hero-form-blur));
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.login-hero__form-head {
    text-align: center;
    margin-bottom: 1.1rem;
}

.login-hero__form-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.65rem, 8vw, 3.25rem);
    height: clamp(2.65rem, 8vw, 3.25rem);
    margin: 0 auto clamp(0.4rem, 1.5vw, 0.65rem);
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    isolation: isolate;
}

.login-hero__form-logo {
    display: block;
    width: 130%;
    height: 130%;
    max-width: none;
    object-fit: cover;
    border-radius: 50%;
    background: transparent !important;
    mix-blend-mode: multiply;
    clip-path: circle(50% at 50% 50%);
}

.login-hero__form-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(30, 50, 90, 0.95);
}

.login-hero__form-head p {
    margin: 0.2rem 0 0;
    font-size: 0.76rem;
    font-weight: 400;
    color: rgba(30, 50, 90, 0.62);
}

.login-hero__field {
    margin-bottom: 0.75rem;
}

.login-hero__field label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(30, 50, 90, 0.65);
}

.login-hero__input {
    width: 100%;
    padding: 0.62rem 0.75rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(30, 50, 90, 0.95);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(30, 50, 90, 0.12);
    border-radius: 0.65rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.login-hero__input:focus {
    border-color: rgba(30, 50, 90, 0.35);
    box-shadow: 0 0 0 3px rgba(30, 50, 90, 0.1);
}

.login-hero__input-wrap {
    position: relative;
}

.login-hero__input-wrap .login-hero__input {
    padding-right: 2.5rem;
}

.login-hero__toggle-pw {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.2rem;
    border: 0;
    background: transparent;
    color: rgba(30, 50, 90, 0.45);
    cursor: pointer;
}

.login-hero__toggle-pw:hover {
    color: rgba(30, 50, 90, 0.75);
}

.login-hero__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.72rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: rgba(30, 50, 90, 0.88);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.login-hero__submit:hover {
    background: rgba(30, 50, 90, 1);
}

.login-hero__submit:active {
    transform: scale(0.98);
}

.login-hero__submit svg {
    width: 1rem;
    height: 1rem;
}

/* Bottom dock — desktop layout at every breakpoint */
.login-hero__bottom {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

/* Info card — bottom left */
.login-hero__info-card {
    position: absolute;
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    left: clamp(0.55rem, 2vw, 2.5rem);
    right: auto;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: max-content;
    max-width: calc(100% - 9.5rem);
    padding: clamp(0.5rem, 1.2vw, 0.85rem) clamp(0.55rem, 1.4vw, 0.9rem);
    border-radius: clamp(1rem, 2vw, 2.2rem);
    background: var(--login-hero-glass-bg-soft);
    border: 1px solid var(--login-hero-glass-border);
    -webkit-backdrop-filter: blur(var(--login-hero-glass-blur));
    backdrop-filter: blur(var(--login-hero-glass-blur));
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    pointer-events: auto;
}

.login-hero__info-kicker {
    margin: 0;
    width: max-content;
    max-width: 100%;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(30, 50, 90, 0.55);
}

.login-hero__info-value {
    margin: 0;
    width: max-content;
    max-width: 100%;
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: rgba(30, 50, 90, 0.92);
}

.login-hero__info-sub {
    margin: 0;
    width: max-content;
    max-width: 100%;
    font-size: clamp(0.52rem, 1.8vw, 0.68rem);
    font-weight: 400;
    color: rgba(30, 50, 90, 0.58);
    line-height: 1.35;
    white-space: nowrap;
}

/* Schedule corner — bottom right */
.login-hero__corner {
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 6;
    display: inline-flex;
    align-items: flex-start;
    gap: clamp(0.45rem, 1.5vw, 0.85rem);
    width: max-content;
    max-width: calc(100% - 0.5rem);
    padding:
        clamp(0.55rem, 1.4vw, 1.1rem)
        clamp(0.55rem, 1.2vw, 0.85rem)
        max(clamp(0.55rem, 1.4vw, 1.1rem), env(safe-area-inset-bottom, 0px))
        clamp(0.85rem, 2.2vw, 1.65rem);
    background: #f0f0f0;
    border-top-left-radius: clamp(1.25rem, 4vw, 3.5rem);
    border-top-right-radius: 0;
    box-sizing: border-box;
    pointer-events: auto;
}

.login-hero__corner-mask--top,
.login-hero__corner-mask--left {
    display: block;
    position: absolute;
    pointer-events: none;
}

.login-hero__corner-mask--top {
    top: clamp(-1.25rem, -3.5vw, -3.5rem);
    right: 0;
    width: clamp(1.25rem, 3.5vw, 3.5rem);
    height: clamp(1.25rem, 3.5vw, 3.5rem);
}

.login-hero__corner-mask--left {
    bottom: 0;
    left: clamp(-1.25rem, -3.5vw, -3.5rem);
    width: clamp(1.25rem, 3.5vw, 3.5rem);
    height: clamp(1.25rem, 3.5vw, 3.5rem);
}

.login-hero__corner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(2rem, 5.5vw, 3.5rem);
    height: clamp(2rem, 5.5vw, 3.5rem);
    margin-top: 0.05rem;
    border-radius: 999px;
    background: rgba(30, 50, 90, 0.05);
    border: 1px solid rgba(30, 50, 90, 0.1);
    flex-shrink: 0;
}

.login-hero__corner-icon svg {
    width: clamp(0.95rem, 2.5vw, 1.35rem);
    height: clamp(0.95rem, 2.5vw, 1.35rem);
    color: rgba(30, 50, 90, 0.8);
}

.login-hero__corner-copy {
    flex: 1 1 auto;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.login-hero__corner-title {
    margin: 0;
    font-size: clamp(0.78rem, 2.2vw, 1.1rem);
    font-weight: 600;
    color: rgba(30, 50, 90, 0.95);
    line-height: 1.25;
    white-space: nowrap;
}

.login-hero__corner-meta {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    margin-top: 0;
}

.login-hero__corner-meta span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    font-size: clamp(0.52rem, 1.7vw, 0.78rem);
    font-weight: 400;
    color: rgba(30, 50, 90, 0.62);
    line-height: 1.35;
    white-space: nowrap;
}

.login-hero__corner-meta strong {
    font-weight: 600;
    color: rgba(30, 50, 90, 0.82);
}

@media (min-width: 768px) {
    .login-hero__corner {
        align-items: center;
        max-width: min(calc(100% - 0.75rem), 36rem);
    }

    .login-hero__corner-icon {
        margin-top: 0;
    }

    .login-hero__corner-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.35rem 0.85rem;
    }
}

@media (min-width: 1200px) {
    .login-hero__corner {
        max-width: min(calc(100% - 1rem), 52rem);
    }

    .login-hero__corner-copy {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.85rem;
    }

    .login-hero__corner-title {
        flex-shrink: 0;
    }

    .login-hero__corner-meta {
        flex-wrap: nowrap;
        gap: 0.9rem;
    }

    .login-hero__corner-meta span + span {
        position: relative;
        padding-left: 0.9rem;
    }

    .login-hero__corner-meta span + span::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: rgba(30, 50, 90, 0.28);
        transform: translateY(-50%);
    }
}

.login-hero__footer {
    position: relative;
    z-index: 6;
    flex-shrink: 0;
    width: 100%;
    padding:
        0.55rem clamp(0.75rem, 2vw, 1.25rem)
        max(0.55rem, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(30, 50, 90, 0.08);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(var(--login-hero-glass-blur));
    backdrop-filter: blur(var(--login-hero-glass-blur));
}

.login-hero__footer .site-footer-line {
    justify-content: center;
}

/* Entrance animations */
@keyframes loginHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loginHeroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes loginHeroSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes loginHeroSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-hero-visible .login-hero__badge {
    animation: loginHeroFadeUp 0.6s ease-out both;
}

.login-hero-visible .login-hero__intro {
    animation: loginHeroFadeIn 0.8s ease-out 0.12s both;
}

.login-hero-visible .login-hero__title {
    animation: loginHeroFadeUp 0.8s ease-out 0.15s both;
}

.login-hero-visible .login-hero__lead {
    animation: loginHeroFadeIn 0.8s ease-out 0.3s both;
}

.login-hero-visible .login-hero__form-card {
    animation: loginHeroFadeIn 0.8s ease-out 0.35s both;
}

.login-hero-visible .login-hero__info-card {
    animation: loginHeroSlideLeft 0.8s ease-out 0.2s both;
}

.login-hero-visible .login-hero__corner {
    animation: loginHeroSlideUp 0.8s ease-out 0.4s both;
}

@media (prefers-reduced-motion: reduce) {
    .login-hero-visible .login-hero__badge,
    .login-hero-visible .login-hero__title,
    .login-hero-visible .login-hero__lead,
    .login-hero-visible .login-hero__form-card,
    .login-hero-visible .login-hero__info-card,
    .login-hero-visible .login-hero__corner,
    .login-hero-visible .login-hero__intro {
        animation: none;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .login-hero__form-card,
    .login-hero__info-card,
    .login-hero__badge,
    .login-hero__term-pill {
        background: rgba(255, 255, 255, 0.92);
    }

    .login-hero__form-card {
        background: rgba(255, 255, 255, 0.62);
    }
}

/* ===== Narrow screens: squeeze in place (same layout as desktop) ===== */
@media (max-width: 767px) {
    .login-hero__outer {
        padding:
            max(0.35rem, env(safe-area-inset-top, 0px))
            max(0.35rem, env(safe-area-inset-right, 0px))
            max(0.35rem, env(safe-area-inset-bottom, 0px))
            max(0.35rem, env(safe-area-inset-left, 0px));
    }

    .login-hero__section {
        border-radius: 1rem;
        height: min(100%, calc(100dvh - 0.7rem));
        max-height: calc(100dvh - 0.7rem);
    }

    .login-hero__main {
        padding-bottom: clamp(4.5rem, 13vh, 6rem);
        gap: 0.35rem;
    }

    .login-hero__nav {
        padding: 0.6rem clamp(0.55rem, 2vw, 0.85rem) 0;
        gap: 0.35rem;
    }

    .login-hero__center {
        padding-inline: clamp(0.55rem, 2vw, 0.85rem);
    }

    .login-hero__badge {
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.3rem;
    }

    .login-hero__badge span {
        font-size: clamp(0.62rem, 2.5vw, 0.72rem);
    }

    .login-hero__title {
        font-size: clamp(1.1rem, 4.8vw, 1.55rem);
    }

    .login-hero__term-pill {
        max-width: none;
        font-size: clamp(0.48rem, 2.2vw, 0.64rem);
        padding: 0.24rem 0.45rem;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }

    .login-hero__info-card {
        max-width: calc(100% - 8.5rem);
    }

    .login-hero__form-head {
        margin-bottom: clamp(0.55rem, 2vw, 0.85rem);
    }

    .login-hero__field {
        margin-bottom: 0.55rem;
    }
}

@media (max-width: 380px) {
    .login-hero__info-card {
        max-width: calc(100% - 7.75rem);
        left: 0.45rem;
    }

    .login-hero__corner {
        max-width: calc(100% - 0.25rem);
    }
}

/* ===== Large screens: richer composition ===== */
@media (min-width: 1024px) {
    .login-hero__section::before {
        opacity: 1;
    }

    .login-hero__orb {
        opacity: 1;
    }

    .login-hero__intro {
        width: min(100%, 68rem);
        gap: 0.5rem;
    }

    .login-hero__intro-title {
        font-size: clamp(1.45rem, 2.4vw, 2.15rem);
        -webkit-text-stroke: 2px #fff;
    }

    .login-hero__intro-desc {
        font-size: clamp(0.78rem, 0.68vw + 0.55rem, 0.92rem);
        -webkit-text-stroke: 1.25px #fff;
    }

    .login-hero__badge {
        padding: 0.55rem 1.1rem;
    }

    .login-hero__badge span {
        font-size: 0.9rem;
    }

    .login-hero__form-card {
        width: min(100%, 25.5rem);
        padding: 1.65rem;
        background: var(--login-hero-form-bg);
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
    }

    .login-hero__form-head h2 {
        font-size: 1.35rem;
    }

    .login-hero__info-card {
        padding: 0.85rem 1.1rem;
    }

    .login-hero__info-value {
        font-size: 1.45rem;
    }

    .login-hero__corner {
        padding:
            0.95rem 1rem
            max(0.95rem, env(safe-area-inset-bottom, 0px))
            1.75rem;
    }

    .login-hero__footer {
        padding:
            0.65rem 1.5rem
            max(0.65rem, env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .login-hero__intro-desc {
        white-space: normal;
        text-wrap: pretty;
    }
}

@media (min-width: 1200px) {
    .login-hero__outer {
        padding:
            max(1.75rem, env(safe-area-inset-top, 0px))
            max(2rem, env(safe-area-inset-right, 0px))
            max(1.75rem, env(safe-area-inset-bottom, 0px))
            max(2rem, env(safe-area-inset-left, 0px));
    }

    .login-hero__section {
        height: min(100%, calc(100dvh - 3.5rem));
        max-height: calc(100dvh - 3.5rem);
    }

    .login-hero__video {
        transform: scale(1.14);
        transform-origin: center center;
    }

    .login-hero__video-vignette {
        background:
            radial-gradient(
                ellipse 86% 82% at 50% 48%,
                rgba(240, 240, 240, 0) 48%,
                rgba(240, 240, 240, 0.42) 78%,
                #f0f0f0 100%
            ),
            linear-gradient(
                90deg,
                #f0f0f0 0%,
                rgba(240, 240, 240, 0.82) 7%,
                rgba(240, 240, 240, 0) 22%,
                rgba(240, 240, 240, 0) 78%,
                rgba(240, 240, 240, 0.82) 93%,
                #f0f0f0 100%
            ),
            linear-gradient(
                180deg,
                #f0f0f0 0%,
                rgba(240, 240, 240, 0.78) 5%,
                rgba(240, 240, 240, 0) 18%,
                rgba(240, 240, 240, 0) 82%,
                rgba(240, 240, 240, 0.68) 95%,
                #f0f0f0 100%
            );
        box-shadow:
            inset 0 0 64px 32px rgba(240, 240, 240, 0.82),
            inset 0 0 110px 56px rgba(240, 240, 240, 0.38);
    }

    .login-hero__overlay {
        background: radial-gradient(
            ellipse 94% 90% at 50% 50%,
            transparent 52%,
            rgba(240, 240, 240, 0.14) 78%,
            rgba(240, 240, 240, 0.34) 100%
        );
    }

    .login-hero__brand-logo {
        width: 2.5rem;
        height: 2.5rem;
    }

    .login-hero__brand span {
        font-size: 1rem;
    }

    .login-hero__term-pill {
        font-size: 0.82rem;
        padding: 0.45rem 1rem;
    }
}

@media (min-width: 1536px) {
    .login-hero__intro {
        width: min(100%, 72rem);
    }

    .login-hero__intro-title {
        font-size: 2.25rem;
        -webkit-text-stroke: 2.5px #fff;
    }

    .login-hero__intro-desc {
        font-size: clamp(0.82rem, 0.55vw + 0.62rem, 1rem);
        -webkit-text-stroke: 1.5px #fff;
    }

    .login-hero__form-card {
        width: min(100%, 27.5rem);
        padding: 1.85rem;
    }

    .login-hero__video {
        transform: scale(1.22);
    }
}
