
:root {
    --bg: #050713;
    --panel: rgba(13, 17, 42, .82);
    --text: #f6f7ff;
    --muted: #9da6c2;
    --purple: #8b5cf6;
    --purple-dark: #6d28d9;
    --blue: #4f8cff;
    --cyan: #4de7ff;
    --line: rgba(157, 126, 255, .22);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 80% 0%, rgba(79, 70, 229, .22), transparent 30rem),
        linear-gradient(135deg, #050713, #090d22 55%, #050713);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.zx-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(420px, .84fr);
}

.zx-login-story {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 42px clamp(38px, 6vw, 92px);
    border-right: 1px solid rgba(255,255,255,.07);
    background:
        radial-gradient(circle at 72% 45%, rgba(128, 66, 255, .28), transparent 26rem),
        linear-gradient(145deg, rgba(12, 15, 40, .9), rgba(4, 6, 17, .94));
    isolation: isolate;
}

.zx-story-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .17;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.zx-story-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(65px);
    animation: orbFloat 10s ease-in-out infinite;
}

.orb-one {
    width: 520px;
    height: 520px;
    right: -170px;
    top: 14%;
    background: rgba(109, 40, 217, .38);
}

.orb-two {
    width: 380px;
    height: 380px;
    left: -180px;
    bottom: -80px;
    background: rgba(79, 140, 255, .2);
    animation-delay: -4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(-30px, 35px, 0) scale(1.1); }
}

.zx-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    color: white;
    text-decoration: none;
}

.zx-login-brand strong {
    display: block;
    letter-spacing: .25em;
    font-size: 14px;
}

.zx-login-brand small {
    display: block;
    margin-top: 5px;
    color: #8790ad;
    letter-spacing: .22em;
    font-size: 9px;
}

.zx-login-core {
    width: 52px;
    height: 52px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid rgba(170, 134, 255, .62);
    border-radius: 17px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.52), transparent 17%),
        linear-gradient(135deg, #aa6cff, #6d28d9 53%, #4674ff);
    box-shadow:
        0 0 42px rgba(139,92,246,.34),
        inset 0 1px rgba(255,255,255,.35);
    font-size: 29px;
    font-weight: 1000;
    transform-style: preserve-3d;
    animation: loginCoreCycle 22s infinite;
}

.zx-login-core::before,
.zx-login-core::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(139,92,246,.24);
    border-radius: 20px;
    animation: coreRing 4.5s ease-in-out infinite;
}

.zx-login-core::after {
    inset: -14px;
    opacity: .4;
    animation-delay: -2.2s;
}

@keyframes loginCoreCycle {
    0%, 9% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    27% { transform: rotateX(35deg) rotateY(250deg) rotateZ(150deg); }
    45%, 55% { transform: rotateX(180deg) rotateY(540deg) rotateZ(360deg); }
    73% { transform: rotateX(-35deg) rotateY(-250deg) rotateZ(-150deg); }
    92%, 100% { transform: rotateX(-180deg) rotateY(-540deg) rotateZ(-360deg); }
}

@keyframes coreRing {
    0%, 100% { transform: scale(.9); opacity: .18; }
    50% { transform: scale(1.1); opacity: .62; box-shadow: 0 0 24px rgba(139,92,246,.35); }
}

.zx-story-content {
    max-width: 790px;
    margin: auto 0;
    padding: 80px 0;
}

.zx-kicker {
    color: #b795ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.zx-story-content h1 {
    max-width: 760px;
    margin: 20px 0 24px;
    font-size: clamp(50px, 6vw, 92px);
    line-height: .98;
    letter-spacing: -.06em;
}

.zx-story-content > p {
    max-width: 700px;
    color: #aeb5cd;
    font-size: 19px;
    line-height: 1.7;
}

.zx-story-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 48px;
}

.zx-story-features > div {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,.025);
    backdrop-filter: blur(14px);
}

.zx-story-features span {
    color: #a986ff;
    font-size: 11px;
    font-weight: 900;
}

.zx-story-features strong {
    display: block;
    margin: 18px 0 8px;
    font-size: 15px;
}

