/* ============================================================
   HELM – AGENCY OS | Auth Pages Stylesheet
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-xlight: #e0e7ff;
  --accent: #8b5cf6;
  --secondary: #0ea5e9;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.12), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.18);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: all 0.15s ease;
  --transition: all 0.2s ease;
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --surface: #1e293b;
  --border: #334155;
  --border-dark: #475569;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --primary-xlight: rgba(99, 102, 241, 0.15);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover { color: var(--primary-dark); }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   3. AUTH PAGE LAYOUT – SPLIT SCREEN
   ============================================================ */
.auth-page {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   4. LEFT PANEL – BRANDING / ILLUSTRATION
   ============================================================ */
.auth-panel-left {
  flex: 0 0 45%;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

/* Background pattern */
.auth-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative grid */
.auth-panel-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Floating orbs */
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.auth-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.18);
  top: -80px;
  right: -80px;
  animation-delay: 0s;
}

.auth-orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(139, 92, 246, 0.15);
  bottom: 100px;
  left: -50px;
  animation-delay: 3s;
}

.auth-orb-3 {
  width: 150px;
  height: 150px;
  background: rgba(14, 165, 233, 0.12);
  top: 50%;
  right: 20%;
  animation-delay: 5s;
}

/* Logo */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.auth-brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.auth-brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.auth-brand-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-brand-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero content */
.auth-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}

.auth-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  width: fit-content;
}

.auth-hero-label svg {
  width: 12px;
  height: 12px;
}

.auth-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.auth-hero-title span {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 2.5rem;
}

/* Feature highlights */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #a5b4fc;
}

.auth-feature-icon svg {
  width: 16px;
  height: 16px;
}

.auth-feature-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
}

.auth-feature-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.125rem;
}

/* Testimonial/Social proof */
.auth-social-proof {
  position: relative;
  z-index: 1;
}

.auth-testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.auth-testimonial-text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1rem;
}

.auth-testimonial-text::before {
  content: '"';
  font-size: 1.25rem;
  color: var(--primary-light);
  font-style: normal;
}

.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.auth-testimonial-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.auth-testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.auth-testimonial-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.auth-stats-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.auth-stat {
  flex: 1;
}

.auth-stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.125rem;
}

/* ============================================================
   5. RIGHT PANEL – AUTH FORM
   ============================================================ */
.auth-panel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--bg);
  overflow-y: auto;
  position: relative;
}

/* Theme toggle */
.auth-theme-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.auth-theme-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.auth-theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* Form card */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  animation: authCardIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-xlight), rgba(139, 92, 246, 0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.auth-card-icon svg {
  width: 26px;
  height: 26px;
}

.auth-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.375rem;
}

.auth-card-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Mobile logo (only shown on mobile) */
.auth-mobile-logo {
  display: none;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.auth-mobile-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-mobile-logo-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.auth-mobile-logo-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ============================================================
   6. AUTH FORM ELEMENTS
   ============================================================ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.125rem;
}

.auth-form-group:last-of-type {
  margin-bottom: 0;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.auth-label-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
}

.auth-label-link:hover {
  color: var(--primary-dark);
}

.auth-input-wrapper {
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 0.6875rem 1rem 0.6875rem 2.75rem;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
}

.auth-input::placeholder {
  color: var(--text-muted);
}

.auth-input:hover {
  border-color: var(--border-dark);
}

.auth-input:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.auth-input.is-invalid {
  border-color: var(--danger);
}

.auth-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.auth-input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
}

.auth-input-wrapper:focus-within .auth-input-icon {
  color: var(--primary);
}

.auth-input-toggle {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.auth-input-toggle:hover {
  color: var(--text);
}

.auth-input-toggle svg {
  width: 16px;
  height: 16px;
}

.auth-error {
  font-size: 0.8125rem;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.auth-error svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ============================================================
   7. AUTH ACTIONS
   ============================================================ */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.auth-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-xs);
  background: var(--surface);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.auth-checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.auth-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

.auth-remember-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  user-select: none;
}

