/* ==========================================================================
   AUTH MODAL — popup Connexion / Inscription
   Fichier dédié, à charger EN DERNIER dans base.html, après tous les autres CSS :
   <link rel="stylesheet" href="{% static 'css/auth-modal.css' %}">
   ========================================================================== */

#authModal .modal-content {
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden;
}

#authModal .btn-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

#authModal .btn-close:hover {
  opacity: 1;
}

#authModal .auth-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

#authModal .auth-modal-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

#authModal .auth-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 28px !important;
  color: #1a1a1a !important;
  line-height: 1.25;
  margin-bottom: 4px;
}

#authModal .auth-modal-sub {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 14px !important;
  color: #8a8a8a !important;
  margin-bottom: 24px;
}

/* Bouton Connexion (plein, rouge) */
#authModal .btn-modal-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 16px;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff !important;
  background: #ff385c;
  border: 1px solid #ff385c;
  text-decoration: none !important;
  margin-bottom: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#authModal .btn-modal-primary:hover {
  background: #e62e50;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 56, 92, 0.3);
}

/* Bouton Créer un compte (contour) */
#authModal .btn-modal-outline {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 16px;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a !important;
  background: #ffffff;
  border: 1px solid #dcd6c9;
  text-decoration: none !important;
  margin-bottom: 22px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#authModal .btn-modal-outline:hover {
  background: #faf8f3;
  border-color: #cfc7b4;
  color: #1a1a1a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Séparateur "ou" */
#authModal .auth-modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #9a9a9a;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 20px;
}

#authModal .auth-modal-divider::before,
#authModal .auth-modal-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e5e0d8;
}

#authModal .auth-modal-divider span {
  padding: 0 14px;
}

/* Boutons Google / Facebook (spécifiques au modal, isolés) */
#authModal .btn-modal-google,
#authModal .btn-modal-facebook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#authModal .btn-modal-google {
  background: #ffffff;
  border: 1px solid #dcd6c9;
  color: #3c3c3c !important;
  margin-bottom: 10px;
}

#authModal .btn-modal-google:hover {
  background: #faf8f3;
  border-color: #cfc7b4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  color: #3c3c3c !important;
}

#authModal .btn-modal-facebook {
  background: #1877f2;
  border: 1px solid #1877f2;
  color: #ffffff !important;
}

#authModal .btn-modal-facebook:hover {
  background: #166fe5;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#authModal .btn-modal-google i,
#authModal .btn-modal-facebook i {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
