        :root {
            --navy-950: #0b1420;
            --navy-900: #101a2b;
            --navy-800: #1c2b45;
            --navy-700: #2a3b5c;
            --navy-600: #3d537a;
            --coral-500: #e8734a;
            --coral-400: #f28b5f;
            --coral-050: #fdece3;
            --cream: #f7f5f1;
            --ink: #1a1f2b;
            --muted: #8a92a6;
            --muted-dark: #5f6b85;
            --success: #3fae72;
            --danger: #e2504f;
            --radius-lg: 20px;
            --radius-md: 14px;
            --radius-sm: 9px;
            --ease: cubic-bezier(.22, .9, .32, 1);
        }

        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--cream);
            color: var(--ink);
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        h1,
        h2,
        h3,
        .display {
            font-family: 'Space Grotesk', sans-serif;
        }

        .mono {
            font-family: 'JetBrains Mono', monospace;
        }

        a {
            color: inherit;
        }

        ::selection {
            background: var(--coral-400);
            color: #fff;
        }

        .layout {
            display: grid;
            grid-template-columns: minmax(0, 42%) minmax(0, 58%);
            min-height: 100vh;
        }

        /* ---------- LEFT: brand / hero / live card ---------- */
        .hero {
            background:
                radial-gradient(120% 140% at 15% 0%, #16233a 0%, var(--navy-900) 45%, var(--navy-950) 100%);
            color: #fff;
            padding: 52px 48px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: "";
            position: absolute;
            width: 520px;
            height: 520px;
            right: -220px;
            top: -160px;
            background: radial-gradient(circle, rgba(232, 115, 74, .28) 0%, transparent 70%);
            pointer-events: none;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
            letter-spacing: .14em;
            font-weight: 600;
            z-index: 1;
        }

        .brand-mark {
            width: 30px;
            height: 30px;
            border-radius: 9px;
            background: linear-gradient(135deg, var(--coral-500), var(--coral-400));
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .brand-mark svg {
            width: 16px;
            height: 16px;
        }

        .hero-copy {
            z-index: 1;
            margin-top: 56px;
        }

        .eyebrow {
            color: var(--coral-400);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: .12em;
            text-transform: uppercase;
            margin-bottom: 14px;
            opacity: 0;
            animation: riseIn .7s var(--ease) forwards;
            animation-delay: .05s;
        }

        .hero h1 {
            font-size: clamp(30px, 3.4vw, 42px);
            line-height: 1.14;
            font-weight: 600;
            margin: 0 0 18px;
            max-width: 420px;
            opacity: 0;
            animation: riseIn .7s var(--ease) forwards;
            animation-delay: .15s;
        }

        .hero h1 em {
            font-style: normal;
            background: linear-gradient(100deg, var(--coral-400), #ffb493);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .hero p.lead {
            color: #aab4c8;
            font-size: 15px;
            line-height: 1.65;
            max-width: 380px;
            margin: 0 0 40px;
            opacity: 0;
            animation: riseIn .7s var(--ease) forwards;
            animation-delay: .25s;
        }

        @keyframes riseIn {
            from {
                opacity: 0;
                transform: translateY(14px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* live membership card — signature element */
        .card-stage {
            perspective: 1200px;
            opacity: 0;
            animation: riseIn .8s var(--ease) forwards;
            animation-delay: .35s;
            z-index: 1;
        }

        .mcard {
            width: 100%;
            max-width: 380px;
            border-radius: 18px;
            padding: 24px 26px;
            background: linear-gradient(135deg, var(--navy-800) 0%, #233657 55%, var(--navy-700) 100%);
            border: 1px solid rgba(255, 255, 255, .08);
            box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
            position: relative;
            overflow: hidden;
            transition: transform .4s var(--ease);
        }

        .mcard::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .08) 50%, transparent 60%);
            transform: translateX(-100%);
            animation: sheen 5s ease-in-out infinite;
        }

        @keyframes sheen {

            0%,
            60% {
                transform: translateX(-120%);
            }

            85%,
            100% {
                transform: translateX(120%);
            }
        }

        .mcard-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 34px;
        }

        .mcard-top .tier {
            font-size: 11px;
            letter-spacing: .14em;
            font-weight: 600;
            color: var(--coral-400);
            text-transform: uppercase;
        }

        .mcard-top .chip {
            width: 34px;
            height: 24px;
            border-radius: 5px;
            background: linear-gradient(135deg, #d8c48f, #f1e2b8);
            opacity: .9;
        }

        .mcard-number {
            font-size: 16px;
            letter-spacing: .12em;
            color: #e8ecf3;
            margin-bottom: 22px;
            min-height: 20px;
        }

        .mcard-bottom {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 12px;
        }

        .mcard-name {
            font-size: 15px;
            font-weight: 600;
            letter-spacing: .03em;
            color: #fff;
            text-transform: uppercase;
            min-height: 19px;
            max-width: 70%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .mcard-since {
            font-size: 10px;
            color: #8b96ad;
            text-align: right;
            line-height: 1.5;
        }

        .mcard-since b {
            display: block;
            color: #cfd6e4;
            font-size: 11px;
            font-weight: 500;
        }

        .hero-foot {
            z-index: 1;
            display: flex;
            gap: 28px;
            margin-top: 44px;
            color: #7e89a0;
            font-size: 12.5px;
        }

        .hero-foot div {
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .hero-foot svg {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
            color: var(--coral-400);
        }

        /* ---------- RIGHT: form panel ---------- */
        .panel {
            padding: 56px 64px 48px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .panel-inner {
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
        }

        .panel-head h2 {
            font-size: 28px;
            margin: 0 0 6px;
            font-weight: 600;
        }

        .panel-head p {
            margin: 0 0 30px;
            color: var(--muted-dark);
            font-size: 14px;
        }

        .panel-head p a {
            color: var(--coral-500);
            font-weight: 600;
            text-decoration: none;
        }

        .panel-head p a:hover {
            text-decoration: underline;
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .row2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        label {
            font-size: 14px;
            font-weight: 600;
            color: #333c4d;
            letter-spacing: .01em;
        }

        .input-wrap {
            position: relative;
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="password"] {
            width: 100%;
            padding: 12px 14px;
            font-size: 14.5px;
            font-family: 'Inter', sans-serif;
            border: 1.5px solid #e2ddd3;
            border-radius: var(--radius-sm);
            background: #fff;
            color: var(--ink);
            outline: none;
            transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
        }

        input::placeholder {
            color: #b9bfcc;
        }

        input:focus {
            border-color: var(--navy-700);
            box-shadow: 0 0 0 4px rgba(16, 26, 43, .08);
        }

        .field.invalid input {
            border-color: var(--danger);
        }

        .field.invalid input:focus {
            box-shadow: 0 0 0 4px rgba(226, 80, 79, .1);
        }

        .field.valid input {
            border-color: var(--success);
        }

        .toggle-visibility {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 6px;
            color: var(--muted);
            display: flex;
            align-items: center;
            border-radius: 6px;
        }

        .toggle-visibility:hover {
            color: var(--navy-900);
            background: #f2efe9;
        }

        .toggle-visibility svg {
            width: 18px;
            height: 18px;
        }

        .hint {
            font-size: 12px;
            color: var(--muted-dark);
            min-height: 15px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .hint.error {
            color: var(--danger);
            font-weight: 500;
        }

        .hint.ok {
            color: var(--success);
            font-weight: 500;
        }

        .hint svg {
            width: 12px;
            height: 12px;
            flex-shrink: 0;
        }

        /* password strength */
        .strength {
            display: flex;
            gap: 5px;
            margin-top: 2px;
        }

        .strength i {
            height: 4px;
            flex: 1;
            border-radius: 3px;
            background: #e7e2d8;
            transition: background .25s var(--ease);
        }

        .strength[data-level="1"] i:nth-child(1) {
            background: var(--danger);
        }

        .strength[data-level="2"] i:nth-child(1),
        .strength[data-level="2"] i:nth-child(2) {
            background: #f2a740;
        }

        .strength[data-level="3"] i:nth-child(1),
        .strength[data-level="3"] i:nth-child(2),
        .strength[data-level="3"] i:nth-child(3) {
            background: #8bbf5f;
        }

        .strength[data-level="4"] i {
            background: var(--success);
        }

        .strength-label {
            font-size: 12px;
            color: var(--muted-dark);
            margin-top: 4px;
        }

        .terms {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 13px;
            color: #4a5266;
            line-height: 1.5;
            margin-top: 4px;
        }

        .terms input {
            margin-top: 2px;
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            accent-color: var(--navy-900);
            cursor: pointer;
        }

        .terms a {
            color: var(--coral-500);
            font-weight: 600;
            text-decoration: none;
        }

        .terms a:hover {
            text-decoration: underline;
        }

        button.submit {
            margin-top: 6px;
            padding: 14px 20px;
            font-size: 15px;
            font-weight: 600;
            font-family: 'Space Grotesk', sans-serif;
            letter-spacing: .01em;
            color: #fff;
            background: var(--navy-900);
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        button.submit:hover:not(:disabled) {
            background: #0a1424;
            box-shadow: 0 10px 24px -8px rgba(16, 26, 43, .5);
        }

        button.submit:active:not(:disabled) {
            transform: scale(.98);
        }

        button.submit:disabled {
            background: #c7cbd4;
            cursor: not-allowed;
        }

        button.submit svg {
            width: 17px;
            height: 17px;
        }

        :focus-visible {
            outline: 2.5px solid var(--coral-500);
            outline-offset: 2px;
        }

        .divider {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--muted);
            font-size: 14px;
            margin: 22px 0 2px;
        }

        .divider::before,
        .divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: #e6e1d7;
        }

        .social-row {
            display: flex;
            gap: 10px;
        }

        .social-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 11px;
            border-radius: var(--radius-sm);
            border: 1.5px solid #e2ddd3;
            background: #fff;
            font-size: 16px;
            font-weight: 500;
            color: #333c4d;
            cursor: pointer;
            transition: border-color .18s, background .18s;
        }

        .social-btn:hover {
            border-color: var(--navy-700);
            background: #faf9f6;
        }

        .social-btn svg {
            width: 16px;
            height: 16px;
        }

        /* success state */
        .success-view {
            display: none;
            flex-direction: column;
            align-items: flex-start;
            gap: 14px;
            animation: riseIn .5s var(--ease) forwards;
        }

        .success-icon {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--coral-050);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--coral-500);
            margin-bottom: 6px;
        }

        .success-icon svg {
            width: 26px;
            height: 26px;
        }

        .success-view h2 {
            margin: 0;
            font-size: 22px;
        }

        .success-view p {
            margin: 0;
            color: var(--muted-dark);
            font-size: 14.5px;
            line-height: 1.6;
        }

        .success-view .id-pill {
            font-size: 13px;
            padding: 9px 14px;
            background: var(--navy-900);
            color: #fff;
            border-radius: 9px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .success-view button.submit {
            width: 100%;
            margin-top: 8px;
        }

        form.hidden,
        .success-view.active {
            display: none;
        }

        .success-view.active {
            display: flex;
        }

        @media (max-width: 980px) {
            .layout {
                grid-template-columns: 1fr;
            }

            .hero {
                padding: 38px 26px 44px;
            }

            .hero-copy {
                margin-top: 26px;
            }

            .hero-foot {
                flex-wrap: wrap;
                row-gap: 10px;
            }

            .panel {
                padding: 40px 26px 56px;
            }

            .row2 {
                grid-template-columns: 1fr;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: .001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .001ms !important;
            }
        }

.login-illustration {
    opacity: 0;
    animation: riseIn .8s var(--ease) forwards;
    animation-delay: .35s;
    z-index: 1;
    margin-top: 40px;
}

.login-illustration img {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.forgot-password-link {
    font-size: 13px;
    color: var(--coral-500);
    text-decoration: none;
    font-weight: 500;
    margin-left: auto;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
