/* ==========================================================================
   MINIMALIST LUXURY FINTECH UI - STYLESHEET
   Inspired by Linear, Stripe & Raycast design systems
   ========================================================================== */

/* --- CSS RESET & ROOT VARIABLES --- */
:root {
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.18s;
  --duration-normal: 0.28s;
  --duration-slow: 0.45s;
}

/* --- THEME DEFINITIONS --- */
/* 1. Dark Mode (Default) */
[data-theme="dark"] {
  --bg-app: #090D16;
  --bg-app-radial: #0C1222;
  --grid-dot-color: rgba(255, 255, 255, 0.035);

  /* Card */
  --card-bg: rgba(13, 19, 33, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-inner-glow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
  --card-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);

  /* Text & Typography */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-link: #818CF8;
  --text-link-hover: #A5B4FC;

  /* Inputs */
  --input-bg: rgba(18, 26, 44, 0.6);
  --input-bg-hover: rgba(24, 35, 59, 0.8);
  --input-bg-focus: rgba(18, 26, 44, 0.95);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-border-hover: rgba(255, 255, 255, 0.2);
  --input-border-focus: #6366F1;
  --input-focus-ring: rgba(99, 102, 241, 0.28);
  --input-placeholder: #475569;
  --input-icon: #64748B;
  --input-icon-focus: #A5B4FC;

  /* Switcher Pill */
  --pill-track-bg: rgba(255, 255, 255, 0.05);
  --pill-track-border: rgba(255, 255, 255, 0.06);
  --pill-active-bg: rgba(255, 255, 255, 0.12);
  --pill-active-border: rgba(255, 255, 255, 0.16);
  --pill-active-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  --pill-text-active: #FFFFFF;
  --pill-text-inactive: #94A3B8;

  /* Buttons */
  --btn-primary-bg: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #4338CA 100%);
  --btn-primary-hover-bg: linear-gradient(135deg, #4338CA 0%, #4F46E5 50%, #3730A3 100%);
  --btn-primary-text: #FFFFFF;
  --btn-primary-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  --btn-primary-hover-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.65), inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);

  /* Social Buttons */
  --btn-social-bg: rgba(255, 255, 255, 0.035);
  --btn-social-bg-hover: rgba(255, 255, 255, 0.07);
  --btn-social-border: rgba(255, 255, 255, 0.08);
  --btn-social-border-hover: rgba(255, 255, 255, 0.18);
  --btn-social-text: #E2E8F0;

  /* Ambient Lights */
  --glow-color-1: rgba(99, 102, 241, 0.22);
  --glow-color-2: rgba(14, 165, 233, 0.16);
  --glow-color-3: rgba(168, 85, 247, 0.14);

  /* States */
  --color-error: #EF4444;
  --color-error-bg: rgba(239, 68, 68, 0.12);
  --color-error-border: rgba(239, 68, 68, 0.3);
  --color-success: #10B981;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-success-border: rgba(16, 185, 129, 0.3);

  /* Divider */
  --divider-line: rgba(255, 255, 255, 0.08);

  /* Top Nav */
  --nav-badge-bg: rgba(255, 255, 255, 0.04);
  --nav-badge-border: rgba(255, 255, 255, 0.08);
  --theme-btn-bg: rgba(255, 255, 255, 0.05);
  --theme-btn-hover: rgba(255, 255, 255, 0.1);
  --theme-btn-border: rgba(255, 255, 255, 0.1);
}

