/* =========================================
   Auth Pages — Login & Register
   ========================================= */

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

/* Background orbs */
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.auth-page::before {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: -100px;
  right: -100px;
}

.auth-page::after {
  width: 300px;
  height: 300px;
  background: var(--navy-mid);
  bottom: -80px;
  left: -80px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  z-index: 1;
  animation: auth-card-in 0.6s var(--ease-out);
}

@keyframes auth-card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-card .logo {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.auth-card .logo h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.auth-card .logo p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 auto;
}

.auth-card .form-actions {
  margin-top: var(--space-xl);
}

.auth-card .form-actions .btn {
  width: 100%;
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-card .auth-footer a {
  color: var(--gold);
  font-weight: 500;
}

/* Pending approval message */
.pending-message {
  text-align: center;
  padding: var(--space-2xl);
}

.pending-message .icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

.pending-message h3 {
  margin-bottom: var(--space-sm);
  color: var(--gold);
}

.pending-message p {
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Error message */
.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: var(--space-xs);
  display: none;
}

.form-error.visible {
  display: block;
}

/* Password strength */
.password-strength {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: var(--space-xs);
  overflow: hidden;
}

.password-strength .bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.password-strength .bar.weak { width: 33%; background: var(--error); }
.password-strength .bar.medium { width: 66%; background: var(--warning); }
.password-strength .bar.strong { width: 100%; background: var(--success); }
