.auth-page {
    position: relative;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    padding: clamp(42px, 7vw, 88px) 24px;
    background:
        linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px),
        radial-gradient(circle at 18% 48%, rgba(199,255,50,.055), transparent 27%),
        #080c12;
    background-size: 48px 48px, 48px 48px, auto, auto;
}

.auth-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(199,255,50,.07);
    border-radius: 50%;
    pointer-events: none;
}

.auth-glow::before,
.auth-glow::after {
    content: "";
    position: absolute;
    inset: 48px;
    border: 1px solid rgba(199,255,50,.045);
    border-radius: inherit;
}

.auth-glow::after { inset: 96px; }
.auth-glow-one { left: -220px; top: 28%; }
.auth-glow-two { right: -250px; top: -160px; }

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    margin: 0 auto;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid #293544;
    background: #0d131c;
    box-shadow: 0 34px 90px rgba(0,0,0,.38);
}

.auth-form-side {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(34px, 5vw, 58px);
}

.auth-heading { max-width: 500px; }

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.auth-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(199,255,50,.7);
}

.auth-heading h1 {
    margin: 13px 0 12px;
    color: #f5f7fa;
    font: 700 clamp(36px, 5vw, 54px)/.95 "Arial Narrow", Impact, sans-serif;
    letter-spacing: -1px;
}

.auth-heading p {
    max-width: 470px;
    margin: 0;
    color: #8995a5;
    font-size: 11px;
    line-height: 1.75;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-top: 34px;
}

.auth-validation {
    padding: 11px 13px;
    border-left: 3px solid #ff6676;
    background: rgba(255,78,95,.075);
    color: #ff9aa4;
    font-size: 10px;
}

.auth-validation:empty { display: none; }
.auth-validation ul { margin: 0; padding-left: 17px; }

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

.auth-field > span:first-child {
    color: #aeb8c6;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-input-wrap {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) auto;
    align-items: center;
    min-height: 54px;
    border: 1px solid #303c4c;
    background: #090f17;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.auth-input-wrap:focus-within {
    border-color: var(--accent);
    background: #0b1218;
    box-shadow: 0 0 0 3px rgba(199,255,50,.055);
}

.auth-input-wrap > i {
    display: grid;
    place-items: center;
    align-self: stretch;
    border-right: 1px solid #273240;
    color: #657184;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.auth-input-wrap input {
    min-width: 0;
    height: 52px;
    padding: 0 13px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #edf1f6;
    font-size: 12px;
}

