/* ═══════════════════════════════════════════════════
   AUTH PAGES — Login & Signup
   V2 Xtract design system — glass cards
   ═══════════════════════════════════════════════════ */

.auth-wrap{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 80px;
}

.auth-card{
  background: rgba(13, 13, 13, 0.8);
  border: 1px solid #222;
  border-radius: 8px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.04),
    0 2px 8px rgba(0,0,0,0.3),
    0 8px 24px rgba(0,0,0,0.4),
    0 0 80px rgba(129,74,200,0.04);
}

.auth-card h2{
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 8px;
}

.auth-sub{
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* ── FORM FIELDS ── */
.field{
  margin-bottom: 24px;
  text-align: left;
}

.field label{
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}

.field input,
.field select{
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  line-height: 1.5;
  transition: all 0.2s var(--ease);
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus{
  border-color: var(--accent);
  background: rgba(129,74,200,0.04);
  outline: none;
  box-shadow: 0 0 0 3px rgba(129,74,200,0.1);
}

.field input::placeholder{
  color: rgba(255,255,255,0.25);
}

/* ── AUTH BUTTON ── */
.auth-btn{
  width: 100%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 14px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 8px;
  transition: all 0.3s var(--ease);
}

.auth-btn:hover{
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(129,74,200,0.25);
}

.auth-btn:disabled{
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── ERROR ── */
.auth-error{
  display: none;
  color: #ff4444;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(255,68,68,0.15);
  border-radius: 4px;
  background: rgba(255,68,68,0.05);
  letter-spacing: -0.02em;
}

/* ── DIVIDER ── */
.auth-divider{
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.auth-divider::before,
.auth-divider::after{
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.auth-divider span{
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── GOOGLE BUTTON ── */
.google-btn{
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: -0.02em;
  padding: 14px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
}

.google-btn:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

/* ── LINKS ── */
.auth-links{
  margin-top: 32px;
}

.auth-links p{
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-links a{
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.auth-links a:hover{
  color: #fff;
}

/* ── SIGNUP STEPS ── */
.step-indicator{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.step-dot{
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  transition: background 0.3s;
}

.step-dot.active{
  background: var(--accent);
}

.step-dot.done{
  background: rgba(255,255,255,0.2);
}

.signup-step{
  display: none;
  animation: stepIn 0.3s ease;
}

.signup-step.active{
  display: block;
}

@keyframes stepIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.step-title{
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 8px;
}

.step-sub{
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

/* Interest pills (step 5) */
.interest-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.interest-pill{
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.interest-pill.selected{
  border-color: var(--accent);
  background: rgba(129,74,200,0.1);
  color: #fff;
}

.interest-pill:hover{
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

/* City autocomplete */
.city-results{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(13,13,13,0.95);
  border: 1px solid #222;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.city-results.open{
  display: block;
}

.city-result{
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  letter-spacing: -0.02em;
}

.city-result:last-child{ border-bottom: none; }

.city-result:hover{
  background: rgba(129,74,200,0.08);
}

/* ── RESPONSIVE ── */
@media(max-width: 480px){
  .auth-wrap{ padding: 80px 16px 60px; }
  .auth-card{
    padding: 32px 20px;
    border-color: rgba(255,255,255,0.04);
  }
}