/* 2. Light Mode */
[data-theme="light"] {
  --bg-app: #F8FAFC;
  --bg-app-radial: #EDF2F7;
  --grid-dot-color: rgba(15, 23, 42, 0.04);

  /* Card */
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(15, 23, 42, 0.08);
  --card-inner-glow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  --card-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05);

  /* Text & Typography */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-link: #4F46E5;
  --text-link-hover: #3730A3;

  /* Inputs */
  --input-bg: #FFFFFF;
  --input-bg-hover: #F8FAFC;
  --input-bg-focus: #FFFFFF;
  --input-border: rgba(15, 23, 42, 0.15);
  --input-border-hover: rgba(15, 23, 42, 0.28);
  --input-border-focus: #4F46E5;
  --input-focus-ring: rgba(79, 70, 229, 0.2);
  --input-placeholder: #94A3B8;
  --input-icon: #94A3B8;
  --input-icon-focus: #4F46E5;

  /* Switcher Pill */
  --pill-track-bg: #E2E8F0;
  --pill-track-border: rgba(15, 23, 42, 0.06);
  --pill-active-bg: #FFFFFF;
  --pill-active-border: rgba(15, 23, 42, 0.08);
  --pill-active-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  --pill-text-active: #0F172A;
  --pill-text-inactive: #64748B;

  /* Buttons */
  --btn-primary-bg: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --btn-primary-hover-bg: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  --btn-primary-text: #FFFFFF;
  --btn-primary-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  --btn-primary-hover-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);

  /* Social Buttons */
  --btn-social-bg: #FFFFFF;
  --btn-social-bg-hover: #F1F5F9;
  --btn-social-border: rgba(15, 23, 42, 0.12);
  --btn-social-border-hover: rgba(15, 23, 42, 0.22);
  --btn-social-text: #1E293B;

  /* Ambient Lights */
  --glow-color-1: rgba(99, 102, 241, 0.12);
  --glow-color-2: rgba(56, 189, 248, 0.1);
  --glow-color-3: rgba(168, 85, 247, 0.08);

  /* States */
  --color-error: #DC2626;
  --color-error-bg: #FEF2F2;
  --color-error-border: #FCA5A5;
  --color-success: #059669;
  --color-success-bg: #ECFDF5;
  --color-success-border: #6EE7B7;

  /* Divider */
  --divider-line: rgba(15, 23, 42, 0.1);

  /* Top Nav */
  --nav-badge-bg: #FFFFFF;
  --nav-badge-border: rgba(15, 23, 42, 0.08);
  --theme-btn-bg: #FFFFFF;
  --theme-btn-hover: #F1F5F9;
  --theme-btn-border: rgba(15, 23, 42, 0.1);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--duration-normal) var(--ease-smooth), color var(--duration-normal) var(--ease-smooth);
}

/* --- AMBIENT GLOW & GRID OVERLAY --- */
.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.85;
  transform: translate(-50%, -50%);
  transition: background var(--duration-slow) var(--ease-smooth);
  animation: pulseGlow 14s ease-in-out infinite alternate;
}

.glow-1 {
  width: 600px;
  height: 600px;
  top: 35%;
  left: 50%;
  background: radial-gradient(circle, var(--glow-color-1) 0%, transparent 70%);
}

.glow-2 {
  width: 480px;
  height: 480px;
  top: 55%;
  left: 40%;
  background: radial-gradient(circle, var(--glow-color-2) 0%, transparent 70%);
  animation-delay: -5s;
}

.glow-3 {
  width: 520px;
  height: 520px;
  top: 40%;
  left: 65%;
  background: radial-gradient(circle, var(--glow-color-3) 0%, transparent 70%);
  animation-delay: -9s;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image: radial-gradient(var(--grid-dot-color) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-46%, -53%) scale(1.15) rotate(15deg);
  }
  100% {
    transform: translate(-54%, -47%) scale(0.95) rotate(-10deg);
  }
}

/* --- TOP NAVIGATION BAR --- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--nav-badge-bg);
  border: 1px solid var(--nav-badge-border);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: livePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes livePing {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.status-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--theme-btn-bg);
  border: 1px solid var(--theme-btn-border);
  border-radius: 9999px;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.theme-toggle-btn:hover {
  background: var(--theme-btn-hover);
  transform: translateY(-1px);
}

.theme-toggle-btn:active {
  transform: translateY(0);
}

.theme-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

.theme-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- MAIN VIEWPORT & AUTH CARD --- */
.auth-viewport {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow), var(--card-inner-glow);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  padding: 36px 32px 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal) var(--ease-smooth),
              background-color var(--duration-normal) var(--ease-smooth);
}

