/* ============================================================
   auth-ui.css — extrait de styles.css le 2026-05-07
   Phase 3 (extraction CSS module-par-module).
   47 règles, ~253 lignes.
   Cut & paste pur — aucune simplification ni reformat.
   ============================================================ */

.auth-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #0f172a 0%, #020617 50%, #000 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 1;
  transition: opacity 0.4s ease;
  padding: 24px;
  box-sizing: border-box;
}

.auth-logo {
  font-size: 64px;
  margin-bottom: 16px;
  animation: authPulse 3s ease-in-out infinite;
}

.auth-logo-img {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  animation: authPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(167,139,250,0.45));
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.auth-title {
  font-size: 1.6rem;
  color: #e6d282;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.auth-subtitle {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

.auth-screen {
  display: none;
}

.auth-screen.active,
.auth-screen[style*="display: block"] {
  display: block;
}

.auth-email-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-email-input::placeholder {
  color: #6b7280;
}

.auth-google-btn {
  background: rgba(255,255,255,0.06) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0 !important;
}

.auth-google-btn:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.22) !important;
  box-shadow: none !important;
}

.auth-google-cgu {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.7);
  text-align: center;
  margin: -2px 0 8px;
  line-height: 1.4;
}

.auth-google-cgu a { color: rgba(167, 139, 250, 0.8); text-decoration: none; }

.auth-google-cgu a:hover { text-decoration: underline; }

.auth-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 16px;
}

.auth-btn-primary {
  background: linear-gradient(135deg, #e6d282 0%, #c9a227 100%);
  color: #0f172a;
  box-shadow: 0 4px 20px rgba(230, 210, 130, 0.3);
}

.auth-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(230, 210, 130, 0.45);
}

.auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn-secondary {
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.auth-btn-secondary:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.03);
}

.auth-separator {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
}

.auth-separator span {
  padding: 0 16px;
}

.auth-code-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
}

.auth-code-input {
  width: 48px;
  height: 58px;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: #e6d282;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-code-email {
  color: #e6d282;
  font-weight: 500;
}

.auth-error {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 16px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 20px;
  transition: color 0.2s;
}

.auth-back-link:hover {
  color: #e5e7eb;
}

.auth-resend {
  margin-top: 20px;
  color: #6b7280;
  font-size: 0.85rem;
}

.auth-resend-btn {
  background: none;
  border: none;
  color: #e6d282;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
  padding: 0;
}

.auth-resend-btn:hover {
  color: #f0e6b2;
}

.auth-hint {
  color: #6b7280;
  font-size: 0.82rem;
  margin-top: 12px;
  margin-bottom: 0;
}

.auth-legal {
  font-size: 0.7rem;
  color: rgba(148,163,184,0.45);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}

.auth-legal a {
  color: rgba(167,139,250,0.65);
  text-decoration: none;
}

.auth-legal a:hover { text-decoration: underline; }

.auth-demo-link {
  display: none;
  background: none;
  border: none;
  color: rgba(167,139,250,0.4);
  font-size: 0.75rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  margin-top: 24px;
  padding: 4px 8px;
  transition: color 0.2s;
  width: 100%;
  text-align: center;
}

.auth-demo-link:hover { color: rgba(167,139,250,0.7); }

.auth-cgu-wrap { margin: 10px 0 6px; text-align: left; }

.auth-cgu-label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }

.auth-cgu-label input[type='checkbox'] { margin-top: 2px; accent-color: #a78bfa; width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }

.auth-cgu-label span { color: #94a3b8; font-size: .75rem; line-height: 1.4; }

.auth-cgu-label a { color: #a78bfa; text-decoration: none; }

.auth-cgu-label a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-title {
      font-size: 1.4rem;
    }
  .auth-code-input {
      width: 42px;
      height: 52px;
      font-size: 1.3rem;
    }
  .auth-code-container {
      gap: 8px;
    }
}

