/* ════════════════════════════════════════════════════════════════
   Styles pour l'overlay d'authentification — Prépare ton Pulvé
   ════════════════════════════════════════════════════════════════ */

#auth-gate {
  position: fixed;
  inset: 0;
  background: #f2f2f7;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1c1c1e;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.auth-logo {
  font-size: 22px;
  font-weight: 700;
  color: #1a5c28;
  margin-bottom: 24px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0 12px;
  color: #1c1c1e;
}

.auth-subtitle {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.auth-info {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin: 16px 0;
  padding: 12px;
  background: #f9f9fb;
  border-radius: 8px;
}

.auth-footer {
  font-size: 12px;
  color: #888;
  margin-top: 20px;
  line-height: 1.5;
}

/* ── Formulaire ── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1.5px solid #e0e0e5;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  background: #fff;
  color: #1c1c1e;
}

.auth-input:focus {
  border-color: #1a5c28;
}

/* ── Boutons ── */

.auth-button {
  width: 100%;
  padding: 14px 20px;
  background: #1a5c28;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
  margin-top: 8px;
  font-family: inherit;
}

.auth-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.auth-button:active {
  transform: scale(0.98);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-button-secondary {
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: #1a5c28;
  border: 1.5px solid #1a5c28;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}

.auth-button-secondary:hover {
  background: #f0f7f2;
}

/* ── Icônes d'état ── */

.auth-icon-success,
.auth-icon-warning,
.auth-icon-error {
  font-size: 48px;
  line-height: 1;
  margin: 8px 0 16px;
}

/* ── Carte de prix ── */

.auth-price-card {
  background: #f0f7f2;
  border: 1.5px solid #1a5c28;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.auth-price {
  font-size: 28px;
  font-weight: 800;
  color: #1a5c28;
}

.auth-price small {
  font-size: 14px;
  font-weight: 400;
  color: #555;
}

.auth-price-sub {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

/* ── Messages d'erreur ── */

.auth-error {
  background: #fff5f5;
  border: 1px solid #ff3b30;
  color: #c41e3a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin: 12px 0;
}

/* ── Spinner de chargement ── */

.auth-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #f0f0f0;
  border-top-color: #1a5c28;
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
  margin: 16px auto;
}

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

.auth-message {
  font-size: 14px;
  color: #888;
}

/* ── Mobile ── */

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .auth-title {
    font-size: 20px;
  }
  .auth-logo {
    font-size: 20px;
  }
}