/* Subtle Card Top Highlight Rim */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

[data-theme="light"] .auth-card::before {
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.35), transparent);
}

/* --- HEADER & BRANDING --- */
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.logo-meta {
  text-align: left;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6366F1;
  display: block;
}

[data-theme="light"] .brand-tag {
  color: #4F46E5;
}

.auth-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 340px;
  margin: 0 auto;
  transition: opacity 0.2s ease;
}

/* --- SLIDING PILL SWITCHER --- */
.tab-switcher-wrapper {
  margin-bottom: 24px;
}

.tab-switcher {
  position: relative;
  display: flex;
  background: var(--pill-track-bg);
  border: 1px solid var(--pill-track-border);
  border-radius: 12px;
  padding: 4px;
  user-select: none;
}

.sliding-pill {
  position: absolute;
  top: 4px;
  left: 0;
  bottom: 4px;
  width: calc(50% - 4px);
  transform: translateX(4px);
  background: var(--pill-active-bg);
  border: 1px solid var(--pill-active-border);
  border-radius: 9px;
  box-shadow: var(--pill-active-shadow);
  pointer-events: none;
  z-index: 1;
  will-change: transform, width;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn {
  flex: 1;
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  outline: none;
  height: 38px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--pill-text-inactive);
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--pill-text-active);
}

/* --- FORMS SLIDER VIEWPORT & 60FPS TRANSITIONS --- */
.forms-slider-viewport {
  position: relative;
  overflow: hidden;
}

.form-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.form-panel.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}

/* --- FORM ALERTS & NOTIFICATIONS --- */
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.45;
  animation: alertFadeIn 0.2s ease;
}

.form-alert.error {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  color: var(--color-error);
}

.alert-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes alertFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- FORM INPUT GROUPS & MICRO-INTERACTIONS --- */
.input-group {
  margin-bottom: 18px;
  position: relative;
}

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

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.label-row .input-label {
  margin-bottom: 0;
}

.text-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.text-link:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

.text-link.inline {
  display: inline;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  transition: border-color var(--duration-fast) ease,
              background-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.input-wrapper:hover {
  border-color: var(--input-border-hover);
  background-color: var(--input-bg-hover);
}

.input-wrapper.focused {
  border-color: var(--input-border-focus);
  background-color: var(--input-bg-focus);
  box-shadow: 0 0 0 3px var(--input-focus-ring);
}

.input-wrapper.error {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 3px var(--color-error-bg) !important;
}

/* Left Icon */
.input-icon.left {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--input-icon);
  pointer-events: none;
  transition: color var(--duration-fast) ease;
}

.input-icon.left svg {
  width: 18px;
  height: 18px;
}

.input-wrapper.focused .input-icon.left {
  color: var(--input-icon-focus);
}

/* Auth Input Element (Mobile Strict: min-height 48px, font-size 16px) */
.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 42px;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px; /* Exactly 16px to prevent iOS auto zoom */
  font-weight: 500;
  color: var(--text-primary);
  line-height: normal;
}

.auth-input::placeholder {
  color: var(--input-placeholder);
  font-size: 14.5px;
  font-weight: 400;
}

/* Password Toggle Eye Button */
.pwd-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--input-icon);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  outline: none;
  transition: color var(--duration-fast) ease;
}

.pwd-toggle-btn:hover {
  color: var(--text-primary);
}

.eye-icon {
  width: 18px;
  height: 18px;
}

.pwd-toggle-btn .eye-closed {
  display: none;
}

.pwd-toggle-btn.visible .eye-open {
  display: none;
}

.pwd-toggle-btn.visible .eye-closed {
  display: block;
}

/* Field Error Text */
.field-error-text {
  display: none;
  font-size: 12px;
  color: var(--color-error);
  margin-top: 5px;
  padding-left: 2px;
  animation: alertFadeIn 0.15s ease;
}

.input-group.has-error .field-error-text {
  display: block;
}

