/* ═══════════════════════════════════════════════════════════════════
   TextGlam — Auth Pages CSS
═══════════════════════════════════════════════════════════════════ */

/* ── Auth Layout ──────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}

.auth-bg {
  position: fixed; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 0;
}

.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.auth-blob-1 { width: 500px; height: 500px; background: #c4ff2e; top: -200px; right: -100px; }
.auth-blob-2 { width: 400px; height: 400px; background: #b0e625; bottom: -150px; left: -100px; }
.auth-blob-3 { width: 300px; height: 300px; background: #9bc714; top: 40%; left: 50%; opacity: .15; }

.auth-container {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}

/* ── Auth Logo ──────────────────────────────────────────────────── */
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 800; color: var(--text-primary);
  text-decoration: none; letter-spacing: -.04em;
}
.auth-logo .logo-icon { font-size: 2rem; }
.auth-logo .logo-text {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Auth Card ──────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(196,255,46,.1);
  display: flex; flex-direction: column; gap: 20px;
}

.auth-card-header {
  text-align: center;
}
.auth-card-header h1 { font-size: 1.625rem; margin-bottom: 6px; }
.auth-card-header p  { color: var(--text-secondary); font-size: .9375rem; margin: 0; }

.auth-icon-wrap { font-size: 2.5rem; margin-bottom: 8px; }

/* ── Google Button ──────────────────────────────────────────────── */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  color: var(--text-primary); font-family: inherit; font-size: .9375rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  min-height: 48px;
}
.btn-google:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ── Divider ────────────────────────────────────────────────────── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: .875rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Form Row (2-col) ──────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── auth form group spacing ────────────────────────────────────── */
.auth-card .form-group { gap: 6px; }

/* ── Password Strength ──────────────────────────────────────────── */
.password-strength-bar {
  height: 4px; background: var(--bg-elevated);
  border-radius: var(--radius-full); overflow: hidden; margin-top: 6px;
}
.strength-fill {
  height: 100%; border-radius: var(--radius-full);
  width: 0; transition: width .3s var(--ease), background .3s;
}
.strength-label { font-size: .75rem; color: var(--text-muted); margin: 4px 0 0; height: 18px; }

/* ── Auth Footer Text ────────────────────────────────────────────── */
.auth-footer-text { text-align: center; font-size: .875rem; color: var(--text-secondary); margin: 0; }
.auth-footer-text a { color: var(--brand-400); font-weight: 600; }

.auth-legal { text-align: center; font-size: .8rem; color: var(--text-muted); max-width: 340px; }

/* ── Plan Chips ──────────────────────────────────────────────────── */
.auth-plan-preview {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.plan-chip {
  background: rgba(196,255,46,.1); border: 1px solid rgba(196,255,46,.25);
  border-radius: var(--radius-full); padding: 6px 14px;
  font-size: .8rem; color: var(--brand-300); font-weight: 500;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .auth-card { padding: 24px 20px; border-radius: var(--radius-lg); }
}

/* ── Theme-aware ────────────────────────────────────────────────── */
[data-theme="light"] .auth-blob { opacity: .12; }
[data-theme="light"] .btn-google { background: #fff; border-color: #e2e8f0; color: #1a1040; }
[data-theme="light"] .btn-google:hover { background: #f8f7ff; }
