/* ═══════════════════════════════════════════════════════════════════════════
   UX-AUTH – Styles v2.0 (MIT TABS & PASSWORD)
   Authentication & Terms Acceptance Screen
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   0. CSS VARIABLES
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --auth-primary: #1E3A5F;
  --auth-primary-dark: #0E2240;
  --auth-primary-light: #ebf0f8;
  --auth-success: #10b981;
  --auth-success-light: #d1fae5;
  --auth-warning: #f59e0b;
  --auth-warning-light: #fef3c7;
  --auth-danger: #ef4444;
  --auth-danger-light: #fee2e2;
  --auth-google-bg: #ffffff;
  --auth-google-border: #dadce0;
  --auth-google-text: #3c4043;
  --auth-google-hover: #f8f9fa;
  --auth-ink: #222326;
  --auth-ink-muted: #747679;
  --auth-ink-light: #94a3b8;
  --auth-bg: #f6f8fb;
  --auth-card-bg: #ffffff;
  --auth-border: #e2e8f0;
  --auth-border-light: #ebf0f8;
  --auth-font: 'Inter','Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --auth-xs: 0.75rem;
  --auth-sm: 0.875rem;
  --auth-base: 1rem;
  --auth-lg: 1.125rem;
  --auth-xl: 1.25rem;
  --auth-2xl: 1.5rem;
  --auth-space-xs: 0.25rem;
  --auth-space-sm: 0.5rem;
  --auth-space-md: 1rem;
  --auth-space-lg: 1.5rem;
  --auth-space-xl: 2rem;
  --auth-radius-sm: 8px;
  --auth-radius: 12px;
  --auth-radius-lg: 16px;
  --auth-radius-full: 9999px;
  --auth-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --auth-shadow: 0 4px 16px rgba(0,0,0,0.08);
  --auth-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --auth-trans: 200ms ease;
  --auth-trans-fast: 150ms ease;
}

/* ─────────────────────────────────────────────────────────────────────────
   1. CRITICAL: HIDDEN ATTRIBUTE FIX
   ───────────────────────────────────────────────────────────────────────── */
[hidden] {
  display: none !important;
}

.auth-step[hidden],
.auth-loading[hidden],
.auth-error[hidden],
.auth-tab-content[hidden],
#stepAuth[hidden],
#stepMagicSent[hidden],
#stepRegisterSuccess[hidden],
#stepForgotPassword[hidden],
#stepForgotSuccess[hidden],
#stepAgb[hidden],
#loadingState[hidden],
#errorState[hidden] {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   1.5 SIMPLIFIED HEADER FOR AUTH PAGE
   ───────────────────────────────────────────────────────────────────────── */
.auth-header--simple {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  background: white !important;
  border-bottom: 1px solid var(--auth-border) !important;
}

.auth-header--simple .header-left {
  flex: 0 0 auto !important;
}

.auth-header--simple .header-center {
  flex: 1 1 auto !important;
}

.auth-header--simple .header-right {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
}

/* 38px = gleiche Größe wie .cc-logo--nav im Funnel (ux-selector.css).
   Vorher 32px: die hochspezifische Regel aus ux-selector.css überschrieb die
   Höhe, nicht aber max-width → das Logo wurde gestaucht. */
.auth-header--simple .cc-logo--nav {
  height: 44px !important;
  width: 44px !important;
  max-height: 44px !important;
  max-width: 44px !important;
  object-fit: contain !important;
  border-radius: 50%;
}

