/* ══════════════════════════════════════════
   bid.live — Auth CSS Desktop
   Poppins · Paleta #0F172A #E94560 #F5A623
══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --navy:   #0F172A;
  --coral:  #E94560;
  --gold:   #F5A623;
  --green:  #10B981;
  --surface:#F8F8FC;
  --border: #EDEDF5;
  --text:   #0F172A;
  --muted:  #6B7280;
  --white:  #ffffff;
  --font:   'Poppins', sans-serif;
}

body.auth-body {
  font-family: var(--font);
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color-scheme: light;
  position: relative;
  overflow: hidden;
}

/* ── Fondo decorativo ── */
.auth-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.auth-ring {
  position: absolute; border-radius: 50%;
  border: 40px solid rgba(233,69,96,.05);
}
.auth-ring-1 { width: 500px; height: 500px; right: -100px; top: -100px; }
.auth-ring-2 { width: 350px; height: 350px; left: -80px; bottom: -80px; border-color: rgba(245,166,35,.04); }
.auth-dot { position: absolute; border-radius: 50%; }
.auth-dot-1 { width: 6px; height: 6px; background: rgba(233,69,96,.5); top: 15%; left: 30%; }
.auth-dot-2 { width: 4px; height: 4px; background: rgba(245,166,35,.4); top: 60%; right: 25%; }
.auth-dot-3 { width: 5px; height: 5px; background: rgba(255,255,255,.1); bottom: 20%; left: 45%; }

/* ── Contenedor principal ── */
.auth-container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  width: 95%;
  min-height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
}

/* ── Lado izquierdo ── */
.auth-left {
  background: var(--navy);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,.06);
}
.auth-left-inner { width: 100%; }
.auth-logo {
  font-size: 28px; font-weight: 900; color: #fff;
  letter-spacing: -.5px; margin-bottom: 24px;
}
.auth-logo .logo-dot { color: var(--coral); }
.auth-tagline {
  font-size: 32px; font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 12px;
}
.auth-tagline em { color: var(--coral); font-style: normal; display: block; }
.auth-sub {
  font-size: 13px; color: rgba(255,255,255,.5);
  line-height: 1.7; margin-bottom: 30px; font-weight: 300;
}
.auth-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.auth-feat {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 12px 14px;
}
.auth-feat-icon { font-size: 20px; flex-shrink: 0; }
.auth-feat-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.auth-feat-sub   { font-size: 11px; color: rgba(255,255,255,.4); }
.auth-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px;
}
.auth-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 12px 8px; text-align: center;
}
.auth-stat-n { font-size: 18px; font-weight: 800; color: #fff; }
.auth-stat-l { font-size: 10px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ── Lado derecho ── */
.auth-right {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 36px;
}
.auth-card { width: 100%; }

/* ── Tabs ── */
.auth-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1; padding: 10px; background: none; border: none;
  font-size: 13px; font-weight: 600; color: var(--muted);
  font-family: var(--font); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.auth-tab.active { color: var(--navy); border-bottom-color: var(--coral); }

/* ── Panels ── */
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-panel-sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; }

/* ── Campos ── */
.auth-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.auth-field { margin-bottom: 12px; }
.auth-field.full { grid-column: 1 / -1; }
.auth-label { font-size: 11px; font-weight: 600; color: #374151; display: block; margin-bottom: 4px; }
.auth-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface) !important;
  border: 1.5px solid var(--border);
  border-radius: 10px; padding: 0 12px;
  transition: border-color .2s;
}
.auth-input-wrap:focus-within { border-color: var(--coral); }
.auth-input-icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--muted); }
.auth-input {
  flex: 1; border: none; outline: none;
  background: var(--surface) !important;
  color: var(--text) !important;
  font-size: 13px; font-family: var(--font);
  padding: 10px 0;
  -webkit-text-fill-color: var(--text) !important;
}
.auth-input::placeholder { color: #9CA3AF !important; -webkit-text-fill-color: #9CA3AF !important; }
.auth-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px var(--surface) inset !important;
  -webkit-text-fill-color: var(--text) !important;
}
.auth-show-btn {
  background: none; border: none; font-size: 10px; font-weight: 700;
  color: var(--coral); cursor: pointer; font-family: var(--font); padding: 0;
}

/* ── Row check ── */
.auth-row-check {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 11px;
}
.auth-remember { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.auth-forgot { color: var(--coral); font-weight: 600; text-decoration: none; font-size: 11px; }

/* ── Botones ── */
.auth-btn-main {
  width: 100%; background: var(--coral); color: #fff;
  border: none; padding: 12px; border-radius: 12px;
  font-size: 13px; font-weight: 700; font-family: var(--font);
  cursor: pointer; margin-bottom: 10px;
  transition: opacity .2s;
}
.auth-btn-main:hover { opacity: .9; }
.auth-btn-back {
  flex: 0 0 auto; background: var(--surface); color: var(--navy);
  border: 1.5px solid var(--border); padding: 12px 20px;
  border-radius: 12px; font-size: 13px; font-weight: 600;
  font-family: var(--font); cursor: pointer;
}
.auth-btn-row { display: flex; gap: 8px; margin-top: 4px; }
.auth-btn-row .auth-btn-main { flex: 1; margin-bottom: 0; }

/* ── Switch ── */
.auth-switch { font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; }
.auth-switch a { color: var(--coral); font-weight: 700; cursor: pointer; text-decoration: none; }

/* ── Steps bar ── */
.auth-steps-bar { display: flex; gap: 4px; margin-bottom: 6px; }
.auth-step-seg {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--border); transition: background .3s;
}
.auth-step-seg.active { background: var(--coral); }
.auth-step-seg.done   { background: #0F172A; }
.auth-step-lbl { font-size: 10px; color: var(--muted); margin-bottom: 16px; }

/* ── Step panels ── */
.auth-step-panel { display: none; }
.auth-step-panel.active { display: block; }

/* ── Depósito box ── */
.auth-deposit-box {
  background: #FFF8EC; border: 1.5px solid #FDE68A;
  border-radius: 14px; padding: 18px; text-align: center;
  margin-bottom: 14px;
}
.auth-deposit-icon { width: 40px; height: 40px; margin: 0 auto 10px; }
.auth-deposit-icon svg { width: 40px; height: 40px; }
.auth-deposit-title { font-size: 13px; font-weight: 700; color: #92400E; margin-bottom: 6px; }
.auth-deposit-amount { font-size: 32px; font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.auth-deposit-desc {
  font-size: 11px; color: #B45309; line-height: 1.6; margin-bottom: 10px;
}
.auth-deposit-warn {
  font-size: 10px; font-weight: 700; color: #9F1239;
  background: #FFF0F3; border: 1px solid #FECDD3;
  border-radius: 8px; padding: 7px 10px;
}

/* ── Acepta políticas ── */
.auth-agree-row {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 14px; font-size: 11px; color: var(--muted);
}
.auth-agree-row a { color: var(--coral); font-weight: 600; }
.auth-agree-row input { margin-top: 2px; flex-shrink: 0; }

/* ── Toast / Alertas ── */
.auth-toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-size: 13px; font-weight: 500;
  opacity: 0; transition: opacity .3s; z-index: 999;
}
.auth-toast.show { opacity: 1; }
