/* ============================================================
   Auth Page — auth.html
   ============================================================ */

/* ── Animated Gradient Background ── */
.brand-panel {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.10) 0%, transparent 50%),
    #18181b;
  background-size: 200% 200%;
  animation: gradientShift 12s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Floating Card Animations ── */
@keyframes floatA {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(-1deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
@keyframes floatC {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-1.5deg); }
}
.float-a { animation: floatA 5s ease-in-out infinite; }
.float-b { animation: floatB 6s ease-in-out infinite 0.5s; }
.float-c { animation: floatC 7s ease-in-out infinite 1s; }

/* ── Glassmorphism Card ── */
.glass-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ── Auth Input ── */
.auth-input {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.auth-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

/* ── Password Strength Bar ── */
.strength-bar {
  height: 4px;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

/* ── Loading Spinner ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Tab Content Transition ── */
.tab-content {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tab-content.hidden {
  display: none;
}

/* ── Toast (auth-specific light variant) ── */
.toast-container {
  position: fixed; top: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  background: #ffffff; border: 1px solid #e4e4e7;
  color: #18181b; font-size: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  transition: opacity 0.3s;
}
