/* ============================================================
   Challenge Circle — auth.css
   Login, Register, Forgot Password, Reset Password pages.
   Fluid responsive — scales naturally, no constraints.
   ============================================================ */

/* ── Page shell ──────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    padding-top: var(--nav-height);
    position: relative;
    z-index: 1;
}

/* Subtle radial glow in background */
.auth-page::before {
    content: '';
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center,
        rgba(139,92,246,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 80px;
    position: relative;
    z-index: 1;
}

/* ── Card ────────────────────────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 460px;
    border-radius: 32px;
    padding: 48px 44px;
    /* glass comes from main.css .glass — just sizing here */
}

/* ── Logo mark ───────────────────────────────────────────── */
.auth-logo {
    text-align: center;
    margin-bottom: 22px;
}
.auth-logo-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    background: var(--purple);
    border-radius: 18px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 32px rgba(139,92,246,0.45);
}

/* ── Typography ──────────────────────────────────────────── */
.auth-title {
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.auth-sub {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ── Links ───────────────────────────────────────────────── */
.auth-link {
    color: var(--purple-light);
    transition: color 0.2s;
    text-decoration: none;
}
.auth-link:hover { color: #fff; }

/* ── Divider ─────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 12px;
    color: #4b5563;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

/* ── Password field with eye toggle ─────────────────────── */
.input-password-wrap { position: relative; }
.input-eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
}
.input-eye-btn:hover { color: #fff; }

/* ── Input error state ───────────────────────────────────── */
.input-error { border-color: rgba(248,113,113,0.5) !important; }

/* ── Spacing helpers ─────────────────────────────────────── */
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* ── Success message ─────────────────────────────────────── */
.auth-success {
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.25);
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 20px;
}
.auth-success-icon { font-size: 36px; margin-bottom: 8px; }
.auth-success-title { font-size: 16px; font-weight: 900; color: #34d399; margin-bottom: 6px; }
.auth-success-msg   { font-size: 13px; color: #9ca3af; line-height: 1.6; }

/* ── Affiliate opt-in box ────────────────────────────────── */
.auth-affiliate-box {
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.18);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

/* ── Register: wide card ─────────────────────────────────── */
.auth-card-wide {
    max-width: 540px;
}

/* ── Fluid responsive — no hard breakpoints that constrain layout ── */
/* The card shrinks naturally as viewport narrows.
   We only adjust padding so it doesn't feel cramped on small screens. */

@media (max-width: 600px) {
    .auth-card,
    .auth-card-wide {
        padding: 32px 20px;
        border-radius: 24px;
    }
    .auth-title { font-size: 22px; }
    .auth-wrap  { padding: 24px 16px 80px; }
    .auth-logo-icon { width: 50px; height: 50px; }
}

@media (max-width: 380px) {
    .auth-card,
    .auth-card-wide {
        padding: 28px 16px;
        border-radius: 20px;
    }
    .auth-title { font-size: 20px; }
}