.auth-input-wrap input:focus { border: 0; box-shadow: none; }
.auth-input-wrap input::placeholder { color: #4f5a69; }
.auth-field > small { min-height: 12px; color: #ff7e8b; font-size: 8px; }
.auth-field-hint{margin-top:-4px;color:#626f80;font-size:7px;font-style:normal}
.auth-nickname-state{display:grid;width:38px;height:52px;place-items:center;color:#657184;font-size:12px}
.auth-nickname-state.checking{color:#8b97a7}.auth-nickname-state.available{color:var(--accent);text-shadow:0 0 10px rgba(199,255,50,.7)}.auth-nickname-state.unavailable{color:#ff6676}

.auth-password-toggle {
    position: relative;
    width: 46px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.auth-password-toggle span {
    position: absolute;
    left: 15px;
    top: 20px;
    width: 16px;
    height: 11px;
    border: 1px solid #657184;
    border-radius: 50% / 60%;
}

.auth-password-toggle span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7b8798;
}

.auth-password-toggle[aria-pressed="true"] span { border-color: var(--accent); }
.auth-password-toggle[aria-pressed="true"] span::after { background: var(--accent); }

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.auth-form-meta > a,
.auth-register a,
.auth-form-footer a {
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
}

.auth-form-meta > a:hover,
.auth-register a:hover,
.auth-form-footer a:hover { color: #e7ff9d; }

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.auth-remember i {
    position: relative;
    width: 17px;
    height: 17px;
    border: 1px solid #3b4757;
    background: #0a1018;
}

.auth-remember input:checked + i {
    border-color: var(--accent);
    background: var(--accent);
}

.auth-remember input:checked + i::after {
    content: "✓";
    position: absolute;
    inset: -2px 0 0;
    color: #0a0f09;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.auth-remember span { color: #8d98a8; font-size: 9px; }

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #090e08;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .8px;
    cursor: pointer;
    transition: background .18s, box-shadow .18s, transform .18s;
}

.auth-submit:hover {
    background: #d9ff6b;
    box-shadow: 0 12px 30px rgba(199,255,50,.13);
    transform: translateY(-1px);
}

.auth-submit span { font-size: 16px; transition: transform .18s; }
.auth-submit:hover span { transform: translateX(3px); }

.auth-register {
    display: flex;
    justify-content: center;
    gap: 7px;
    color: #707c8d;
    font-size: 9px;
}

.auth-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 26px;
    color: #5d697a;
    font-size: 8px;
}

.auth-form-footer > span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px rgba(199,255,50,.55);
}

.auth-form-footer a { color: #778395; font-weight: 600; }

.auth-visual {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-end;
    padding: 45px;
    border-left: 1px solid #314020;
    background:
        radial-gradient(circle at 50% 25%, rgba(199,255,50,.14), transparent 30%),
        linear-gradient(145deg, #162015, #0b1117 72%);
}

.auth-visual-grid {
    position: absolute;
    inset: 0;
    opacity: .33;
    background-image:
        linear-gradient(rgba(199,255,50,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(199,255,50,.08) 1px, transparent 1px);
    background-size: 39px 39px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.auth-orbit {
    position: absolute;
    left: 50%;
    top: 39px;
    display: grid;
    place-items: center;
    width: 230px;
    height: 230px;
    transform: translateX(-50%);
}

.auth-orbit::before,
.auth-orbit::after,
.auth-orbit i {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(199,255,50,.28);
    border-radius: 50%;
    transform: rotate(18deg) scaleY(.48);
}

.auth-orbit::after { inset: 0; border-color: rgba(255,255,255,.11); transform: rotate(-42deg) scaleY(.38); }
.auth-orbit i:first-of-type { inset: 42px; transform: rotate(72deg) scaleY(.6); border-color: rgba(199,255,50,.13); }
.auth-orbit i:last-of-type { display: none; }

.auth-orbit span {
    color: transparent;
    font: italic 900 112px/1 Impact, sans-serif;
    -webkit-text-stroke: 2px var(--accent);
    text-shadow: 10px 10px 0 rgba(199,255,50,.06);
    transform: skew(-7deg);
}

.auth-visual-copy,
.auth-feature-list,
.auth-live-badge { position: relative; z-index: 1; }

.auth-visual-copy h2 {
    margin: 13px 0 12px;
    font: 700 39px/.93 "Arial Narrow", Impact, sans-serif;
    letter-spacing: -1px;
}

.auth-visual-copy h2 em { color: var(--accent); font-style: normal; }
.auth-visual-copy p { margin: 0; color: #879383; font-size: 10px; line-height: 1.65; }

.auth-feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 25px;
    border-block: 1px solid rgba(255,255,255,.08);
}

.auth-feature-list div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 13px 10px;
    border-right: 1px solid rgba(255,255,255,.08);
}

.auth-feature-list div:first-child { padding-left: 0; }
.auth-feature-list div:last-child { border: 0; }
.auth-feature-list span { color: var(--accent); font-size: 7px; }
.auth-feature-list strong { color: #b8c2b5; font-size: 7px; line-height: 1.4; text-transform: uppercase; }

.auth-live-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #6f7b70;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.auth-live-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(199,255,50,.65);
}

.auth-card-register { min-height: 690px; }
.auth-form-register { gap: 12px; margin-top: 27px; }
.auth-form-register .auth-field { gap: 5px; }
.auth-form-register .auth-field > small { min-height: 9px; }

.auth-password-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    padding: 12px 13px;
    border: 1px solid #283443;
    background: #0a1018;
}

.auth-password-rules span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #718092;
    font-size: 7px;
    line-height: 1.35;
}

.auth-password-rules span:last-child { grid-column: 1 / -1; }
.auth-password-rules i { color: var(--accent); font-style: normal; font-weight: 900; }

.auth-register-visual {
    background:
        radial-gradient(circle at 55% 22%, rgba(199,255,50,.15), transparent 31%),
        linear-gradient(145deg, #172116, #0b1117 72%);
}

.auth-onboarding-steps {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.auth-onboarding-steps > div {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr);
    gap: 11px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.065);
}

.auth-onboarding-steps b { color: var(--accent); font-size: 8px; }
.auth-onboarding-steps span { display: flex; flex-direction: column; }
.auth-onboarding-steps strong { color: #c3ccc1; font-size: 8px; text-transform: uppercase; letter-spacing: .45px; }
.auth-onboarding-steps small { margin-top: 2px; color: #687568; font-size: 7px; }

@media (max-width: 900px) {
    .auth-card { grid-template-columns: minmax(0, 1fr) 320px; }
    .auth-form-side { padding: 38px; }
    .auth-visual { padding: 30px; }
    .auth-feature-list { grid-template-columns: 1fr; }
    .auth-feature-list div { flex-direction: row; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); padding: 9px 0; }
    .auth-feature-list div:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
    .auth-page { min-height: 0; padding: 24px 14px 42px; }
    .auth-card { grid-template-columns: 1fr; }
    .auth-visual { min-height: 220px; order: -1; padding: 26px; border-left: 0; border-bottom: 1px solid #314020; }
    .auth-orbit { left: auto; right: -20px; top: -22px; width: 205px; height: 205px; transform: none; opacity: .65; }
    .auth-visual-copy { max-width: 65%; }
    .auth-visual-copy h2 { font-size: 29px; }
    .auth-feature-list { display: none; }
    .auth-onboarding-steps { display: none; }
    .auth-live-badge { margin-top: 14px; }
    .auth-form-side { padding: 32px 25px; }
    .auth-heading h1 { font-size: 39px; }
}

@media (max-width: 460px) {
    .auth-page { padding-inline: 0; padding-top: 0; }
    .auth-card { border-inline: 0; box-shadow: none; }
    .auth-visual { min-height: 190px; padding: 23px 20px; }
    .auth-visual-copy { max-width: 72%; }
    .auth-visual-copy p { display: none; }
    .auth-form-side { padding: 29px 20px 25px; }
    .auth-heading h1 { font-size: 35px; }
    .auth-form { margin-top: 27px; }
    .auth-password-rules { grid-template-columns: 1fr; }
    .auth-password-rules span:last-child { grid-column: auto; }
    .auth-form-meta { align-items: flex-start; flex-direction: column; gap: 12px; }
    .auth-register { align-items: center; flex-direction: column; }
    .auth-form-footer { align-items: flex-start; flex-direction: column; }
}