.auth-forgot {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.auth-forgot:hover {
  color: var(--primary-dark);
}

/* Submit Button */
.auth-submit {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  margin-top: 1.5rem;
  letter-spacing: -0.01em;
}

.auth-submit:hover {
  background: linear-gradient(135deg, var(--primary-dark), #3730a3);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.auth-submit:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.auth-submit svg {
  width: 18px;
  height: 18px;
}

/* Loading state */
.auth-submit.loading {
  pointer-events: none;
}

.auth-submit.loading .submit-text {
  opacity: 0;
}

.auth-submit.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   8. DIVIDER (OR section)
   ============================================================ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.auth-divider-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Social buttons */
.auth-social-btns {
  display: flex;
  gap: 0.75rem;
}

.auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.auth-social-btn:hover {
  border-color: var(--border-dark);
  background: var(--bg-secondary);
  color: var(--text);
}

.auth-social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   9. AUTH FOOTER LINKS
   ============================================================ */
.auth-footer {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a {
  font-weight: 600;
  color: var(--primary);
}

.auth-footer a:hover {
  color: var(--primary-dark);
}

/* Terms and privacy */
.auth-terms {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.auth-terms a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms a:hover {
  color: var(--primary);
}

/* Bottom branding on right panel */
.auth-right-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================
   10. FLASH / ALERT MESSAGES (within auth)
   ============================================================ */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
  line-height: 1.5;
}

.auth-alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #065f46;
}

[data-theme="dark"] .auth-alert-success { color: #6ee7b7; }

.auth-alert-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #991b1b;
}

[data-theme="dark"] .auth-alert-error { color: #fca5a5; }

.auth-alert-info {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  color: #3730a3;
}

[data-theme="dark"] .auth-alert-info { color: #a5b4fc; }

/* ============================================================
   11. PASSWORD STRENGTH INDICATOR
   ============================================================ */
.password-strength {
  margin-top: 0.5rem;
}

.password-strength-bar {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.375rem;
}

.password-strength-segment {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: background var(--transition);
}

.password-strength-segment.filled.weak   { background: var(--danger); }
.password-strength-segment.filled.fair   { background: var(--warning); }
.password-strength-segment.filled.good   { background: var(--info); }
.password-strength-segment.filled.strong { background: var(--success); }

.password-strength-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.password-strength-label.weak   { color: var(--danger); }
.password-strength-label.fair   { color: var(--warning); }
.password-strength-label.good   { color: var(--info); }
.password-strength-label.strong { color: var(--success); }

/* ============================================================
   12. OTP / CODE INPUT
   ============================================================ */
.otp-inputs {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  margin: 1rem 0;
}

.otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  caret-color: var(--primary);
}

.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: var(--surface);
}

.otp-input.filled {
  border-color: var(--primary);
  background: var(--primary-xlight);
}

/* ============================================================
   13. ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-20px) scale(1.05); }
  66%       { transform: translateY(10px) scale(0.97); }
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   14. RESPONSIVE
   ============================================================ */

/* Tablet: reduce left panel */
@media (max-width: 1024px) {
  .auth-panel-left {
    flex: 0 0 40%;
    padding: 2.5rem 2rem;
  }

  .auth-hero-title {
    font-size: 1.875rem;
  }

  .auth-panel-right {
    padding: 2rem 1.5rem;
  }

  .auth-card {
    padding: 2rem;
  }
}

/* Mobile: single column */
@media (max-width: 768px) {
  .auth-page {
    flex-direction: column;
  }

  .auth-panel-left {
    display: none;
  }

  .auth-panel-right {
    flex: 1;
    padding: 2rem 1.25rem;
    justify-content: flex-start;
    padding-top: 3rem;
  }

  .auth-mobile-logo {
    display: flex;
  }

  .auth-card {
    max-width: 100%;
    padding: 2rem 1.5rem;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .auth-card-header {
    margin-bottom: 1.5rem;
  }

  .auth-right-footer {
    position: static;
    margin-top: 2rem;
  }

  .otp-input {
    width: 44px;
    height: 52px;
    font-size: 1.25rem;
  }

  .auth-social-btns {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .auth-panel-right {
    padding: 1.5rem 1rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
  }

  .otp-inputs {
    gap: 0.375rem;
  }

  .otp-input {
    width: 40px;
    height: 48px;
    font-size: 1.125rem;
  }
}
