/* ── AUTH PAGES (login, signup-reset, password-reset) ──────────────────────── */
/* Utilisé par : login.html, registration/password_reset_*.html               */

.login-page {
  font-family: 'DM Sans', sans-serif;
  --orange: #FF6B00;
  --orange-hover: #e05f00;
  --text: #2d2d2d;
  --text-light: #6b7280;
  --border: #e0e0e0;
  --bg: #f7f7f7;
  --input-bg: #fafafa;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.login-page .login-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: calc(120px + 2rem) 20px 48px;
}
.login-page .card-wrapper {
  max-width: 580px;
  margin: 0 auto;
}
.login-page .auth-border {
  background: var(--white, #fff);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.login-page .card-inner { padding: 40px 48px; }
.login-page .login-form-header {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 32px;
  text-align: center;
}
.login-page .login-form-header span { color: var(--orange); }

/* Sous-titre descriptif (pages reset) */
.login-page .form-subtitle {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.55;
}

/* Icône de succès (password_reset_done + complete) */
.login-page .success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.login-page .success-icon svg {
  width: 56px;
  height: 56px;
}
/* Variante envoyé : icône orange (email envoyé) */
.login-page .success-icon--sent svg { color: var(--orange); }
/* Variante succès : icône verte (mot de passe modifié) */
.login-page .success-icon--ok svg {
  width: 60px;
  height: 60px;
  color: #16a34a;
}

/* Boîte info (password_reset_done) */
.login-page .info-box {
  background: #fff7f0;
  border: 1px solid #ffd0a8;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #7a3e00;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Lien invalide (password_reset_confirm) */
.login-page .invalid-link {
  text-align: center;
  padding: 12px 0;
}

.login-page .input-group-wrapper { margin-bottom: 20px; }
.login-page .floating-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.login-page .input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.login-page .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
}
.login-page .form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.login-page .form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
  background: #fff;
}
.login-page .form-control::placeholder { color: #b0b0b0; }
.login-page .form-control.is-invalid { border-color: #dc2626; }

.login-page .forgot-link {
  display: block;
  text-align: end;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--orange);
  text-decoration: none;
}
.login-page .forgot-link:hover { text-decoration: underline; }

.login-page .btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 24px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.login-page .btn-submit:hover { background: var(--orange-hover); }
.login-page .btn-submit:active { transform: scale(0.99); }
.login-page .btn-submit svg { width: 18px; height: 18px; }

.login-page .separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: var(--text-light);
  font-size: 0.85rem;
}
.login-page .separator::before,
.login-page .separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.login-page .social-group { display: flex; justify-content: center; }
.login-page .social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 28px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-page .social-btn:hover {
  border-color: #aaa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.login-page .google-logo { width: 20px; height: 20px; }

.login-page .kc-links { text-align: center; margin-top: 24px; }
.login-page .login-font {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.8;
}
.login-page .login-font a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}
.login-page .login-font a:hover { text-decoration: underline; }

.login-page .alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.login-page .field-error {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .login-page { max-width: 100%; overflow-x: hidden; }
  .login-page .login-container { padding-inline: 12px; }
  .login-page .card-inner { padding: 28px 20px; }
  .login-page .login-form-header { font-size: 1.4rem; }
}

/* ── Verification Sent Page (.vs-*) ─────────────────────────────────────── */
.vs-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: calc(120px + 2rem) 20px 48px;
}
.vs-card {
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(16, 24, 40, 0.08);
  overflow: hidden;
  text-align: center;
}
.vs-bar {
  height: 6px;
  background: #b5fe4d;
}
.vs-body {
  padding: 40px 48px;
}
.vs-icon {
  width: 80px;
  height: 80px;
  background: #eaf4fd;
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #101828;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.vs-lead {
  color: #475467;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.vs-steps {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  text-align: start;
}
.vs-step {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}
.vs-step:last-child { margin-bottom: 0; }
.vs-step-num {
  min-width: 28px;
  height: 28px;
  background: #b5fe4d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #101828;
  flex-shrink: 0;
  margin-top: 1px;
}
.vs-step-text {
  color: #101828;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}
.vs-spam {
  color: #667085;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.vs-spam a {
  color: #2b8ddb;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #2b8ddb;
}
.vs-spam a:hover { opacity: 0.8; }
.vs-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.vs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #b5fe4d;
  color: #101828;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
  font-family: inherit;
}
.vs-btn-primary:hover { background: #83c41e; }
.vs-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  color: #2b8ddb;
  border: 2px solid #2b8ddb;
  border-radius: 0.5rem;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.vs-btn-outline:hover {
  background: #2b8ddb;
  color: #fff;
}
.vs-trust {
  padding-top: 1.5rem;
  border-top: 1px solid #e4e7ec;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.vs-trust-text {
  font-size: 0.85rem;
  color: #98a2b3;
}
@media (max-width: 600px) {
  .vs-body { padding: 28px 20px; }
  .vs-title { font-size: 1.4rem; }
  .vs-actions { flex-direction: column; }
  .vs-btn-primary,
  .vs-btn-outline { justify-content: center; width: 100%; }
}
