/* ============================================================
   NeoPolymarket — Login / Auth pages CSS
   Place at: neopolymarket/assets/css/login.css
   ============================================================ */

:root {
    --bg:#080B10; --bg2:#0F1319; --bg3:#161C26; --card:#111722;
    --border:rgba(255,255,255,.07); --border2:rgba(255,255,255,.13);
    --gold:#F0B429; --gold2:#FFD97D; --green:#0ECB81; --red:#F6465D;
    --text:#E8ECF4; --text2:#A0AAB8; --text3:#606878;
    --font-display:'Fraunces',Georgia,serif;
    --font-body:'Syne',sans-serif;
    --font-mono:'IBM Plex Mono',monospace;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html,body { height:100%; }

body {
    background:var(--bg); color:var(--text);
    font-family:var(--font-body); font-size:15px;
    display:flex; min-height:100vh; overflow-x:hidden;
}

body::after {
    content:''; position:fixed; inset:0; z-index:9999; pointer-events:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    opacity:.5;
}

::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--gold); border-radius:3px; }


/* ══════════════════════════════════════
   LEFT PANEL — exactly 50% of viewport
   ══════════════════════════════════════ */
.left-panel {
    width:50%;
    flex-shrink:0;
    background:var(--bg2);
    border-right:1px solid var(--border);
    display:flex;
    flex-direction:column;
    overflow-y:auto;
    overflow-x:hidden;
    padding:40px 48px 40px;
    position:relative;
}

.left-panel::before {
    content:''; position:absolute; bottom:-80px; right:-80px;
    width:360px; height:360px; border-radius:50%;
    background:radial-gradient(circle,rgba(240,180,41,.12) 0%,transparent 70%);
    pointer-events:none;
}

.brand {
    display:flex; align-items:center; gap:10px;
    margin-bottom:52px; text-decoration:none;
}
.brand-flag { display:flex; border-radius:3px; overflow:hidden; height:16px; gap:2px; }
.brand-flag span { display:block; width:10px; height:100%; }
.brand-name { font-family:var(--font-display); font-weight:900; font-size:20px; color:var(--text); }
.brand-name em { font-style:normal; color:var(--gold); }

.panel-headline {
    font-family:var(--font-display);
    font-size:clamp(32px, 3.5vw, 44px);
    font-weight:900; line-height:1.08;
    letter-spacing:-1.5px; margin-bottom:16px;
}
.panel-headline span { color:var(--gold); }

.panel-sub { font-size:14px; color:var(--text2); line-height:1.7; margin-bottom:40px; }

.market-list-title {
    font-family:var(--font-mono); font-size:10px; letter-spacing:3px;
    text-transform:uppercase; color:var(--text3); margin-bottom:12px;
}
.market-list { flex:1; display:flex; flex-direction:column; gap:10px; overflow:hidden; }

.mini-market {
    background:var(--card); border:1px solid var(--border);
    border-radius:12px; padding:13px 16px;
    display:flex; align-items:center; gap:12px; transition:border-color .2s;
}
.mini-market:hover { border-color:rgba(240,180,41,.3); }
.mm-cat-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.mm-q  { font-size:12px; font-weight:600; flex:1; line-height:1.4; }
.mm-odds { font-family:var(--font-mono); font-size:12px; font-weight:600; text-align:right; white-space:nowrap; }

.panel-footer {
    margin-top:32px; padding-top:20px;
    border-top:1px solid var(--border);
    font-size:12px; color:var(--text3);
}

/* Panel steps (forgot-password page) */
.panel-steps { display:flex; flex-direction:column; gap:16px; flex:1; }
.panel-step  { display:flex; align-items:flex-start; gap:14px; }
.ps-num {
    width:32px; height:32px; border-radius:50%; flex-shrink:0;
    background:rgba(240,180,41,.15); border:1.5px solid rgba(240,180,41,.35);
    color:var(--gold); font-family:var(--font-mono); font-size:13px; font-weight:700;
    display:flex; align-items:center; justify-content:center;
}
.ps-title { font-size:13px; font-weight:700; margin-bottom:2px; }
.ps-desc  { font-size:12px; color:var(--text3); }

/* Panel tips (reset-password page) */
.panel-tips { display:flex; flex-direction:column; gap:12px; flex:1; }
.tip-item   { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text2); }


