/* ══════════════════════════════════════════════
   AUTH PAGES — Login & Register
   ══════════════════════════════════════════════ */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

/* Animated orbs */
.auth-body::before,
.auth-body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orb-float 8s ease-in-out infinite;
}

.auth-body::before {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.12);
  top: -100px;
  left: -100px;
}

.auth-body::after {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.12);
  bottom: -100px;
  right: -100px;
  animation-delay: -4s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* Floating particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(59, 130, 246, 0.4);
  border-radius: 50%;
  animation: particle-rise linear infinite;
}

@keyframes particle-rise {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Auth Card */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(13, 18, 36, 0.85);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: fadeInUp 0.5s ease;
}

[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-xl);
}

.auth-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.auth-logo-icon .material-icons-round {
  font-size: 26px;
  color: white;
}

.auth-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.auth-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Auth Title */
.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

/* Input with icon */
.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .material-icons-round {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

.input-icon-wrapper .form-input {
  padding-left: 44px;
}

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

.input-icon-wrapper .toggle-password:hover { color: var(--text-primary); }

/* Strength Indicator */
.password-strength {
  margin-top: 6px;
  display: flex;
  gap: 4px;
}

.strength-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border-2);
  transition: background var(--transition-normal);
}

.strength-bar.weak   { background: var(--accent-red); }
.strength-bar.medium { background: var(--accent-orange); }
.strength-bar.strong { background: var(--accent-green); }

/* Submit Button */
.auth-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  position: relative;
  overflow: hidden;
  margin-top: var(--space-sm);
}

.auth-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.4s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.auth-submit:hover::before { left: 100%; }
.auth-submit:active { transform: translateY(0); }

.auth-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent-blue-light);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.auth-footer a:hover { color: var(--accent-blue); }

/* Error Message */
.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
  animation: scaleIn 0.2s ease;
}

.auth-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

/* Theme Toggle on auth page */
.auth-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.auth-theme-toggle:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

/* Divider with text */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

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

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .auth-title { font-size: 1.5rem; }
}
