/* ============================================================================
   TRADE SPHERE FX — Auth Pages (Login / Register / Forgot / Reset)
   Depends on: design-system.css
   ============================================================================ */

.auth-shell {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6) 4%;
  position: relative;
  overflow: hidden;
}
.auth-shell::before {
  content: ''; position: absolute; top: -10%; right: -6%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(var(--primary-rgb),0.10), transparent 65%); filter: blur(20px); pointer-events: none;
}
.auth-shell::after {
  content: ''; position: absolute; bottom: -12%; left: -8%; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(var(--gold-rgb),0.07), transparent 65%); filter: blur(20px); pointer-events: none;
}

.auth-grid { width: 100%; max-width: 1080px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); align-items: center; position: relative; z-index: 1; }

/* Left showcase panel (desktop only) */
.auth-showcase { display: block; }
.auth-showcase-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); padding: 8px 16px; border-radius: var(--radius-full); background: rgba(var(--gold-rgb),0.06); border: 1px solid rgba(var(--gold-rgb),0.26); margin-bottom: var(--sp-5); }
.auth-showcase-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.auth-showcase-title .accent { background: linear-gradient(135deg, var(--primary-light), var(--primary) 55%, var(--primary-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-showcase-desc { color: var(--text-secondary); font-size: var(--text-body); line-height: var(--leading-relaxed); margin-top: var(--sp-4); max-width: 420px; }
.auth-showcase-stats { display: flex; gap: var(--sp-6); margin-top: var(--sp-8); }
.auth-showcase-stat-value { font-family: var(--font-mono); font-weight: 800; font-size: 1.5rem; color: var(--primary); }
.auth-showcase-stat-label { font-size: var(--text-micro); color: var(--text-muted); margin-top: 3px; }
.auth-showcase-trust { display: flex; flex-direction: column; gap: 14px; margin-top: var(--sp-8); }
.auth-trust-item { display: flex; align-items: center; gap: 12px; font-size: var(--text-small); color: var(--text-secondary); font-weight: 500; }
.auth-trust-item .ic { width: 34px; height: 34px; border-radius: var(--radius-sm); background: rgba(var(--primary-rgb),0.08); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.auth-trust-item .ic svg { width: 16px; height: 16px; }

/* Right form panel */
.auth-panel { width: 100%; max-width: 460px; margin: 0 auto; }
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  padding: var(--sp-8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
}
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: var(--sp-6); width: 100%; text-align: center; }
.auth-logo-img { height: var(--alh, 96px); width: var(--alw, auto); max-width: var(--alw, 260px); object-fit: contain; display: block; }
@media (max-width: 480px) { .auth-logo-img { height: min(var(--alh, 96px), 76px); max-width: var(--alw, 240px); } }
.auth-logo-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #06120E; flex-shrink: 0; }
.auth-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.01em; }
.auth-logo-text span { color: var(--primary); }

.auth-title { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: var(--text-small); margin-bottom: var(--sp-6); }
.auth-footer { text-align: center; margin-top: var(--sp-6); font-size: var(--text-small); color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-back { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-caption); font-weight: 600; color: var(--text-muted); text-decoration: none; margin-bottom: var(--sp-5); transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out); }
.auth-back svg { width: 15px; height: 15px; }
.auth-back:hover { color: var(--primary); transform: translateX(-2px); }
.auth-logo { text-decoration: none; }
.auth-switch { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border-default); }
.auth-switch span { font-size: var(--text-small); color: var(--text-muted); }

.auth-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-small); color: var(--text-muted); margin-bottom: var(--sp-5); }
.auth-back-link:hover { color: var(--text-primary); }
.auth-back-link svg { width: 15px; height: 15px; }

/* Password visibility toggle */
.input-group.has-toggle .input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: none; border: none; }
.pw-toggle:hover { color: var(--text-primary); }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle .icon-eye-off { display: none; }
.pw-toggle.is-visible .icon-eye { display: none; }
.pw-toggle.is-visible .icon-eye-off { display: block; }

/* Success state icon (reset complete etc) */
.auth-success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(var(--success-rgb),0.1); border: 1px solid rgba(var(--success-rgb),0.25); display: flex; align-items: center; justify-content: center; color: var(--success); margin: 0 auto var(--sp-5); }
.auth-success-icon svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .auth-showcase { display: none; }
  .auth-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .auth-card { padding: var(--sp-6) var(--sp-5); border-radius: var(--radius-lg); }
  .auth-shell { padding: var(--sp-4) 4%; }
  .auth-card .grid[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ── Google / OAuth login ─────────────────────────────────────────── */
.oauth-divider { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0; color: var(--text-muted); font-size: var(--text-caption); }
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-default); }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  width: 100%; padding: 13px 20px; border-radius: var(--radius-md);
  background: #fff; color: #1F1F1F; font-weight: 600; font-size: var(--text-small);
  border: 1px solid var(--border-medium); cursor: pointer; transition: all 0.18s var(--ease-out);
  text-decoration: none;
}
.btn-google:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.14); transform: translateY(-1px); border-color: var(--border-strong); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }
[data-theme="light"] .btn-google { border-color: var(--border-medium); box-shadow: var(--shadow-xs); }
