/* Zyrix authentication: restrained glass, real game art, and a compact form layout. */
body.auth-split-page {
    --auth-bg: #05070b;
    --auth-text: #f4f5f7;
    --auth-muted: #9da3ae;
    --auth-cyan: #80d9e6;
    --auth-violet: #b59aff;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: "Geist", "Inter", sans-serif;
}

body.auth-split-page .site-header,
body.auth-split-page .site-footer,
body.auth-split-page .announcement-bar,
body.auth-split-page .page-glow,
body.auth-split-page .particle-field,
body.auth-split-page .theme-toggle { display: none !important; }
body.auth-split-page > main { width: 100%; max-width: none; min-height: 100vh; margin: 0; padding: 0; }
body.auth-split-page .toast-stack { position: fixed; z-index: 20; top: 18px; left: 50%; width: min(440px, calc(100% - 32px)); transform: translateX(-50%); }

.auth-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(480px, 47%) minmax(0, 53%);
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background: #05070b;
}
.auth-stage-register { grid-template-columns: minmax(540px, 53%) minmax(0, 47%); }
.auth-panel {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
    padding: 28px clamp(28px, 4vw, 64px) 20px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background:
        radial-gradient(ellipse at 15% 44%, rgba(255, 255, 255, .035), transparent 48%),
        linear-gradient(110deg, #06080c 0%, rgba(7, 9, 14, .985) 76%, rgba(7, 9, 14, .91));
}
.auth-brand {
    position: absolute;
    top: 24px;
    left: clamp(28px, 4vw, 64px);
    display: inline-flex;
    z-index: 4;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #f7f7f9;
    text-decoration: none;
}
.auth-brand img { display: block; width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 13px rgba(255, 255, 255, .2)); }
.auth-brand span { display: grid; gap: 2px; }
.auth-brand strong { font-family: "Orbitron", sans-serif; font-size: 14px; font-weight: 800; letter-spacing: -.045em; }
.auth-brand small { color: #858b96; font-size: 8px; font-weight: 700; letter-spacing: .14em; }

.auth-form-wrap {
    position: relative;
    isolation: isolate;
    width: min(100%, 468px);
    box-sizing: border-box;
    margin: auto;
    padding: 22px 0;
    animation: auth-enter .55s cubic-bezier(.2, .75, .25, 1) both;
}
.auth-heading { margin: 0 0 24px; }
.auth-heading h1 { margin: 0 0 9px; color: var(--auth-text); font-size: clamp(38px, 3.5vw, 48px); font-weight: 680; letter-spacing: -.055em; line-height: 1.02; }
.auth-heading h1 span { color: #e5e7eb; text-shadow: 0 0 22px rgba(255, 255, 255, .16); }
.auth-heading p { margin: 0; color: var(--auth-muted); font-size: 13px; }
.auth-heading p a,.auth-options > a { color: #eceef2; font-weight: 650; text-decoration: underline; text-decoration-color: rgba(236, 238, 242, .38); text-underline-offset: 3px; }

.auth-social-stack { display: grid; grid-template-columns: 1fr; gap: 9px; }
.auth-social-button {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: linear-gradient(105deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018));
    color: #f0f1f4;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.auth-social-button i { color: #d8dbe2; font-size: 16px; }
.auth-social-button:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .27); background: rgba(255, 255, 255, .075); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.auth-social-button:focus-visible,.auth-submit:focus-visible,.auth-password-toggle:focus-visible { outline: 2px solid #e6e9ef; outline-offset: 3px; }
.auth-discord-required { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0 0; padding: 10px 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; background: rgba(255, 255, 255, .035); color: #b8bdc7; font-size: 11px; line-height: 1.5; }
.auth-discord-required i { margin-top: 2px; color: #dce0e6; }
.auth-divider { display: flex; align-items: center; gap: 11px; margin: 18px 0 13px; color: #858b97; font: 500 9px/1 "Geist Mono", monospace; letter-spacing: .12em; }
.auth-divider::before,.auth-divider::after { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent); content: ""; }

.auth-form { display: grid; gap: 12px; }
.auth-field { display: grid; min-width: 0; gap: 6px; }
.auth-field > label { color: #aeb4bf; font-size: 11px; font-weight: 550; }
.auth-input-row { display: flex; min-width: 0; min-height: 49px; align-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(7, 9, 14, .76); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.auth-input-row > i { flex: none; width: 40px; color: #858d99; font-size: 13px; text-align: center; }
.auth-input-row > input { flex: 1; width: 100%; min-width: 0; height: 46px; padding: 0 10px 0 0; border: 0; outline: 0; background: transparent; color: #f5f6f8; font: 500 13px/1.3 "Geist", sans-serif; }
.auth-input-row > input::placeholder { color: #707784; }
.auth-input-row:focus-within { border-color: rgba(237, 240, 246, .64); background: rgba(10, 12, 18, .94); box-shadow: 0 0 0 3px rgba(255, 255, 255, .06), 0 0 22px rgba(255, 255, 255, .045); }
.auth-password-toggle { display: grid; width: 40px; height: 42px; flex: none; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #9299a6; cursor: pointer; transition: color .18s ease, background .18s ease; }
.auth-password-toggle:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 1px; color: #a2a7b1; font-size: 11px; }
.auth-options > a { font-size: 11px; }
.auth-remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-remember input { width: 14px; height: 14px; accent-color: #d8dce4; }
.auth-submit { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; margin-top: 3px; border: 1px solid rgba(255, 255, 255, .66); border-radius: 12px; background: linear-gradient(180deg, #f0f2f5, #c9ced8); box-shadow: 0 8px 26px rgba(215, 220, 229, .1), inset 0 1px rgba(255, 255, 255, .8); color: #10131b; font: 700 13px "Geist", sans-serif; cursor: pointer; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.auth-submit:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 10px 32px rgba(215, 220, 229, .16); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { cursor: wait; opacity: .82; }
.auth-submit i { font-size: 12px; }
.auth-submit-spinner { width: 14px; height: 14px; border: 2px solid rgba(16, 19, 27, .24); border-top-color: #10131b; border-radius: 50%; animation: auth-spin .72s linear infinite; }
.auth-help { margin: 11px 0 0; color: #858b97; font-size: 10px; line-height: 1.55; text-align: center; }
.auth-signup-prompt { display: none; }
.auth-foot { width: min(100%, 520px); box-sizing: border-box; margin: 0 auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); color: #777e89; font: 9px/1.4 "Geist Mono", monospace; letter-spacing: .08em; }

.auth-visual { position: absolute; z-index: 0; inset: 0 0 0 47%; overflow: hidden; pointer-events: none; background: #05070b; }
.auth-stage-register .auth-visual { left: 53%; }
.auth-art-wall {
    position: absolute;
    inset: -23% -12% -22% -7%;
    display: grid;
    grid-template-columns: repeat(4, minmax(145px, 1fr));
    gap: clamp(14px, 1.55vw, 25px);
    transform: translate3d(var(--auth-parallax-x, 0px), var(--auth-parallax-y, 0px), 0) rotate(-7deg) scale(1.04);
    transform-origin: center;
    transition: transform .45s ease-out;
    will-change: transform;
}
.auth-art-reel { display: flex; min-width: 0; flex-direction: column; will-change: transform; }
.auth-art-reel-1 { animation: auth-reel-up 38s linear infinite; }
.auth-art-reel-2 { animation: auth-reel-down 46s linear infinite; filter: blur(.45px); }
.auth-art-reel-3 { animation: auth-reel-up 31s linear infinite; }
.auth-art-reel-4 { animation: auth-reel-down 42s linear infinite; filter: blur(.2px); }
.auth-art-sequence { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: clamp(14px, 1.55vw, 25px); }
.auth-art-card { position: relative; width: clamp(185px, 22vw, 310px); max-width: 100%; overflow: hidden; aspect-ratio: 1.72; border: 8px solid #090b10; border-radius: 15px; background: #10131a; box-shadow: 0 18px 42px rgba(0, 0, 0, .42); transform: rotate(var(--card-rotation, 0deg)); }
.auth-art-reel-2 .auth-art-card { width: clamp(174px, 20vw, 286px); }
.auth-art-reel-3 .auth-art-card { width: clamp(198px, 23vw, 326px); }
.auth-art-reel-4 .auth-art-card { width: clamp(168px, 19vw, 274px); }
.auth-art-reel-1 .auth-art-card:nth-child(odd) { --card-rotation: 1.2deg; }
.auth-art-reel-2 .auth-art-card:nth-child(even) { --card-rotation: -1.4deg; }
.auth-art-reel-3 .auth-art-card:nth-child(3n) { --card-rotation: .9deg; }
.auth-art-card img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.58) brightness(.7) contrast(1.05); transition: filter .4s ease, transform .5s ease; }
.auth-art-reel-3 .auth-art-card img { filter: grayscale(.08) brightness(.82) contrast(1.04); }
.auth-art-reel-4 .auth-art-card img { filter: grayscale(.82) brightness(.62) contrast(1.06); }
.auth-art-wall:hover .auth-art-card img { filter: grayscale(.2) brightness(.82) contrast(1.04); }
.auth-art-card::after { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 40%, rgba(0, 0, 0, .12)); content: ""; }
.auth-art-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #05070b 0%, rgba(5, 7, 11, .84) 16%, rgba(5, 7, 11, .4) 46%, rgba(5, 7, 11, .05) 100%), linear-gradient(180deg, rgba(5, 7, 11, .42), transparent 20%, transparent 76%, rgba(5, 7, 11, .68)); }
.auth-visual::after { position: absolute; inset: 0; background: radial-gradient(ellipse at 76% 44%, transparent 20%, rgba(0, 0, 0, .25) 100%); content: ""; }
.auth-visual-caption { position: absolute; right: clamp(30px, 5vw, 82px); bottom: 7vh; z-index: 1; width: min(420px, 62%); color: #f1f2f5; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.auth-visual-caption h2 { margin: 0 0 8px; font-size: clamp(23px, 2.2vw, 34px); font-weight: 700; letter-spacing: -.045em; }
.auth-visual-caption p { margin: 0; color: #b0b5bf; font-size: 14px; line-height: 1.55; }

.auth-stage-register .auth-form-wrap { width: min(100%, 500px); padding: 18px 0; }
.auth-stage-register .auth-heading { margin-bottom: 16px; }
.auth-stage-register .auth-social-stack { grid-template-columns: 1fr; }
.auth-stage-register .auth-discord-required { margin: 0; }
.auth-stage-register .auth-divider { margin: 14px 0 11px; }
.auth-stage-register .auth-form { gap: 9px; }
.auth-stage-register .auth-input-row,.auth-stage-register .auth-input-row > input { min-height: 43px; height: 43px; }
.auth-consent { display: flex; align-items: flex-start; gap: 9px; color: #aeb4bf; font-size: 10px; line-height: 1.5; }
.auth-consent input { width: 14px; height: 14px; flex: none; margin: 1px 0 0; accent-color: #e1e4ea; }
.auth-consent a { color: #f0f1f4; text-decoration: underline; text-underline-offset: 2px; }
.auth-consent a:focus-visible { outline: 2px solid #e6e9ef; outline-offset: 2px; }
.registration-requirements { display: flex; flex-wrap: wrap; gap: 5px; margin: -1px 0 1px; }
.registration-requirements .requirement { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; background: rgba(255, 255, 255, .035); color: #858b97; font-size: 9px; }
.registration-requirements .requirement i { font-size: 8px; }
.registration-requirements .requirement.ok { border-color: rgba(255, 255, 255, .16); color: #e1e3e7; }
.registration-requirements .requirement.bad { color: #d58b9a; }
.registration-turnstile { display: flex; justify-content: center; min-height: 66px; margin: 2px auto 0; }

@keyframes auth-reel-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes auth-reel-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes auth-enter { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
    .auth-stage { grid-template-columns: minmax(430px, 52%) minmax(0, 48%); }
    .auth-stage-register { grid-template-columns: minmax(500px, 58%) minmax(0, 42%); }
    .auth-stage-register .auth-visual { left: 58%; }
    .auth-panel { padding-right: clamp(24px, 3vw, 40px); padding-left: clamp(24px, 3vw, 40px); }
    .auth-brand { left: clamp(24px, 3vw, 40px); }
    .auth-art-wall { inset: -19% -27% -19% -13%; grid-template-columns: repeat(4, minmax(130px, 1fr)); }
    .auth-art-card { width: clamp(165px, 24vw, 260px); border-width: 7px; }
}
@media (max-width: 760px) {
    .auth-stage,.auth-stage-register { display: block; min-height: 100svh; }
    .auth-panel { min-height: 100svh; padding: 82px 20px 18px; border-right: 0; background: linear-gradient(90deg, rgba(5, 7, 11, .91), rgba(5, 7, 11, .76)); }
    .site-glass-site.auth-split-page .auth-panel { background: linear-gradient(90deg, rgba(5, 7, 11, .91), rgba(5, 7, 11, .76)) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .auth-brand { top: 20px; left: 22px; }
    .auth-form-wrap { width: min(100%, 470px); margin: 22px auto 28px; padding: 24px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .auth-form-wrap::after { content: none; }
    .auth-foot { width: min(100%, 470px); margin: 0 auto; }
    .auth-visual,.auth-stage-register .auth-visual { left: 0; }
    .auth-art-wall { inset: -15% -32%; grid-template-columns: repeat(2, minmax(155px, 1fr)); gap: 14px; transform: translate3d(var(--auth-parallax-x, 0px), var(--auth-parallax-y, 0px), 0) rotate(-7deg) scale(1.04); }
    .auth-art-card,.auth-art-reel-2 .auth-art-card,.auth-art-reel-3 .auth-art-card,.auth-art-reel-4 .auth-art-card { width: clamp(180px, 57vw, 270px); border-width: 7px; border-radius: 15px; }
    .auth-art-reel-3,.auth-art-reel-4 { display: none; }
    .auth-art-shade { background: linear-gradient(90deg, rgba(5, 7, 11, .58), rgba(5, 7, 11, .36) 74%, rgba(5, 7, 11, .26)), linear-gradient(180deg, rgba(5, 7, 11, .54), rgba(5, 7, 11, .18) 30%, rgba(5, 7, 11, .74)); }
    .auth-visual-caption { right: 22px; bottom: 18px; width: min(370px, calc(100% - 44px)); }
    .auth-visual-caption h2 { font-size: 21px; }
    .auth-visual-caption p { font-size: 12px; }
    .auth-stage-register .auth-form-wrap { width: min(100%, 510px); margin-top: 18px; padding: 18px 0; }
}
@media (max-width: 480px) {
    .auth-panel { padding-right: 15px; padding-left: 15px; }
    .auth-form-wrap,.auth-stage-register .auth-form-wrap { padding: 20px 0; }
    .auth-heading h1 { font-size: 35px; }
    .auth-stage-register .auth-discord-required { grid-column: auto; }
    .auth-options,.auth-options > a { font-size: 10px; }
    .registration-requirements { gap: 4px; }
    .registration-requirements .requirement { padding: 4px 6px; font-size: 8px; }
    .auth-visual-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-form-wrap { animation: none; }
    .auth-art-reel-1,.auth-art-reel-2,.auth-art-reel-3,.auth-art-reel-4 { animation: none !important; }
    .auth-art-wall,.auth-art-card img,.auth-input-row,.auth-social-button,.auth-submit,.auth-password-toggle { transition: none !important; }
    .auth-submit-spinner { animation: none; }
}

/* The desktop form is deliberately open: the artwork and layout do the framing. */
@media (min-width: 761px) {
    .auth-stage-login .auth-form-wrap { transform: translateX(clamp(0px, 1.4vw, 22px)); }
    .auth-stage-register .auth-form-wrap { transform: translateX(clamp(0px, 1.2vw, 18px)); }
    .auth-heading h1 span { color: #fff; text-shadow: 0 0 28px rgba(255, 255, 255, .24); }
    .auth-visual-caption { padding: 18px 0 0 20px; border-left: 1px solid rgba(255, 255, 255, .24); }
}