@media (min-width: 1024px) {
  .auth-header--simple {
    padding: 16px 32px !important;
  }
  
  .auth-header--simple .cc-logo--nav {
    height: 40px !important;
    width: 40px !important;
    max-height: 40px !important;
    max-width: 40px !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   2. BODY & LAYOUT - OVERRIDE SELECTOR STYLES
   ───────────────────────────────────────────────────────────────────────── */
.ux-auth {
  font-family: var(--auth-font);
  background: var(--auth-bg);
  color: var(--auth-ink);
  min-height: 100vh;
  line-height: 1.5;
}

.ux-auth .auth-content,
.ux-auth .selector-content.auth-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: var(--auth-space-lg) var(--auth-space-md) !important;
  padding-bottom: 100px !important;
  min-height: calc(100vh - 140px) !important;
  flex-wrap: nowrap !important;
}

/* Mobile Specific */
@media (max-width: 1023px) {
  html, body, body.ux-auth, body.ux-selector.ux-auth {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    min-height: 100vh !important;
    height: auto !important;
  }
  
  .ux-auth .selector-layout, body.ux-auth .selector-layout {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }
  
  .ux-auth .selector-header {
    flex-shrink: 0 !important;
    position: relative !important;
  }
  
  .ux-auth .auth-content, .ux-auth .selector-content.auth-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 20px 16px 40px !important;
    min-height: auto !important;
    background: linear-gradient(180deg, #ebf0f8 0%, #f0f7ff 30%, #f6f8fb 60%, #f6f8fb 100%) !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
  }
  
  .ux-auth .auth-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: var(--auth-radius-lg) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  
  .ux-auth .auth-step {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (min-width: 1024px) {
  .ux-auth .auth-content, .ux-auth .selector-content.auth-content {
    justify-content: center !important;
    padding-top: var(--auth-space-xl) !important;
    flex-direction: column !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   3. AUTH CARD
   ───────────────────────────────────────────────────────────────────────── */
.auth-card {
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius-lg);
  box-shadow: var(--auth-shadow);
  padding: var(--auth-space-xl) var(--auth-space-lg);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-card--centered {
  text-align: center;
}

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

.auth-card__title {
  font-size: var(--auth-xl);
  font-weight: 700;
  color: var(--auth-ink);
  margin: 0 0 var(--auth-space-sm);
}

.auth-card__subtitle {
  font-size: var(--auth-sm);
  color: var(--auth-ink-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .auth-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .auth-card__title {
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  .auth-card {
    padding: var(--auth-space-xl) var(--auth-space-xl);
  }
  
  .auth-card__title {
    font-size: var(--auth-2xl);
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   4. SECURITY BADGE
   ───────────────────────────────────────────────────────────────────────── */
.auth-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--auth-space-sm);
  padding: var(--auth-space-sm) var(--auth-space-md);
  background: var(--auth-success-light);
  border-radius: var(--auth-radius-full);
  font-size: var(--auth-xs);
  color: #059669;
  font-weight: 600;
  margin: 0 auto var(--auth-space-lg);
}

.auth-security-badge svg {
  flex-shrink: 0;
  color: var(--auth-success);
}

/* ─────────────────────────────────────────────────────────────────────────
   5. AUTH METHODS
   ───────────────────────────────────────────────────────────────────────── */
.auth-methods {
  display: flex;
  flex-direction: column;
  gap: var(--auth-space-md);
}

.auth-method-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--auth-space-sm);
  width: 100%;
  padding: var(--auth-space-md) var(--auth-space-lg);
  border-radius: var(--auth-radius);
  font-size: var(--auth-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--auth-trans);
  border: none;
  font-family: var(--auth-font);
}

.auth-method-btn__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-method-btn--google {
  background: var(--auth-google-bg);
  border: 2px solid var(--auth-google-border);
  color: var(--auth-google-text);
}

.auth-method-btn--google:hover {
  background: var(--auth-google-hover);
  border-color: #c1c4c8;
  box-shadow: var(--auth-shadow-sm);
}

.auth-method-btn--google:active {
  transform: scale(0.98);
}

.auth-method-btn--email,
.auth-method-btn--primary {
  background: var(--auth-primary);
  color: #fff;
}

.auth-method-btn--email:hover,
.auth-method-btn--primary:hover {
  background: var(--auth-primary-dark);
}

.auth-method-btn--email:active,
.auth-method-btn--primary:active {
  transform: scale(0.98);
}

.auth-method-btn--email:disabled,
.auth-method-btn--primary:disabled {
  background: var(--auth-ink-light);
  cursor: not-allowed;
  transform: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   6. DIVIDER
   ───────────────────────────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--auth-space-md);
  margin: var(--auth-space-sm) 0;
}

.auth-divider__line {
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.auth-divider__text {
  font-size: var(--auth-sm);
  color: var(--auth-ink-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. AUTH TABS (NEU)
   ═══════════════════════════════════════════════════════════════════════════ */
.auth-tabs {
  display: flex;
  background: var(--auth-border-light);
  border-radius: var(--auth-radius);
  padding: 4px;
  margin-bottom: var(--auth-space-md);
}

.auth-tab {
  flex: 1;
  padding: var(--auth-space-sm) var(--auth-space-md);
  background: transparent;
  border: none;
  border-radius: var(--auth-radius-sm);
  font-size: var(--auth-sm);
  font-weight: 600;
  color: var(--auth-ink-muted);
  cursor: pointer;
  transition: all var(--auth-trans);
  font-family: var(--auth-font);
}

.auth-tab:hover {
  color: var(--auth-ink);
}

.auth-tab.is-active {
  background: var(--auth-card-bg);
  color: var(--auth-primary);
  box-shadow: var(--auth-shadow-sm);
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.is-active {
  display: block;
}

/* ─────────────────────────────────────────────────────────────────────────
   8. AUTH FORM & INPUT FIELDS
   ───────────────────────────────────────────────────────────────────────── */
.auth-form,
.auth-email-form {
  display: flex;
  flex-direction: column;
  gap: var(--auth-space-md);
}

.auth-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--auth-space-md);
}

@media (max-width: 480px) {
  .auth-input-row {
    grid-template-columns: 1fr;
  }
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--auth-space-xs);
}

.auth-input-label {
  font-size: var(--auth-sm);
  font-weight: 600;
  color: var(--auth-ink);
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: var(--auth-space-md);
  color: var(--auth-ink-light);
  pointer-events: none;
  z-index: 1;
}

.auth-input {
  width: 100%;
  padding: var(--auth-space-md) var(--auth-space-md) var(--auth-space-md) 48px;
  border: 2px solid var(--auth-border);
  border-radius: var(--auth-radius);
  font-size: var(--auth-base);
  font-family: var(--auth-font);
  color: var(--auth-ink);
  background: var(--auth-card-bg);
  transition: border-color var(--auth-trans), box-shadow var(--auth-trans);
  box-sizing: border-box;
}

/* Input ohne Icon (Vorname, Nachname) */
.auth-input-wrapper:not(:has(.auth-input-icon)) .auth-input,
.auth-input-group:not(:has(.auth-input-icon)) .auth-input-wrapper .auth-input {
  padding-left: var(--auth-space-md);
}

.auth-input::placeholder {
  color: var(--auth-ink-light);
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px var(--auth-primary-light);
}

.auth-input.has-error {
  border-color: var(--auth-danger) !important;
}

.auth-input-error {
  font-size: var(--auth-xs);
  color: var(--auth-danger);
  display: flex;
  align-items: center;
  gap: var(--auth-space-xs);
}

.auth-email-hint {
  font-size: var(--auth-xs);
  color: var(--auth-ink-muted);
  text-align: center;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. PASSWORD FIELD (NEU)
   ═══════════════════════════════════════════════════════════════════════════ */
.auth-input-wrapper--password .auth-input {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  right: var(--auth-space-md);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--auth-ink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--auth-trans);
}

.auth-password-toggle:hover {
  color: var(--auth-ink-muted);
}

.auth-password-toggle svg[hidden] {
  display: none;
}

/* Password Strength Indicator */
.auth-password-strength {
  display: flex;
  align-items: center;
  gap: var(--auth-space-sm);
  margin-top: var(--auth-space-xs);
}

.auth-password-strength__bar {
  flex: 1;
  height: 4px;
  background: var(--auth-border);
  border-radius: 2px;
  overflow: hidden;
}

.auth-password-strength__fill {
  height: 100%;
  border-radius: 2px;
  transition: width var(--auth-trans), background var(--auth-trans);
  width: 0;
}

.auth-password-strength.weak .auth-password-strength__fill {
  background: var(--auth-danger);
}

.auth-password-strength.medium .auth-password-strength__fill {
  background: var(--auth-warning);
}

.auth-password-strength.strong .auth-password-strength__fill {
  background: var(--auth-success);
}

.auth-password-strength__text {
  font-size: var(--auth-xs);
  font-weight: 600;
  min-width: 50px;
}

.auth-password-strength.weak .auth-password-strength__text {
  color: var(--auth-danger);
}

.auth-password-strength.medium .auth-password-strength__text {
  color: var(--auth-warning);
}

.auth-password-strength.strong .auth-password-strength__text {
  color: var(--auth-success);
}

/* ─────────────────────────────────────────────────────────────────────────
   10. SUCCESS STATE
   ───────────────────────────────────────────────────────────────────────── */
.auth-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--auth-space-lg);
  background: var(--auth-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-primary);
}

.auth-success-icon--check {
  background: var(--auth-success-light);
  color: var(--auth-success);
}

.auth-info-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--auth-space-sm);
  padding: var(--auth-space-md);
  background: var(--auth-warning-light);
  border-radius: var(--auth-radius);
  font-size: var(--auth-sm);
  color: #92400e;
  margin: var(--auth-space-lg) 0;
}

.auth-info-box svg {
  flex-shrink: 0;
  color: var(--auth-warning);
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--auth-primary);
  font-size: var(--auth-sm);
  font-weight: 600;
  cursor: pointer;
  padding: var(--auth-space-sm);
  transition: color var(--auth-trans);
  font-family: var(--auth-font);
}

