/* ============================================================
   CareerChief OS — Auth Pages CSS
   ============================================================ */

:root {
  --navy:         #0A0F1E;
  --navy-2:       #0F1629;
  --slate:        #1E293B;
  --border:       #2A3A52;
  --text:         #F8FAFC;
  --text-muted:   #94A3B8;
  --text-dim:     #64748B;
  --violet:       #7C3AED;
  --violet-light: #A855F7;
  --gold:         #F59E0B;
  --green:        #10B981;
  --red:          #EF4444;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:       12px;
}

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

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
}

.grad {
  background: linear-gradient(135deg, var(--violet-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Two-column layout ──────────────────────────────────────── */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left  { display: none; }
}

/* ── Left panel ─────────────────────────────────────────────── */
.auth-left {
  background: radial-gradient(ellipse at 30% 40%, rgba(124,58,237,0.2) 0%, var(--navy) 70%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.brand-orb {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(0.92); opacity: 0.8; }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.auth-pitch h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.pitch-sub {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.pitch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pitch-list li {
  color: var(--text-muted);
  font-size: 15px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.trial-badge {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(168,85,247,0.2));
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 100px;
  color: var(--violet-light);
  font-size: 14px;
  font-weight: 600;
}

.stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  flex: 1;
  min-width: 100px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--violet-light);
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Right panel ────────────────────────────────────────────── */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

/* ── Form elements ──────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: #111827;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.forgot-link {
  font-size: 13px;
  color: var(--violet-light);
  text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }
.btn-full { width: 100%; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #FCA5A5;
}

.alert-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6EE7B7;
}

/* ── Footer text ────────────────────────────────────────────── */
.auth-switch {
  margin-top: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.auth-switch a {
  color: var(--violet-light);
  text-decoration: none;
  font-weight: 600;
}

.auth-legal {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 12px;
}

.auth-legal a { color: var(--text-dim); }

/* ── Centered variant (verify page) ─────────────────────────── */
.auth-page.centered {
  grid-template-columns: 1fr;
  place-items: center;
}

.centered-card {
  text-align: center;
  max-width: 400px;
  padding: 40px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.verify-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.centered-card h2 {
  margin-bottom: 12px;
}

.centered-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
