/* ─────────────────────────────────────────────────────────────────────────────
   PrestigeListens — Auth Pages v2 — Ultra Premium
───────────────────────────────────────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* ── Left panel — brand / marketing ────────────────────────────────────────── */
.auth-brand-panel {
  background: linear-gradient(145deg, rgba(8,12,28,0.98) 0%, rgba(20,10,40,0.95) 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(157,111,254,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(79,142,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.auth-brand-logo .logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(79, 142, 247, 0.7)) drop-shadow(0 0 24px rgba(157, 111, 254, 0.5));
}
.auth-brand-logo .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.auth-brand-body {
  position: relative;
  z-index: 1;
}
.auth-brand-body h2 {
  font-size: 2rem;
  font-family: var(--font-main);
  margin-bottom: 16px;
  line-height: 1.25;
}
.auth-brand-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.auth-proof-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.auth-stat-box {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(8px);
}
.auth-stat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.auth-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.auth-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.auth-brand-footer {
  color: var(--text-muted);
  font-size: 0.75rem;
  position: relative;
  z-index: 1;
}

/* ── Right panel — form ────────────────────────────────────────────────────── */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  overflow-y: auto;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
  padding-top: 66px;
}

.auth-form-header {
  margin-bottom: 32px;
}
.auth-form-header h1 {
  font-size: 1.75rem;
  font-family: var(--font-main);
  margin-bottom: 8px;
}
.auth-form-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── Custom input with icon ────────────────────────────────────────────────── */
.input-wrapper {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}
.input-with-icon { padding-left: 44px !important; }

.input-with-toggle { position: relative; }
.input-with-toggle .form-input { padding-right: 48px; }

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 4px;
  transition: var(--transition);
  line-height: 1;
  display: flex;
  align-items: center;
}
.toggle-password:hover { color: var(--text-primary); }

/* ── Auth form ─────────────────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Submit button ─────────────────────────────────────────────────────────── */
.btn-auth {
  width: 100%;
  padding: 14px 24px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  letter-spacing: -0.01em;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.btn-auth::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}
.btn-auth:hover::before { left: 100%; }

/* ── Error message ─────────────────────────────────────────────────────────── */
.auth-error {
  background: rgba(244,63,94,0.08);
  border: 1px solid rgba(244,63,94,0.25);
  border-radius: var(--radius-md);
  color: #fda4b2;
  padding: 10px 14px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Footer link ─────────────────────────────────────────────────────────── */
.auth-footer-row {
  margin-top: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.auth-link {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.auth-link:hover { color: #c4b5fd; text-decoration: underline; }

/* ── Terms text ─────────────────────────────────────────────────────────── */
.auth-terms {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 14px;
  line-height: 1.6;
}
.auth-terms a { color: var(--text-secondary); text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-brand-panel {
    display: none;
  }
  .auth-form-panel {
    min-height: 100vh;
    padding: 20px 20px;
  }
  .auth-form-container {
    padding-top: 80px;
  }
}