.auth-link-btn:hover {
  color: var(--auth-primary-dark);
  text-decoration: underline;
}

.auth-link-btn--secondary {
  color: var(--auth-ink-muted);
}

.auth-link-btn--secondary:hover {
  color: var(--auth-ink);
}

/* ─────────────────────────────────────────────────────────────────────────
   11. USER BADGE (AGB Step)
   ───────────────────────────────────────────────────────────────────────── */
.auth-user-badge {
  display: flex;
  align-items: center;
  gap: var(--auth-space-md);
  padding: var(--auth-space-md);
  background: var(--auth-bg);
  border-radius: var(--auth-radius);
  margin-bottom: var(--auth-space-lg);
}

.auth-user-badge__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-user-badge__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--auth-primary-light);
  color: var(--auth-primary);
}

.auth-user-badge__info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-user-badge__name {
  font-weight: 600;
  color: var(--auth-ink);
  font-size: var(--auth-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-user-badge__email {
  font-size: var(--auth-sm);
  color: var(--auth-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────────────────────────────────
   12. TERMS / CHECKBOXES
   ───────────────────────────────────────────────────────────────────────── */
.auth-terms {
  display: flex;
  flex-direction: column;
  gap: var(--auth-space-md);
  margin-bottom: var(--auth-space-lg);
}

.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--auth-space-sm);
  cursor: pointer;
  user-select: none;
}

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

.auth-checkbox-custom {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--auth-border);
  border-radius: 6px;
  background: var(--auth-card-bg);
  transition: all var(--auth-trans);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.auth-checkbox-custom::after {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0;
  transform: scale(0);
  transition: all var(--auth-trans);
}

.auth-checkbox:checked + .auth-checkbox-custom {
  background: var(--auth-primary);
  border-color: var(--auth-primary);
}

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

.auth-checkbox:focus + .auth-checkbox-custom {
  box-shadow: 0 0 0 3px var(--auth-primary-light);
}

.auth-checkbox-text {
  font-size: var(--auth-sm);
  color: var(--auth-ink);
  line-height: 1.5;
}

.auth-terms-link {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-terms-link:hover {
  text-decoration: underline;
}

.auth-terms-error {
  display: flex;
  align-items: center;
  gap: var(--auth-space-sm);
  padding: var(--auth-space-sm) var(--auth-space-md);
  background: var(--auth-danger-light);
  border-radius: var(--auth-radius-sm);
  color: var(--auth-danger);
  font-size: var(--auth-sm);
  margin-bottom: var(--auth-space-md);
}

.auth-terms-error svg {
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   13. CTA BUTTON
   ───────────────────────────────────────────────────────────────────────── */
.auth-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--auth-space-sm);
  width: 100%;
  padding: var(--auth-space-md) var(--auth-space-lg);
  background: linear-gradient(135deg, var(--auth-success), #059669);
  color: #fff;
  border: none;
  border-radius: var(--auth-radius);
  font-size: var(--auth-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--auth-trans);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  font-family: var(--auth-font);
}

.auth-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

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

.auth-cta-btn:disabled {
  background: var(--auth-ink-light);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.auth-note {
  font-size: var(--auth-xs);
  color: var(--auth-ink-muted);
  text-align: center;
  margin: var(--auth-space-md) 0 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   14. LOADING STATE
   ───────────────────────────────────────────────────────────────────────── */
.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--auth-space-xl);
  text-align: center;
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius-lg);
  box-shadow: var(--auth-shadow);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-loading__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--auth-border);
  border-top-color: var(--auth-primary);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
  margin-bottom: var(--auth-space-md);
}

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

.auth-loading__text {
  font-size: var(--auth-sm);
  color: var(--auth-ink-muted);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   15. ERROR STATE
   ───────────────────────────────────────────────────────────────────────── */
.auth-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--auth-space-xl);
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius-lg);
  box-shadow: var(--auth-shadow);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-error__icon {
  color: var(--auth-danger);
  margin-bottom: var(--auth-space-md);
}