.zx-story-features p {
    margin: 0;
    color: #8992ae;
    font-size: 12px;
    line-height: 1.55;
}

.zx-story-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: #727c99;
    font-size: 11px;
}

.zx-story-footer span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--cyan);
}

.zx-login-access {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

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

.zx-login-card {
    width: min(100%, 510px);
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(18, 22, 52, .86), rgba(8, 11, 29, .92));
    box-shadow:
        0 36px 110px rgba(0,0,0,.46),
        0 0 80px rgba(109,40,217,.08);
    backdrop-filter: blur(22px);
}

.zx-status-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(53,213,154,.22);
    border-radius: 999px;
    color: #c7ffe7;
    background: rgba(53,213,154,.08);
    font-size: 11px;
    font-weight: 800;
}

.zx-status-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35d59a;
    box-shadow: 0 0 11px #35d59a;
}

.zx-login-heading h2 {
    margin: 23px 0 10px;
    font-size: 40px;
    letter-spacing: -.045em;
}

.zx-login-heading p {
    margin: 0 0 30px;
    color: var(--muted);
    line-height: 1.6;
}

.zx-login-form label,
.zx-label-row label {
    display: block;
    margin: 0 0 8px;
    color: #dfe2f3;
    font-size: 13px;
    font-weight: 800;
}

.zx-label-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 19px;
}

.zx-label-row a {
    color: #b99eff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.zx-field {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
    border: 1px solid rgba(153,121,255,.25);
    border-radius: 13px;
    background: rgba(4,7,20,.65);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.zx-field:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139,92,246,.12);
}

.zx-field > span {
    color: #8f79cb;
}

.zx-field input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    font-size: 15px;
}

.zx-field input::placeholder { color: #646d8b; }

.zx-password-toggle {
    border: 0;
    color: #b49cff;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.zx-turnstile-wrap {
    margin-top: 20px;
    overflow: hidden;
    border-radius: 12px;
}

.zx-primary-login,
.zx-passkey-button {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.zx-primary-login {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    border-radius: 13px;
    color: white;
    background: linear-gradient(135deg, #995cff, #6d28d9 54%, #4f78ff);
    box-shadow:
        0 16px 42px rgba(109,40,217,.32),
        inset 0 1px rgba(255,255,255,.27);
    font-weight: 900;
    transition: transform .2s ease, filter .2s ease;
}

.zx-primary-login:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.zx-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 28px 0 20px;
    color: #707995;
    font-size: 11px;
    text-align: center;
}

.zx-divider::before,
.zx-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255,255,255,.08);
}

.zx-passkey-button {
    min-height: 70px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 13px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: white;
    background: rgba(255,255,255,.025);
    text-align: left;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.zx-passkey-button:hover {
    transform: translateY(-2px);
    border-color: rgba(139,92,246,.52);
    background: rgba(139,92,246,.08);
}

.zx-passkey-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #d8caff;
    background: rgba(139,92,246,.14);
    font-size: 22px;
}

.zx-passkey-button strong { display: block; }

.zx-passkey-button small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.4;
}

.zx-passkey-status {
    min-height: 18px;
    margin: 12px 0 0;
    color: #aeb6d0;
    font-size: 12px;
    line-height: 1.5;
}

.zx-login-support {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: #858da8;
    font-size: 12px;
}

.zx-login-support a {
    color: #bea9ff;
    text-decoration: none;
    font-weight: 800;
}

.zx-legal {
    width: min(100%, 510px);
    margin: 20px 0 0;
    color: #626b87;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 1050px) {
    .zx-login-shell { grid-template-columns: 1fr; }
    .zx-login-story { display: none; }
    .zx-login-access { padding: 24px; }
    .zx-mobile-brand {
        display: flex;
        align-items: center;
        gap: 13px;
        margin-bottom: 26px;
        letter-spacing: .2em;
    }
}

@media (max-width: 560px) {
    .zx-login-access { padding: 14px; }
    .zx-login-card {
        padding: 27px 20px;
        border-radius: 20px;
    }
    .zx-login-heading h2 { font-size: 34px; }
    .zx-login-support {
        display: block;
        line-height: 1.8;
    }
}
