/* ============================================================
   AUTH PAGES — Login & Sign Up
   ============================================================ */

.auth-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

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

.auth-page::before {
  width: 500px;
  height: 500px;
  background: rgba(255,107,53,0.25);
  top: -150px;
  right: -100px;
}

.auth-page::after {
  width: 400px;
  height: 400px;
  background: rgba(13,148,136,0.2);
  bottom: -100px;
  left: -80px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.auth-card__logo {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 24px;
  color: white;
  box-shadow: var(--shadow-primary);
}

.auth-card__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.auth-card__subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* Password input with toggle */
.password-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  padding: var(--space-xs);
  transition: color var(--transition-fast);
}

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

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

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

/* Bottom link */
.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

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

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

/* Loading state on button */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn--loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: var(--space-sm);
}