.auth-error__title {
  font-size: var(--auth-lg);
  font-weight: 700;
  color: var(--auth-ink);
  margin: 0 0 var(--auth-space-sm);
}

.auth-error__message {
  font-size: var(--auth-sm);
  color: var(--auth-ink-muted);
  margin: 0 0 var(--auth-space-lg);
}

/* ─────────────────────────────────────────────────────────────────────────
   16. STEP VISIBILITY
   ───────────────────────────────────────────────────────────────────────── */
.auth-step {
  width: 100%;
  max-width: 440px;
}

.auth-step:not([hidden]),
.auth-loading:not([hidden]),
.auth-error:not([hidden]) {
  display: flex;
  flex-direction: column;
}

/* ─────────────────────────────────────────────────────────────────────────
   17. ANIMATIONS
   ───────────────────────────────────────────────────────────────────────── */
.auth-step:not([hidden]),
.auth-loading:not([hidden]),
.auth-error:not([hidden]) {
  animation: auth-fadeIn 0.3s ease;
}

@keyframes auth-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button ripple */
.auth-method-btn,
.auth-cta-btn {
  position: relative;
  overflow: hidden;
}

.auth-method-btn::after,
.auth-cta-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.auth-method-btn:active::after,
.auth-cta-btn:active::after {
  width: 200%;
  height: 200%;
}
