/* register.css — XenoFi */

/* ============================================================
           TOKENS
        ============================================================ */
:root {
    --void:       #03060f;
    --deep:       #050a18;
    --mid:        #080f22;
    --surface:    #0c1530;
    --gold:       #4a9eff;
    --gold-light: #7bb8ff;
    --gold-dim:   #1a5cb8;
    --gold-glow:  rgba(74,158,255,.18);
    --moon:       #c8d8f8;
    --moon-dim:   #6080b8;
    --ice:        #a0c8ff;
    --green:      #5ef0c8;
    --text-hi:    #e8f0ff;
    --text-mid:   #7890b8;
    --text-lo:    #304060;
    --border:     rgba(74,158,255,.14);
    --border-hi:  rgba(74,158,255,.35);
    --radius:     14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--void);
    color: var(--text-hi);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    cursor: none;
    min-height: 100vh;
}
a { text-decoration: none; }

#xf-dot {
    position: fixed; width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold-light); pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(74,158,255,.4);
}
#xf-ring {
    position: fixed; width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid rgba(74,158,255,.5); pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%); transition: all .14s ease;
}

#sky-canvas {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

.xf-overlay {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(
            to bottom,
            rgba(3,5,13,.25) 0%,
            rgba(3,5,13,.10) 30%,
            rgba(3,5,13,.50) 70%,
            rgba(3,5,13,.80) 100%
    );
}

/* ── AUTH PAGE LAYOUT ─────────────────────────────────────── */
.auth-page {
    position: relative; z-index: 2;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 20px;
}

/* ── WORDMARK ─────────────────────────────────────────────── */
.xf-wordmark {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 800;
    letter-spacing: 5px; text-transform: uppercase;
    color: var(--gold-light);
    text-shadow: 0 0 24px rgba(74,158,255,.4);
    margin-bottom: 28px;
    opacity: 0; animation: fadeUp .7s .1s forwards;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.xf-wordmark img {
    width: 28px; height: 28px; object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(74,158,255,.5));
}

/* ── CARD ────────────────────────────────────────────────── */
.auth-card {
    width: 100%; max-width: 420px;
    background: rgba(8,14,28,.70);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(28px);
    box-shadow: 0 32px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(74,158,255,.1);
    padding: 36px 32px;
    position: relative; overflow: hidden;
    opacity: 0; animation: fadeUp .8s .2s forwards;
}
.auth-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74,158,255,.5), transparent);
}

/* ── CARD HEADER ─────────────────────────────────────────── */
.card-heading { text-align: center; margin-bottom: 28px; }
.card-icon {
    width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px;
    background: rgba(74,158,255,.08); border: 1px solid rgba(74,158,255,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--gold-light);
    box-shadow: 0 0 20px rgba(74,158,255,.12);
}
.card-title { font-size: 20px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 6px; }
.card-sub   { font-size: 13px; color: var(--text-mid); font-weight: 300; }

/* ── ERROR BOX ───────────────────────────────────────────── */
.error-box {
    background: rgba(255,60,80,.08); border: 1px solid rgba(255,60,80,.25);
    border-radius: 10px; padding: 12px 16px; margin-bottom: 20px;
    font-size: 13px; color: #ff8090;
    display: flex; align-items: center; gap: 10px;
    animation: shake .4s cubic-bezier(.36,.07,.19,.97);
}
@keyframes shake {
    10%,90%{transform:translateX(-2px);}20%,80%{transform:translateX(3px);}
    30%,50%,70%{transform:translateX(-3px);}40%,60%{transform:translateX(3px);}
}
.error-box i { font-size: 15px; flex-shrink: 0; }

/* ── FIELDS ──────────────────────────────────────────────── */
.field-wrap { position: relative; margin-bottom: 12px; }
.field-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-lo); font-size: 15px;
    pointer-events: none; transition: color .2s; z-index: 1;
}
.field-wrap:focus-within .field-icon { color: var(--gold); }

.xf-input {
    width: 100%;
    background: rgba(4,10,22,.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-hi);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 400;
    padding: 13px 42px 13px 42px;
    outline: none; transition: all .25s;
    -webkit-appearance: none;
}
.xf-input::placeholder { color: var(--text-lo); }
.xf-input:focus {
    background: rgba(6,14,30,.8);
    border-color: rgba(74,158,255,.45);
    box-shadow: 0 0 0 3px rgba(74,158,255,.1);
}
.xf-input:-webkit-autofill,
.xf-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(6,14,30,.9) inset !important;
    -webkit-text-fill-color: var(--text-hi) !important;
    border-color: rgba(74,158,255,.3) !important;
}

.val-icon {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    font-size: 14px; font-weight: 700; pointer-events: none;
}
.val-msg {
    display: block; font-size: 11px; margin-top: -4px;
    margin-bottom: 8px; margin-left: 2px;
    font-family: 'DM Mono', monospace; letter-spacing: .04em;
}

.pw-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-lo); font-size: 15px; cursor: pointer;
    background: none; border: none; padding: 0; transition: color .2s; z-index: 1;
}
.pw-toggle:hover { color: var(--gold-light); }

/* Name row (register) */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* PW Strength (register) */
.pw-strength-wrap { margin: -4px 0 12px; }
.pw-strength-bar { height: 3px; background: rgba(255,255,255,.05); border-radius: 2px; overflow: hidden; }
.pw-strength-fill { height: 100%; width: 0; border-radius: 2px; transition: width .4s ease, background .4s ease; }
.pw-strength-label { display: block; font-size: 11px; margin-top: 4px; font-family: 'DM Mono', monospace; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-xf {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: #ffffff; border: none; border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 600; letter-spacing: .04em;
    cursor: pointer; margin-bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 0 24px rgba(74,158,255,.2), 0 6px 20px rgba(0,0,0,.3);
    transition: all .3s;
}
.btn-primary-xf:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 44px rgba(74,158,255,.35), 0 10px 28px rgba(0,0,0,.4);
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 11px; color: var(--text-lo); font-family: 'DM Mono', monospace; }

/* ── LINKS ───────────────────────────────────────────────── */
.auth-links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.xf-link {
    font-size: 12px; color: var(--text-mid); font-weight: 400;
    text-decoration: none; display: flex; align-items: center; gap: 5px;
    transition: color .2s;
}
.xf-link:hover { color: var(--gold-light); }
.xf-link i { font-size: 11px; }

/* ── CARD FOOTER ─────────────────────────────────────────── */
.card-footer-note {
    margin-top: 22px; text-align: center;
    font-size: 11px; color: var(--text-lo);
    font-family: 'DM Mono', monospace; letter-spacing: .06em;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.status-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 6px var(--green);
    animation: blink-g 1.5s infinite;
}
@keyframes blink-g { 0%,100%{opacity:1;}50%{opacity:.3;} }

/* ── PAGE FOOTER ─────────────────────────────────────────── */
.page-footer {
    margin-top: 24px; text-align: center;
    font-size: 11px; color: var(--text-lo);
    opacity: 0; animation: fadeUp .8s .45s forwards;
}
.page-footer a { color: var(--text-lo); text-decoration: none; transition: color .2s; }
.page-footer a:hover { color: var(--gold-light); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:translateY(0);} }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media(max-width:480px) {
    .auth-card { padding: 28px 20px; }
    .auth-links { flex-direction: column; align-items: flex-start; }
    .field-row { grid-template-columns: 1fr; }
}