/* Shake Animation */
.shake {
  animation: inputShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes inputShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* --- PASSWORD STRENGTH METER --- */
.password-meter-wrap {
  margin-top: 8px;
  display: none;
}

.password-meter-wrap.active {
  display: block;
  animation: alertFadeIn 0.2s ease;
}

.meter-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  height: 4px;
  margin-bottom: 6px;
}

.meter-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: background-color var(--duration-fast) ease;
}

[data-theme="light"] .meter-bar {
  background: rgba(15, 23, 42, 0.1);
}

.meter-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.meter-text {
  color: var(--text-muted);
}

.meter-grade {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Strength Colors */
.strength-weak #bar1 { background-color: #EF4444; }
.strength-weak .meter-grade { color: #EF4444; }

.strength-fair #bar1,
.strength-fair #bar2 { background-color: #F59E0B; }
.strength-fair .meter-grade { color: #F59E0B; }

.strength-good #bar1,
.strength-good #bar2,
.strength-good #bar3 { background-color: #3B82F6; }
.strength-good .meter-grade { color: #3B82F6; }

.strength-strong #bar1,
.strength-strong #bar2,
.strength-strong #bar3,
.strength-strong #bar4 { background-color: #10B981; }
.strength-strong .meter-grade { color: #10B981; }

/* --- CHECKBOX ROW --- */
.options-row {
  margin-bottom: 22px;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--input-border-hover);
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1.5px;
  transition: all var(--duration-fast) ease;
}

.checkbox-box svg {
  width: 11px;
  height: 11px;
  color: #FFFFFF;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--duration-fast) var(--ease-spring);
}

.custom-checkbox:checked + .checkbox-box {
  background: #6366F1;
  border-color: #6366F1;
}

[data-theme="light"] .custom-checkbox:checked + .checkbox-box {
  background: #4F46E5;
  border-color: #4F46E5;
}

.custom-checkbox:checked + .checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.checkbox-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- SUBMIT CTA BUTTON --- */
.submit-btn {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--btn-primary-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.submit-btn:hover:not(:disabled) {
  background: var(--btn-primary-hover-bg);
  transform: translateY(-1.5px);
  box-shadow: var(--btn-primary-hover-shadow);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.btn-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--duration-fast) ease;
}

.btn-arrow {
  width: 17px;
  height: 17px;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Loading State */
.btn-spinner {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
}

.btn-spinner svg {
  width: 22px;
  height: 22px;
  animation: spin 0.85s linear infinite;
}

.submit-btn.loading {
  cursor: not-allowed;
  opacity: 0.85;
}

.submit-btn.loading .btn-content {
  opacity: 0;
  visibility: hidden;
}

.submit-btn.loading .btn-spinner {
  display: flex;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- DIVIDER --- */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--divider-line);
}

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

/* --- SOCIAL BUTTONS --- */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  height: 44px;
  border-radius: 10px;
  background: var(--btn-social-bg);
  border: 1px solid var(--btn-social-border);
  color: var(--btn-social-text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  background: var(--btn-social-bg-hover);
  border-color: var(--btn-social-border-hover);
  transform: translateY(-1px);
}

.social-btn:active {
  transform: translateY(0);
}

/* --- TRUST BADGES FOOTER --- */
.auth-card-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--divider-line);
  text-align: center;
}

.security-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.shield-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #10B981;
}

/* --- TOAST NOTIFICATION COMPONENT --- */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.4);
  animation: toastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.toast-success {
  background: rgba(16, 185, 129, 0.95);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.toast-error {
  background: rgba(239, 68, 68, 0.95);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.toast-info {
  background: rgba(15, 23, 42, 0.92);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .toast.toast-info {
  background: rgba(15, 23, 42, 0.95);
  color: #FFFFFF;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.hide {
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 480px) {
  .top-nav {
    padding: 0 16px;
    height: 56px;
  }

  .status-text {
    display: none;
  }

  .auth-viewport {
    padding: 68px 14px 24px;
    align-items: flex-start;
  }

  .auth-card {
    padding: 26px 20px 22px;
    border-radius: 16px;
  }

  .auth-subtitle {
    font-size: 13.5px;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .security-stamp {
    font-size: 10.5px;
  }
}
