/* ── IA Ads · Auth Dark Theme ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #080b12;
    --bg2:       #0d1117;
    --bg3:       #111827;
    --card:      #0f1520;
    --border:    rgba(255,255,255,.08);
    --border2:   rgba(255,255,255,.14);

    --accent:    #6366f1;
    --accent2:   #8b5cf6;
    --accent3:   #06b6d4;
    --green:     #10b981;
    --red:       #ef4444;

    --text:      #f1f5f9;
    --text2:     #94a3b8;
    --text3:     #64748b;

    --font: 'Inter', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
}

html, body {
    height: 100%;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ── LEFT PANEL ─────────────────────────────────────────────── */
.auth-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.auth-left-glow {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,.16) 0%, transparent 65%);
    top: -150px; left: -150px;
    pointer-events: none;
}
.auth-left-glow-2 {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,.1) 0%, transparent 65%);
    bottom: -100px; right: -100px;
    pointer-events: none;
}
.auth-left-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 90% 90% at 30% 50%, black 30%, transparent 100%);
}

.auth-left-top { position: relative; z-index: 1; }
.auth-left-mid  { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-left-bot  { position: relative; z-index: 1; }

/* Brand */
.auth-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -.04em;
}
.auth-brand-logo {
    display: block;
    width: auto;
    height: 44px;
}
.auth-card-logo-img {
    display: block;
    width: auto;
    height: 42px;
    margin: 0 auto;
}
.auth-brand .b-ia  { color: var(--accent); }
.auth-brand .b-ads { color: var(--text); }

/* Headline */
.auth-headline {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}
.auth-headline .grad {
    background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-tagline {
    font-size: 1rem;
    color: var(--text2);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 40px;
}

/* Feature list */
.auth-features { display: flex; flex-direction: column; gap: 14px; }
.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--text2);
}
.auth-feature-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* Bottom trust */
.auth-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--text3);
}
.auth-trust-item i { color: var(--accent3); font-size: .8rem; }

/* ── RIGHT PANEL (FORM) ─────────────────────────────────────── */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.auth-card-header { margin-bottom: 28px; }
.auth-card-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 8px;
}
.auth-card-header p {
    font-size: .88rem;
    color: var(--text2);
    line-height: 1.6;
}

/* ── FORM ELEMENTS ──────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
}
.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text3);
    font-size: .9rem;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: .92rem;
    padding: 12px 14px 12px 40px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.input-wrap input::placeholder { color: var(--text3); }
.input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}

/* Toggle injetado pelo script.js */
.input-wrap .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .75rem;
    font-weight: 600;
    color: var(--text3);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color .2s;
    line-height: 1;
}
.input-wrap .password-toggle:hover { color: var(--accent3); }
.input-wrap input[type="password"],
.input-wrap input[type="text"] { padding-right: 60px; }

/* form options row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* checkbox */
.check-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.check-wrap input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}
.check-wrap label {
    font-size: .83rem;
    color: var(--text2);
    cursor: pointer;
}
.check-wrap label a { color: var(--accent3); text-decoration: none; }
.check-wrap label a:hover { text-decoration: underline; }

.forgot-link {
    font-size: .83rem;
    color: var(--accent3);
    text-decoration: none;
    white-space: nowrap;
}
.forgot-link:hover { text-decoration: underline; }

/* ── SLIDER ─────────────────────────────────────────────────── */
.slider-challenge {
    margin: 16px 0;
    padding: 14px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
}
.slider-challenge-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text3);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 46px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}
.slider-track {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(99,102,241,.5), rgba(139,92,246,.5));
    transform: translateX(-100%);
    transition: transform .2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    color: #fff;
    font-weight: 600;
}
.slider-track.verified {
    background: linear-gradient(90deg, rgba(16,185,129,.6), rgba(6,182,212,.6));
    transform: translateX(0);
}
.slider-thumb {
    position: absolute;
    top: 4px; left: 4px;
    width: 38px; height: 38px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform .1s;
}
.slider-thumb:active { cursor: grabbing; transform: scale(1.08); }
.slider-thumb i { color: var(--accent); font-size: 1rem; transition: color .2s; }
.slider-thumb.verified i { color: var(--green); }
.slider-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    color: var(--text3);
    font-size: .8rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    transition: opacity .2s;
}
.slider-text.verified { opacity: 0; }
.slider-verified-message {
    margin-top: 8px;
    text-align: center;
    color: var(--green);
    font-size: .82rem;
    font-weight: 600;
    display: none;
}
.slider-verified-message.show { display: block; }
.slider-verified-message i { margin-right: 4px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99,102,241,.3);
    transition: opacity .2s, transform .2s, box-shadow .2s;
    margin-top: 4px;
}
.btn-auth:hover:not(:disabled) {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(99,102,241,.45);
}
.btn-auth:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: var(--bg3);
    color: var(--text3);
}

/* ── ALERT ──────────────────────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: .85rem;
    margin-bottom: 18px;
    line-height: 1.5;
}
.auth-alert.error {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5;
}
.auth-alert.success {
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.25);
    color: #6ee7b7;
}
.auth-alert i { margin-top: 1px; flex-shrink: 0; }

/* ── DIVIDER / FOOTER ───────────────────────────────────────── */
.auth-divider {
    text-align: center;
    margin-top: 24px;
    font-size: .85rem;
    color: var(--text3);
}
.auth-divider a {
    color: var(--accent3);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}
.auth-divider a:hover { text-decoration: underline; }

/* Referral */
.referral-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.2);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: .85rem;
    color: #6ee7b7;
}
.referral-box i { color: var(--green); flex-shrink: 0; }
.referral-box strong { color: #a7f3d0; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 820px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-left  { display: none; }
    .auth-right { padding: 32px 20px; background: var(--bg2); min-height: 100vh; }
    .auth-card  { max-width: 100%; }
}