/* ══════════════════════════════════════
   RIGHT PANEL — exactly 50% of viewport
   ══════════════════════════════════════ */
.right-panel {
    flex:0 0 50%;
    overflow-y:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 32px;
    position:relative;
}

.right-panel::before {
    content:''; position:absolute; inset:0; pointer-events:none;
    background-image:
        linear-gradient(rgba(240,180,41,.02) 1px,transparent 1px),
        linear-gradient(90deg,rgba(240,180,41,.02) 1px,transparent 1px);
    background-size:48px 48px;
}

/* ── Form box: sits inside right panel ── */
.form-box {
    position:relative; z-index:1;
    width:100%;
    max-width:400px;  /* keeps form compact and centered */
}

/* Mobile-only summary header — hidden on desktop */
.mobile-header { display:none; }


/* ══════════════════════════════════════
   FORM TYPOGRAPHY
   ══════════════════════════════════════ */
.form-title {
    font-family:var(--font-display); font-size:30px; font-weight:700;
    letter-spacing:-.5px; margin-bottom:4px;
}
.form-subtitle { font-size:14px; color:var(--text2); margin-bottom:24px; }


/* ══════════════════════════════════════
   INPUTS
   ══════════════════════════════════════ */
.input-group-up { margin-bottom:18px; }

.input-label {
    font-family:var(--font-mono); font-size:10px; letter-spacing:2px;
    text-transform:uppercase; color:var(--text3);
    margin-bottom:8px; display:flex; align-items:center; justify-content:space-between;
}

.forgot-link {
    font-family:var(--font-mono); font-size:10px; letter-spacing:1px;
    text-transform:uppercase; color:var(--gold); text-decoration:none; font-weight:600;
    transition:opacity .2s;
}
.forgot-link:hover { opacity:.7; }

.input-wrap { position:relative; }

/* Icon sits inside the input, no separate bordered box */
.input-icon {
    position:absolute; left:14px; top:50%; transform:translateY(-50%);
    color:var(--text3); font-size:15px; pointer-events:none;
    display:flex; align-items:center;
}

/* Eye toggle */
.eye-btn {
    position:absolute; right:0; top:0; bottom:0;
    display:flex; align-items:center; padding:0 14px;
    background:none; border:none; cursor:pointer;
    color:var(--text3); border-radius:0 10px 10px 0;
}
.eye-btn:hover { color:var(--text2); }

.up-input {
    width:100%; background:rgba(255,255,255,.04);
    border:1px solid var(--border2); border-radius:10px;
    color:var(--text); font-family:var(--font-body);
    font-size:15px; font-weight:500; padding:13px 16px;
    outline:none; transition:border-color .2s, background .2s, box-shadow .2s;
    -webkit-appearance:none;
}
.up-input.with-icon { padding-left:42px; }
.up-input.with-eye  { padding-right:46px; }

.up-input:focus {
    border-color:var(--gold);
    background:rgba(240,180,41,.04);
    box-shadow:0 0 0 3px rgba(240,180,41,.1);
}
.up-input::placeholder { color:var(--text3); font-weight:400; }
.up-input.error   { border-color:var(--red);   box-shadow:0 0 0 3px rgba(246,70,93,.1); }
.up-input.success { border-color:var(--green); }

select.up-input { cursor:pointer; }
select.up-input option { background:var(--bg2); color:var(--text); }

/* Strength bars */
.strength-meter { display:flex; gap:4px; margin-top:6px; }
.strength-bar { flex:1; height:3px; border-radius:2px; background:var(--border); transition:background .3s; }

.input-hint  { font-size:11px; color:var(--text3); margin-top:5px; }
.input-error { font-size:11px; color:var(--red);   margin-top:5px; display:none; }


/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn-submit {
    width:100%; padding:14px; background:var(--gold); color:#000;
    font-family:var(--font-body); font-weight:800; font-size:15px;
    border:none; border-radius:10px; cursor:pointer;
    transition:all .2s; display:flex; align-items:center;
    justify-content:center; gap:8px; text-decoration:none;
}
.btn-submit:hover { background:var(--gold2); transform:translateY(-2px); box-shadow:0 8px 24px rgba(240,180,41,.25); }
.btn-submit:active { transform:translateY(0); }
.btn-submit:disabled {
    background:rgba(240,180,41,.3); color:rgba(0,0,0,.5);
    cursor:not-allowed; transform:none; box-shadow:none;
}
.btn-submit .spinner {
    width:18px; height:18px; border:2px solid rgba(0,0,0,.3);
    border-top-color:#000; border-radius:50%;
    animation:spin .6s linear infinite; display:none;
}


