/* ===== Auth & Legal Pages Layout ===== */

/* --- Auth Split Layout --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--bg);
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

/* Brand Panel (left side) */
.auth-brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.auth-brand-logo-text {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-brand-illustration {
  width: 100%;
  max-width: 320px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.auth-brand-illustration svg {
  width: 100%;
  height: auto;
}

.auth-brand-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.auth-brand-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  text-align: center;
  max-width: 300px;
  line-height: 1.6;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.auth-brand-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.auth-brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.auth-brand-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Form Panel (right side) */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

.auth-form-container {
  width: 100%;
  max-width: 400px;
}

.auth-form-header {
  margin-bottom: 32px;
}

.auth-form-header h1 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-form-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Step Indicator */
.auth-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-light);
  border: 2px solid var(--border);
  transition: all 0.2s ease;
}

.auth-step.active {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

.auth-step.completed {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.auth-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}

.auth-step-line.completed {
  background: var(--primary);
}

/* Social Sign-in Buttons */
.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.auth-social-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-alt);
}

.auth-social-btn:active {
  transform: scale(0.97);
  transition: transform var(--motion-fast) var(--ease-standard);
}

.auth-social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* OAuth Error Message */
.auth-oauth-error {
  display: none;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #dc2626;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.auth-oauth-error.visible {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.auth-oauth-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Separator */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Form Fields */
.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form .form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-form .form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-input, var(--border));
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08);
}

.auth-form .form-input::placeholder {
  color: var(--text-light);
}

.auth-form .form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.auth-form .form-helper {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

.auth-form .form-helper.error {
  color: #ef4444;
}

/* Submit Button */
.auth-form .auth-submit-btn {
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  margin-top: 8px;
}

.auth-form .auth-submit-btn:hover {
  background: #0a5e56;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.auth-form .auth-submit-btn:active {
  transform: scale(0.97);
  transition: transform var(--motion-fast) var(--ease-standard);
}

.auth-form .auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Form Links (between fields and submit) */
.auth-form-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.auth-form-links a {
  font-size: 0.82rem;
  color: var(--primary-dark);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-form-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Back to Home Link */
.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-back-link:hover {
  color: var(--primary-dark);
}

.auth-back-link svg {
  width: 16px;
  height: 16px;
}

/* Trust Badge Items */
.auth-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.9;
}

.auth-badge svg {
  width: 36px;
  height: 36px;
  color: #ffffff;
}

.auth-badge-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Form Footer */
.auth-form-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-form-footer a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

/* Terms text */
.auth-terms-text {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 16px;
  line-height: 1.5;
}

.auth-terms-text a {
  color: var(--text-light);
  text-decoration: underline;
}

.auth-terms-text a:hover {
  color: var(--text-secondary);
}

/* --- Mobile Responsive (<768px) --- */
@media (max-width: 767px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-form-panel {
    padding: 32px 20px;
    justify-content: flex-start;
    padding-top: 80px;
  }

  .auth-form-container {
    max-width: 100%;
  }

  /* 44x44px minimum touch targets */
  .auth-social-btn {
    min-height: 44px;
  }

  .auth-form .form-input {
    min-height: 44px;
    padding: 12px 14px;
  }

  .auth-form .auth-submit-btn {
    min-height: 44px;
    padding: 14px 24px;
  }

  .auth-form-footer a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }

  .auth-form-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .auth-back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* --- Dark Mode for Auth Pages --- */
[data-theme="dark"] .auth-brand-panel {
  background: linear-gradient(135deg, #0a3d38, #0e4f4a);
}

[data-theme="dark"] .auth-form-panel {
  background: var(--bg);
}

[data-theme="dark"] .auth-form-header h1 {
  color: var(--text);
}

[data-theme="dark"] .auth-form-header p {
  color: var(--text-secondary);
}

[data-theme="dark"] .auth-social-btn {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .auth-social-btn:hover {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.05);
}

[data-theme="dark"] .auth-oauth-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
  background: var(--border);
}

[data-theme="dark"] .auth-divider {
  color: var(--text-light);
}

[data-theme="dark"] .auth-form .form-input {
  background: var(--bg-alt);
  border-color: var(--border-input);
  color: var(--text);
}

[data-theme="dark"] .auth-form .form-input:focus {
  border-color: var(--primary);
}

[data-theme="dark"] .auth-form .auth-submit-btn {
  background: var(--primary-dark);
}

[data-theme="dark"] .auth-form .auth-submit-btn:hover {
  background: #0a5e56;
}

[data-theme="dark"] .auth-step {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text-light);
}

[data-theme="dark"] .auth-form-links a {
  color: var(--primary-light);
}

[data-theme="dark"] .auth-form-links a:hover {
  color: var(--primary);
}

[data-theme="dark"] .auth-back-link {
  color: var(--text-secondary);
}

[data-theme="dark"] .auth-back-link:hover {
  color: var(--primary-light);
}

[data-theme="dark"] .auth-terms-text {
  color: var(--text-light);
}

[data-theme="dark"] .auth-terms-text a {
  color: var(--text-light);
}

/* ===== MFA Page Styles ===== */
.mfa-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  padding: 24px 16px;
}

.mfa-container {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.mfa-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.08);
  border-radius: 50%;
  color: var(--primary-dark);
}

.mfa-icon svg {
  width: 28px;
  height: 28px;
}

.mfa-header {
  margin-bottom: 32px;
}

.mfa-header h1 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.mfa-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mfa-otp-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.mfa-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mfa-digit:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.mfa-digit.filled {
  border-color: var(--primary-dark);
  background: rgba(6, 182, 212, 0.04);
}

.mfa-verify-btn {
  width: 100%;
  padding: 12px 24px;
  min-height: 44px;
  border: none;
  border-radius: var(--radius-sm, 8px);
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  margin-bottom: 24px;
}

