/* ═══════════════════════════════════════════════════════════════
   connexion.css — Styles spécifiques à la page de connexion
   Chargé après global.css
═══════════════════════════════════════════════════════════════ */

body { min-height: 100vh; }

/* ── EN-TÊTE ── */
.header { padding: 24px 20px 48px; }

.header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* ── CONTENU ── */
.form-wrap {
  max-width: 440px;
  margin: -28px auto 0;
  padding: 0 16px 60px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.form-icon  { font-size: 48px; text-align: center; margin-bottom: 16px; }
.form-title { font-family: var(--font-display); font-size: 22px; font-weight: 900; margin-bottom: 6px; text-align: center; }
.form-sub   { font-size: 14px; color: var(--muted); margin-bottom: 24px; text-align: center; }

/* ── LIEN MOT DE PASSE OUBLIÉ ── */
.forgot-link { text-align: right; margin-top: -8px; margin-bottom: 16px; }
.forgot-link a { font-size: 13px; color: var(--orange); text-decoration: none; font-weight: 600; }

/* ── SÉPARATEUR ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── LIEN INSCRIPTION ── */
.register-link { text-align: center; font-size: 14px; color: var(--muted); }
.register-link a { color: var(--orange); font-weight: 700; text-decoration: none; }

/* ── CARTE UTILISATEUR CONNU ── */
.user-card {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  align-items: center;
  gap: 12px;
  display: none;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.user-info  { flex: 1; }
.user-name  { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: white; }
.user-email { font-size: 12px; color: rgba(255,255,255,0.8); }

/* Erreur globale de connexion */
.login-error-global.show {
  display: block;
  background: var(--red-light);
  border: 1px solid var(--red);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
