/* ============================================================
   CurriculoOnline – Auth Page Styles
   ============================================================ */

.auth-body {
  background: var(--dark-800);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* ── Left Panel – Branding ───────────────────────────────── */
.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16);
  background: linear-gradient(135deg, var(--dark-750) 0%, var(--dark-900) 100%);
  border-right: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.auth-left-content { position: relative; z-index: 1; }

.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-16);
  text-decoration: none;
}

.auth-logo .logo-text {
  font-size: var(--text-2xl);
}

.auth-headline {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.auth-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

/* Social Proof */
.auth-testimonial {
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 420px;
}

.auth-testimonial-text {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.auth-testimonial-stars {
  color: var(--accent-amber);
  font-size: var(--text-base);
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
}

.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
}

.auth-resume-preview {
  position: absolute;
  right: -20px;
  bottom: 60px;
  width: 180px;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xl);
  transform: rotate(8deg);
  opacity: 0.8;
  animation: float 5s ease-in-out infinite;
}

.auth-resume-preview-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rp-line { height: 6px; background: var(--gray-200); border-radius: 3px; }
.rp-line.short { width: 60%; }
.rp-line.brand { background: var(--brand-500); width: 40%; }
.rp-circle { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-200); }

/* ── Right Panel – Form ──────────────────────────────────── */
.auth-right {
  width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-12);
  position: relative;
}

.auth-right::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.auth-right-content { position: relative; z-index: 1; }

.auth-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.auth-subtitle a { color: var(--brand-400); font-weight: 600; }

/* Google Button */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0.875rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-sans);
  margin-bottom: var(--space-6);
}
.btn-google:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.google-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Auth Form */
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); }

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  padding: 4px;
  transition: color var(--transition-fast);
}
.password-toggle:hover { color: var(--text-primary); }

.auth-forgot {
  text-align: right;
  margin-top: -var(--space-2);
  margin-bottom: var(--space-2);
}
.auth-forgot a { font-size: var(--text-xs); color: var(--text-muted); }
.auth-forgot a:hover { color: var(--brand-400); }

.auth-submit { width: 100%; margin-top: var(--space-2); }

.auth-terms {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-5);
  line-height: 1.6;
}
.auth-terms a { color: var(--text-muted); text-decoration: underline; }
.auth-terms a:hover { color: var(--text-secondary); }

/* Password Strength */
.password-strength {
  margin-top: var(--space-2);
}
.strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}
.strength-bar {
  flex: 1;
  height: 3px;
  background: var(--dark-400);
  border-radius: var(--radius-full);
  transition: background var(--transition-normal);
}
.strength-bar.active-weak   { background: var(--danger); }
.strength-bar.active-fair   { background: var(--warning); }
.strength-bar.active-good   { background: var(--info); }
.strength-bar.active-strong { background: var(--success); }

.strength-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Tabs (Login / Register) ─────────────────────────────── */
.auth-tabs {
  display: flex;
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: var(--space-8);
}

.auth-tab {
  flex: 1;
  padding: 0.625rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border: none;
  background: none;
  font-family: var(--font-sans);
  transition: all var(--transition-normal);
}
.auth-tab.active {
  background: var(--brand-600);
  color: white;
  box-shadow: 0 2px 8px rgba(99,102,241,0.4);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .auth-left { display: none; }
  .auth-right { width: 100%; max-width: 520px; margin: 0 auto; }
  .auth-body { justify-content: center; }
}
@media (max-width: 480px) {
  .auth-right { padding: var(--space-8) var(--space-5); }
}