/* ══════════════════════════════════════
   ALERTS & MISC
   ══════════════════════════════════════ */
.up-alert {
    border-radius:10px; padding:12px 16px; font-size:13px;
    display:flex; align-items:flex-start; gap:10px;
    border:1px solid; line-height:1.5;
}
.up-alert-success { background:rgba(14,203,129,.1);  border-color:rgba(14,203,129,.3);  color:#5DEBB8; }
.up-alert-error   { background:rgba(246,70,93,.1);   border-color:rgba(246,70,93,.3);   color:#FF8A84; }
.up-alert-info    { background:rgba(240,180,41,.08); border-color:rgba(240,180,41,.25); color:var(--gold2); }
.up-alert-warn    { background:rgba(240,180,41,.08); border-color:rgba(240,180,41,.3);  color:var(--gold2); }

.alt-link { text-align:center; font-size:14px; color:var(--text2); margin-top:20px; }
.alt-link a { color:var(--gold); font-weight:700; text-decoration:none; }
.alt-link a:hover { text-decoration:underline; }

.resend-btn {
    background:none; border:none; cursor:pointer;
    color:var(--gold); font-size:13px; font-weight:600;
    font-family:var(--font-body); padding:0;
}
.resend-btn:disabled { color:var(--text3); cursor:default; }

.step-panel { display:none; }
.step-panel.active { display:block; animation:fadeUp .4s ease both; }

.divider-row {
    display:flex; align-items:center; gap:12px;
    margin:24px 0; color:var(--text3); font-size:12px;
}
.divider-row::before,.divider-row::after { content:''; flex:1; height:1px; background:var(--border); }


/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes spin   { to { transform:rotate(360deg); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }


/* ══════════════════════════════════════
   RESPONSIVE — tablet
   ══════════════════════════════════════ */
@media (max-width:1100px) {
    .left-panel  { padding:36px 36px 36px; }
    .right-panel { padding:36px 24px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — mobile (≤ 820px)
   Hide left panel, show condensed header inside right panel
   ══════════════════════════════════════ */
@media (max-width:820px) {
    body { display:block; }  /* stack vertically */

    .left-panel { display:none; }

    .right-panel {
        flex:none;
        width:100%;
        min-height:100vh;
        padding:0;
        align-items:flex-start;
        justify-content:flex-start;
        display:flex;
        flex-direction:column;
    }

    .form-box {
        width:100%;
        max-width:100%;
        padding:0;
        display:flex;
        flex-direction:column;
        min-height:100vh;
    }

    /* Mobile header — visible only on mobile */
    .mobile-header {
        display:flex;
        flex-direction:column;
        align-items:center;
        text-align:center;
        background:var(--bg2);
        border-bottom:1px solid var(--border);
        padding:28px 24px 24px;
        width:100%;
    }

    .mobile-headline {
        font-family:var(--font-display);
        font-size:24px; font-weight:900;
        letter-spacing:-.5px; line-height:1.2;
        margin-bottom:6px;
    }
    .mobile-headline span { color:var(--gold); }

    .mobile-sub {
        font-size:13px; color:var(--text3);
        margin-bottom:0;
    }

    /* Push form content into a scrollable padded area */
    .mobile-header ~ * {
        padding-left:24px;
        padding-right:24px;
    }

    /* Give the form section proper spacing */
    .mobile-header + .up-alert,
    .mobile-header + div {
        margin-top:28px;
    }

    /* All non-header content in right panel gets horizontal padding */
    .right-panel::before { display:none; }

    /* Re-add padding to form content area */
    .form-box > *:not(.mobile-header) {
        padding-left:24px;
        padding-right:24px;
    }
    .form-box > .mobile-header {
        padding-left:24px;
        padding-right:24px;
    }

    .form-title  { font-size:26px; margin-top:28px; }
    .btn-submit  { margin-bottom:8px; }
    .alt-link    { padding-bottom:40px; }
}

@media (max-width:400px) {
    .mobile-header { padding:24px 16px 20px; }
    .mobile-headline { font-size:20px; }
    .form-box > *:not(.mobile-header) { padding-left:16px; padding-right:16px; }
}