.mfa-verify-btn:hover:not(:disabled) {
  background: #0a5e56;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.mfa-verify-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.mfa-verify-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mfa-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mfa-resend,
.mfa-recovery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.mfa-resend:hover,
.mfa-recovery:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.mfa-resend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mfa-resend svg,
.mfa-recovery svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mfa-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mfa-back:hover {
  color: var(--primary-dark);
}

.mfa-back svg {
  width: 16px;
  height: 16px;
}

/* MFA Mobile Responsive */
@media (max-width: 767px) {
  .mfa-page {
    padding: 16px;
    align-items: flex-start;
    padding-top: 80px;
  }

  .mfa-otp-group {
    gap: 6px;
  }

  .mfa-digit {
    width: 44px;
    height: 52px;
    font-size: 1.3rem;
  }

  .mfa-header h1 {
    font-size: 1.3rem;
  }
}

/* MFA Dark Mode */
[data-theme="dark"] .mfa-icon {
  background: rgba(6, 182, 212, 0.12);
  color: var(--primary-light);
}

[data-theme="dark"] .mfa-digit {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .mfa-digit:focus {
  border-color: var(--primary);
}

[data-theme="dark"] .mfa-digit.filled {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.08);
}

[data-theme="dark"] .mfa-verify-btn {
  background: var(--primary-dark);
}

[data-theme="dark"] .mfa-resend,
[data-theme="dark"] .mfa-recovery {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text-secondary);
}

[data-theme="dark"] .mfa-resend:hover,
[data-theme="dark"] .mfa-recovery:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ===== Legal Pages — Sticky Navigation Layout ===== */
.legal-page {
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-page .update-date {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* --- Sticky Sidebar Navigation --- */
.legal-nav {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.legal-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-toc-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding: 0 12px;
}

.toc-item {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  line-height: 1.4;
}

.toc-item:hover {
  color: var(--text);
  background: var(--bg-alt, #f8fafc);
}

.toc-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.toc-item.active {
  color: var(--primary-dark);
  font-weight: 600;
  background: rgba(6, 182, 212, 0.06);
  border-left-color: var(--primary);
}

/* --- Legal Content Area --- */
.legal-content {
  min-width: 0;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--primary-dark);
  scroll-margin-top: 90px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-dark);
  margin-bottom: 24px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-icp {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

.legal-icp a {
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-icp a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* --- Mobile TOC Dropdown --- */
.legal-toc-mobile {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 12px 0;
  margin-bottom: 24px;
}

.legal-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  background: var(--bg-alt, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
}

.legal-toc-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.legal-toc-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.legal-toc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border, #e2e8f0);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
}

.legal-toc-dropdown.open {
  display: block;
}

.legal-toc-dropdown .toc-item {
  padding: 12px 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-left: none;
}

/* --- Legal Pages Responsive: Mobile (<768px) --- */
@media (max-width: 767px) {
  .legal-layout {
    display: block;
  }

  .legal-nav {
    display: none;
  }

  .legal-toc-mobile {
    display: block;
  }

  .legal-page {
    padding: 80px 16px 60px;
  }

  .legal-page h1 {
    font-size: 1.6rem;
  }
}

/* --- Dark Mode for Legal Pages --- */
[data-theme="dark"] .legal-toc-mobile {
  background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .legal-toc-toggle {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

[data-theme="dark"] .legal-toc-dropdown {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .toc-item {
  color: #94a3b8;
}

[data-theme="dark"] .toc-item:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .toc-item.active {
  color: var(--primary-light, #22D3EE);
  background: rgba(6, 182, 212, 0.1);
  border-left-color: var(--primary-light, #22D3EE);
}

[data-theme="dark"] .legal-content h2 {
  color: var(--primary-light, #22D3EE);
}

[data-theme="dark"] .legal-icp {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* ===== Mobile Scroll Performance (Req 12.4, 15.5) ===== */
/* Remove box-shadow transitions on mobile to avoid paint triggers */
@media (max-width: 767px) {
  .auth-form .form-input {
    transition: border-color 0.15s ease, opacity 0.15s ease;
  }
  .auth-form .form-input:focus {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08);
  }

  .auth-form .auth-submit-btn {
    transition: transform 0.1s ease, opacity 0.15s ease;
  }
  .auth-form .auth-submit-btn:hover {
    box-shadow: none;
  }

  .auth-social-btn {
    transition: opacity 0.15s ease, transform 0.1s ease;
  }

  .auth-step {
    transition: opacity 0.2s ease;
  }

  .toc-item {
    transition: opacity 0.2s ease;
  }

  .mfa-verify-btn {
    transition: transform 0.1s ease, opacity 0.15s ease;
  }
  .mfa-verify-btn:hover:not(:disabled) {
    box-shadow: none;
  }
}

/* ===== Prefers Reduced Motion — Auth & Legal Pages ===== */
@media (prefers-reduced-motion: reduce) {
  /* Disable button active scale on auth pages */
  .auth-social-btn,
  .auth-social-btn:active,
  .auth-form .auth-submit-btn,
  .auth-form .auth-submit-btn:active {
    transform: none !important;
    transition: none !important;
  }

  /* Disable step indicator transitions */
  .auth-step {
    transition: none !important;
  }

  /* Disable form input focus transitions */
  .auth-form .form-input {
    transition: none !important;
  }

  /* Disable TOC item transitions on legal pages */
  .toc-item {
    transition: none !important;
  }

  .legal-toc-toggle svg {
    transition: none !important;
  }

  /* Keep theme-switch color transition active */
  .theme-toggle {
    transition: background 0.2s ease, border-color 0.2s ease !important;
  }
}
