/* ============================================================
   EASY HEALTH (EH) — Pages d'authentification (premium)
   Fond médical animé (carrousel transparent), logo circulaire,
   horloge live, glassmorphism, charte bleu → vert.
   ============================================================ */

.eh-auth {
  min-height: 100vh;
  margin: 0;
  color: #e9eefb;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(32,201,151,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(13,110,253,.22), transparent 55%),
    linear-gradient(135deg, #0a1b3d 0%, #0c2552 45%, #0a1b3d 100%);
  overflow-x: hidden;
}

/* ---------- FOND : carrousel d'images médicales ---------- */
.eh-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.eh-bg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.06);
  animation: ehKenBurns 54s infinite;
  will-change: opacity, transform;
}
/* 6 slides — chacune visible ~1/6 du cycle, fondu enchaîné + léger zoom */
.eh-bg-slide:nth-child(1) { animation-delay:   0s; }
.eh-bg-slide:nth-child(2) { animation-delay:  -9s; }
.eh-bg-slide:nth-child(3) { animation-delay: -18s; }
.eh-bg-slide:nth-child(4) { animation-delay: -27s; }
.eh-bg-slide:nth-child(5) { animation-delay: -36s; }
.eh-bg-slide:nth-child(6) { animation-delay: -45s; }
@keyframes ehKenBurns {
  0%   { opacity: 0; transform: scale(1.05); }
  3%   { opacity: 1; }
  15%  { opacity: 1; }
  19%  { opacity: 0; transform: scale(1.13); }
  100% { opacity: 0; transform: scale(1.05); }
}
/* Voile dégradé bleu → vert pour lisibilité + effet « transparent » */
.eh-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 700px at 78% 12%, rgba(32,201,151,.18), transparent 60%),
    linear-gradient(120deg, rgba(7,18,42,.92) 0%, rgba(10,30,68,.80) 46%, rgba(9,40,42,.72) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .eh-bg-slide { animation: none; }
  .eh-bg-slide:nth-child(1) { opacity: 1; }
}

.eh-auth-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 30px;
  max-width: 1340px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px;
  align-items: stretch;
}

/* ---------- PANNEAU GAUCHE (vitrine) ---------- */
.eh-auth-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 38px;
  background: linear-gradient(160deg, rgba(10,24,54,.50) 0%, rgba(8,20,45,.30) 60%, rgba(8,30,40,.42) 100%);
  backdrop-filter: blur(3px) saturate(115%);
  -webkit-backdrop-filter: blur(3px) saturate(115%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.eh-hero-brand { display: flex; align-items: center; gap: 20px; }

/* Logo circulaire + halo animé */
.eh-logo-ring {
  position: relative; flex: 0 0 auto;
  width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center;
}
.eh-logo-ring::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, #0D6EFD, #20C997, #3ddc8a, #4d96ff, #0D6EFD);
  filter: blur(7px); opacity: .85;
  animation: ehSpin 7s linear infinite;
}
.eh-logo-ring img {
  position: relative; z-index: 1;
  width: 108px; height: 108px; border-radius: 50%;
  background: rgba(8,18,40,.55);
  box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.18);
}
@keyframes ehSpin { to { transform: rotate(360deg); } }

.eh-hero-brand .eh-wordmark { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.eh-hero-brand .eh-wordmark .easy { color: #ffffff; }
.eh-hero-brand .eh-wordmark .health { color: #3ddc8a; }
.eh-hero-eh { font-size: 1.05rem; font-weight: 700; letter-spacing: 7px; color: #cfe0ff; margin-top: 4px; }
.eh-hero-slogan { font-size: .8rem; letter-spacing: 3px; color: #9db6e6; text-transform: uppercase; margin-top: 2px; }

/* Horloge live */
.eh-clock { margin-top: 30px; }
.eh-clock .time {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 3.6rem; font-weight: 800; letter-spacing: 2px; color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 28px rgba(0,0,0,.5);
}
.eh-clock .time .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #3ddc8a; box-shadow: 0 0 14px #3ddc8a;
  animation: ehPulse 1.6s ease-in-out infinite;
}
@keyframes ehPulse { 0%,100%{ opacity:.35; transform:scale(.8);} 50%{ opacity:1; transform:scale(1.15);} }
.eh-clock .date {
  margin-top: 10px; color: #cfe0ff; font-size: 1.02rem; letter-spacing: 1px;
  text-transform: capitalize;
}

.eh-hero-spacer { flex: 1; }

/* Barre de features bas de vitrine */
.eh-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(8,18,40,.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10);
}
.eh-feature { display: flex; gap: 11px; align-items: flex-start; }
.eh-feature .ico {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--eh-gradient);
  color: #fff; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(13,110,253,.35);
}
.eh-feature .ft-title { font-weight: 700; font-size: .82rem; color: #fff; letter-spacing: .5px; }
.eh-feature .ft-desc  { font-size: .72rem; color: #9db6e6; line-height: 1.25; }

/* ---------- PANNEAU DROIT (carte de connexion) ---------- */
.eh-auth-panel { display: flex; flex-direction: column; }

.eh-toolbar {
  display: flex; justify-content: flex-end; align-items: center; gap: 18px;
  margin-bottom: 16px;
}
.eh-toolbar .label { font-size: .85rem; color: #aebfe0; }

/* Switch thème */
.eh-theme-toggle {
  width: 58px; height: 30px; border-radius: 30px; border: none; cursor: pointer;
  background: rgba(255,255,255,.14);
  position: relative; transition: background .3s;
}
.eh-theme-toggle .knob {
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  font-size: .8rem; color: #0c2552; transition: transform .3s;
}
[data-theme="light"] .eh-theme-toggle .knob { transform: translateX(28px); }

.eh-lang {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #e9eefb; border-radius: 10px; padding: 6px 10px; font-size: .85rem;
}
.eh-lang option { color: #111; }

/* Carte glassmorphism */
.eh-login-card {
  flex: 1;
  background: rgba(14, 26, 54, .60);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  padding: 30px 38px 34px;
  display: flex; flex-direction: column;
}

/* Logo circulaire dans la carte */
.eh-card-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.eh-card-logo img {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(8,18,40,.5);
  border: 3px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}

.eh-welcome { text-align: center; }
.eh-welcome .pre {
  display: inline-flex; align-items: center; gap: 10px;
  color: #9db6e6; font-size: .85rem; margin-bottom: 6px;
}
.eh-welcome .pre::before, .eh-welcome .pre::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #3ddc8a);
}
.eh-welcome .pre::before { background: linear-gradient(90deg, #3ddc8a, transparent); }
.eh-welcome h1 { color: #fff; font-size: 1.7rem; font-weight: 800; margin: 0; }
.eh-welcome h1 .g { color: #3ddc8a; }
.eh-welcome p { color: #aebfe0; font-size: .92rem; margin-top: 6px; }

/* Champs */
.eh-field { margin-top: 18px; }
.eh-field label {
  display: flex; align-items: center; gap: 8px;
  color: #cfe0ff; font-size: .9rem; font-weight: 600; margin-bottom: 8px;
}
.eh-input-group {
  position: relative; display: flex; align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.eh-input-group:focus-within {
  border-color: rgba(var(--eh-accent-rgb), .8);
  box-shadow: 0 0 0 4px rgba(var(--eh-accent-rgb), .15);
  background: rgba(255,255,255,.09);
}
.eh-input-group .lead-ico { padding: 0 12px; color: #8aa2cc; }
.eh-input-group input {
  flex: 1; border: none; background: transparent; outline: none;
  color: #fff; padding: 13px 12px 13px 0; font-size: .95rem;
}
.eh-input-group input::placeholder { color: #7e93bb; }
.eh-input-group .toggle-eye {
  background: none; border: none; color: #8aa2cc; padding: 0 14px; cursor: pointer;
}
.eh-input-group .toggle-eye:hover { color: #fff; }

/* Ligne remember / forgot */
.eh-row-between { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.eh-check { display: flex; align-items: center; gap: 8px; color: #cfe0ff; font-size: .9rem; }
.eh-check input { width: 18px; height: 18px; accent-color: var(--eh-primary); }
.eh-forgot { color: #4d96ff; font-size: .9rem; font-weight: 600; }

/* Captcha */
.eh-captcha { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.eh-captcha img { height: 48px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background:#fff; }
.eh-captcha .reload { background: none; border: none; color: #8aa2cc; cursor: pointer; font-size: 1.1rem; }

/* Bouton principal */
.eh-submit {
  margin-top: 22px; width: 100%;
  border: none; border-radius: 14px; padding: 15px;
  font-weight: 700; letter-spacing: 1px; color: #fff; cursor: pointer;
  background: linear-gradient(90deg, #0D6EFD 0%, #20C997 100%);
  box-shadow: 0 12px 30px rgba(13,110,253,.4);
  transition: transform .15s, box-shadow .2s, filter .2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.eh-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(32,201,151,.5); filter: brightness(1.04); }
.eh-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Séparateur "ou continuez avec" */
.eh-or { text-align: center; color: #8aa2cc; font-size: .85rem; margin: 20px 0 14px; position: relative; }
.eh-or::before, .eh-or::after {
  content: ""; position: absolute; top: 50%; width: 28%; height: 1px;
  background: rgba(255,255,255,.15);
}
.eh-or::before { left: 0; } .eh-or::after { right: 0; }

/* Boutons alternatifs */
.eh-alts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.eh-alt {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 14px 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #cfe0ff; transition: background .2s, transform .15s, border-color .2s;
}
.eh-alt:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); border-color: rgba(var(--eh-accent-rgb),.5); }
.eh-alt .ico { font-size: 1.4rem; color: #4d96ff; display: grid; place-items: center; height: 1.6rem; }
.eh-alt .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .5px; }
.eh-alt .otp-badge {
  font-size: .62rem; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: linear-gradient(135deg, #0D6EFD, #0a58ca);
  padding: 3px 7px; border-radius: 6px; line-height: 1;
}

/* Bandeau sécurité */
.eh-secure {
  margin-top: 22px; display: flex; align-items: center; gap: 14px;
  background: rgba(25,135,84,.12);
  border: 1px solid rgba(32,201,151,.3);
  border-radius: 14px; padding: 14px 16px;
}
.eh-secure .ico { font-size: 1.6rem; color: #3ddc8a; flex: 0 0 auto; }
.eh-secure .txt { flex: 1; }
.eh-secure .t { font-weight: 700; color: #fff; font-size: .9rem; }
.eh-secure .d { font-size: .78rem; color: #aebfe0; }
.eh-secure .chk { flex: 0 0 auto; font-size: 1.3rem; color: #3ddc8a; opacity: .85; }

/* Footer */
.eh-auth-footer {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  max-width: 1340px; margin: 0 auto; padding: 10px 30px 22px;
  color: #9fb2d6; font-size: .82rem;
}
.eh-auth-footer .dot { opacity: .5; margin: 0 6px; }

/* Alerte */
.eh-alert {
  margin-top: 16px; border-radius: 12px; padding: 12px 14px; font-size: .9rem;
  border: 1px solid transparent;
}
.eh-alert-error   { background: rgba(220,53,69,.12); border-color: rgba(220,53,69,.4); color: #ffb3bb; }
.eh-alert-success { background: rgba(25,135,84,.12); border-color: rgba(32,201,151,.4); color: #9ff0c8; }

/* ---------- Pages secondaires centrées (OTP, reset, 1er accès) ---------- */
.eh-auth-center {
  position: relative; z-index: 2;
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.eh-center-card {
  width: 100%; max-width: 460px;
  background: rgba(14, 26, 54, .60);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  padding: 34px;
}
.eh-center-card .brand { text-align: center; margin-bottom: 18px; }
.eh-center-card .brand img { width: 84px; height: 84px; border-radius: 50%; }
.eh-center-card .brand .eh-wordmark { font-size: 1.5rem; margin-top: 8px; font-weight: 800; }
.eh-center-card .brand .eh-wordmark .easy { color: #4d96ff; }
.eh-center-card .brand .eh-wordmark .health { color: #3ddc8a; }
.eh-back { display: inline-flex; align-items: center; gap: 6px; color: #8aa2cc; font-size: .9rem; margin-top: 18px; }

/* OTP : champs séparés */
.eh-otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 8px 0; }
.eh-otp-inputs input {
  width: 52px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 700;
  color: #fff; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; outline: none;
}
.eh-otp-inputs input:focus { border-color: rgba(var(--eh-accent-rgb),.8); box-shadow: 0 0 0 4px rgba(var(--eh-accent-rgb),.15); }

.shake { animation: ehShake .4s; }
@keyframes ehShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .eh-auth-wrap { grid-template-columns: 1fr; }
  .eh-auth-hero { min-height: 300px; }
  .eh-features { grid-template-columns: repeat(2, 1fr); }
  .eh-clock .time { font-size: 3rem; }
}
@media (max-width: 520px) {
  .eh-auth-wrap { padding: 16px; gap: 18px; }
  .eh-auth-hero { padding: 26px; }
  .eh-login-card { padding: 24px; }
  .eh-alts { grid-template-columns: 1fr; }
  .eh-hero-brand .eh-wordmark { font-size: 1.9rem; }
  .eh-logo-ring, .eh-logo-ring img { width: 84px; height: 84px; }
  .eh-clock .time { font-size: 2.5rem; }
}

/* ============================================================================
   ║  EASY HEALTH — PAGE DE CONNEXION « LUMINEUSE » (refonte premium)         ║
   ║  Design clair calqué sur la maquette : vitrine gauche (carte du Mali,    ║
   ║  hôpital, atouts, statistiques, tutelle) + carte de connexion blanche.   ║
   ║  Tout est scopé sous .eh-auth-light pour ne pas affecter OTP/reset/…     ║
   ============================================================================ */

.eh-auth-light {
  --el-blue:   #0d6efd;
  --el-blue-d: #0a4fd4;
  --el-blue-2: #2f86ff;
  --el-green:  #1aa861;
  --el-green-2:#36c98a;
  --el-ink:    #15233f;
  --el-ink-2:  #5a6b86;
  --el-line:   #e6ecf6;
  --el-card:   #ffffff;
  --el-bg-1:   #eaf2ff;
  --el-bg-2:   #f3f9ff;
  --el-bg-3:   #e9fbf3;

  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--el-ink);
  background:
    radial-gradient(1100px 720px at 88% -8%,  rgba(54,201,138,.20), transparent 60%),
    radial-gradient(1000px 760px at -6% 108%, rgba(13,110,253,.20), transparent 58%),
    linear-gradient(135deg, var(--el-bg-2) 0%, var(--el-bg-1) 52%, var(--el-bg-3) 100%);
  overflow-x: hidden;
}

/* ----- Disposition générale : 2 colonnes ----- */
.el-shell {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: stretch;
  min-height: 100vh;
}

/* ===========================================================================
   VITRINE (GAUCHE)
   =========================================================================== */
.el-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  padding: clamp(28px, 4vw, 64px);
}

/* ---- décor de fond ---- */
.el-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.el-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,110,253,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,110,253,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 30% 20%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 100% at 30% 20%, #000 30%, transparent 75%);
  opacity: .7;
}

.el-blob {
  position: absolute; border-radius: 50%;
  filter: blur(46px); opacity: .55;
  animation: elFloat 16s ease-in-out infinite;
}
.el-blob-a { width: 460px; height: 460px; top: -120px; right: -90px;
  background: radial-gradient(circle at 30% 30%, #6fb6ff, transparent 70%); }
.el-blob-b { width: 420px; height: 420px; bottom: -140px; left: -100px;
  background: radial-gradient(circle at 30% 30%, #59e0a8, transparent 70%); animation-delay: -5s; }
.el-blob-c { width: 300px; height: 300px; top: 38%; left: 46%;
  background: radial-gradient(circle at 30% 30%, #9fd0ff, transparent 70%); opacity: .4; animation-delay: -9s; }
@keyframes elFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(18px,-26px) scale(1.07); }
}

.el-map {
  position: absolute; top: 8%; right: 4%;
  width: min(54%, 560px); height: auto;
  opacity: .14; filter: saturate(.5) drop-shadow(0 20px 40px rgba(13,110,253,.25));
  transform: rotate(-3deg);
}

.el-photo {
  position: absolute; right: -2%; bottom: -2%;
  width: 62%; height: 64%;
  background-size: cover; background-position: center;
  border-radius: 28px;
  -webkit-mask-image: radial-gradient(120% 120% at 75% 80%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 120% at 75% 80%, #000 35%, transparent 78%);
  opacity: .42;
}
.el-photo-veil {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--el-bg-2) 18%, rgba(243,249,255,.35) 52%, rgba(233,251,243,.18) 100%);
}

.el-ecg {
  position: absolute; left: 0; right: 0; bottom: 16%;
  width: 100%; height: 120px; opacity: .35;
}
.el-ecg path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: elTrace 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(32,201,151,.35));
}
@keyframes elTrace {
  0%   { stroke-dashoffset: 2400; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---- contenu vitrine ---- */
.el-stage-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; max-width: 660px;
}

.el-brand { display: flex; align-items: center; gap: 18px; }
.el-brand-logo {
  position: relative; flex: 0 0 auto;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
}
.el-brand-logo::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, var(--el-blue), var(--el-green-2), #4d96ff, var(--el-blue));
  filter: blur(8px); opacity: .55; animation: ehSpin 8s linear infinite;
}
.el-brand-logo img {
  position: relative; z-index: 1;
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff; box-shadow: 0 10px 26px rgba(13,110,253,.22), inset 0 0 0 3px #fff;
}
.el-brand-text { display: flex; flex-direction: column; line-height: 1; }
.el-wordmark { font-size: clamp(1.5rem, 2.4vw, 2.05rem); font-weight: 800; letter-spacing: .5px; }
.el-wordmark b { color: var(--el-blue); font-weight: 800; }
.el-wordmark i { color: var(--el-green); font-style: normal; font-weight: 800; }
.el-eh {
  display: inline-block; width: fit-content; margin-top: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: 5px; color: var(--el-blue);
  padding: 2px 10px; border-radius: 6px; background: rgba(13,110,253,.08);
  position: relative;
}
.el-slogan { margin-top: 8px; font-size: .74rem; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--el-ink-2); font-weight: 600; }

.el-headline { margin-top: clamp(26px, 4vh, 48px); }
.el-headline h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.5px;
  color: var(--el-blue-d); margin: 0;
}
.el-headline h1 span { color: var(--el-ink); }
.el-headline h1 .g {
  background: linear-gradient(100deg, var(--el-green) 0%, var(--el-green-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.el-headline p {
  margin: 16px 0 0; max-width: 30em;
  font-size: clamp(.95rem, 1.2vw, 1.08rem); line-height: 1.6; color: var(--el-ink-2);
}

/* ---- atouts ---- */
.el-features {
  margin-top: clamp(24px, 3.5vh, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.el-feature {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(20,40,80,.07);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.el-feature:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(20,40,80,.13); }
.el-feature .ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-size: 1.25rem;
}
.el-feature .ico.blue  { background: linear-gradient(145deg, var(--el-blue-2), var(--el-blue-d));
  box-shadow: 0 10px 22px rgba(13,110,253,.35); }
.el-feature .ico.green { background: linear-gradient(145deg, var(--el-green-2), var(--el-green));
  box-shadow: 0 10px 22px rgba(26,168,97,.35); }
.el-feature h3 { margin: 2px 0 3px; font-size: .92rem; font-weight: 800; letter-spacing: .4px; color: var(--el-ink); }
.el-feature p  { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--el-ink-2); }

/* ---- bandeau statistiques ---- */
.el-stats {
  margin-top: clamp(20px, 3vh, 30px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 18px 14px; border-radius: 20px;
  background: linear-gradient(120deg, var(--el-blue-d) 0%, var(--el-blue) 48%, #1f7fe0 78%, var(--el-green) 130%);
  box-shadow: 0 22px 48px rgba(13,90,210,.35);
  position: relative; overflow: hidden;
}
.el-stats::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 90% -40%, rgba(255,255,255,.25), transparent 70%);
}
.el-stat { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px;
  padding: 4px 6px; color: #fff; }
.el-stat + .el-stat { border-left: 1px solid rgba(255,255,255,.18); padding-left: 14px; }
.el-stat .ico {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.1rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
}
.el-stat b     { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1; }
.el-stat small { display: block; margin-top: 3px; font-size: .68rem; opacity: .9; line-height: 1.15; }

/* ---- tutelle ---- */
.el-ministry { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 12px; }
.el-ministry img { width: 38px; height: 38px; opacity: .92; }
.el-ministry .t { display: block; font-size: .82rem; font-weight: 700; color: var(--el-ink); }
.el-ministry .t i { color: var(--el-green); }
.el-ministry .d { display: block; font-size: .78rem; color: var(--el-ink-2); }

/* ===========================================================================
   PAGE AUTONOME CENTRÉE (OTP login, OTP 2FA, mot de passe oublié, reset…)
   =========================================================================== */
.el-solo {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: clamp(20px, 4vw, 48px);
}
.el-solo .el-card { max-width: 440px; }
.el-solo .el-tools { position: absolute; top: clamp(18px,3vw,30px); right: clamp(18px,3vw,34px); }
.el-back {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-size: .88rem; font-weight: 600; color: var(--el-ink-2);
}
.el-back:hover { color: var(--el-blue); }
.el-card .el-sub { text-align: center; margin: 8px 0 4px; font-size: .92rem; line-height: 1.55; color: var(--el-ink-2); }
.el-otp-grid { display: flex; gap: 10px; justify-content: center; margin: 6px 0 4px; }
.el-otp-grid input {
  width: 50px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 800;
  color: var(--el-ink); background: #f6f9ff; border: 1.5px solid var(--el-line); border-radius: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.el-otp-grid input:focus { background: #fff; border-color: var(--el-blue); box-shadow: 0 0 0 4px rgba(13,110,253,.12); }
.el-linkrow { text-align: center; margin-top: 16px; font-size: .88rem; color: var(--el-ink-2); }
.el-linkrow a { color: var(--el-blue); font-weight: 600; }

/* ===========================================================================
   PANNEAU DE CONNEXION (DROITE)
   =========================================================================== */
.el-pane {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: clamp(24px, 3vw, 48px);
}

/* outils langue + thème */
.el-tools {
  position: absolute; top: clamp(20px, 3vw, 34px); right: clamp(20px, 3vw, 40px);
  display: flex; align-items: center; gap: 12px; z-index: 3;
}
.el-lang-wrap {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--el-line); border-radius: 999px;
  padding: 7px 12px 7px 14px; box-shadow: 0 8px 20px rgba(20,40,80,.08);
  cursor: pointer;
}
.el-lang-wrap .flag { font-size: 1.1rem; line-height: 1; }
.el-lang {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: none; outline: none; background: transparent;
  font: 600 .9rem "Plus Jakarta Sans", sans-serif; color: var(--el-ink);
  padding-right: 16px; cursor: pointer;
}
.el-lang-wrap .caret { position: absolute; right: 12px; font-size: .7rem; color: var(--el-ink-2); pointer-events: none; }

.el-theme {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--el-line); background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(20,40,80,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.el-theme:hover { transform: rotate(35deg) scale(1.05); box-shadow: 0 10px 26px rgba(255,180,0,.3); }
.el-theme .knob { display: grid; place-items: center; }
.el-theme .knob i { font-size: 1.25rem; color: #f5a623; }

/* carte */
.el-card {
  width: 100%; max-width: 460px;
  background: var(--el-card);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  padding: clamp(28px, 3vw, 44px) clamp(26px, 3vw, 42px);
  box-shadow:
    0 40px 90px rgba(18,45,90,.16),
    0 6px 20px rgba(18,45,90,.06),
    inset 0 1px 0 #fff;
  position: relative;
  animation: elRise .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes elRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.el-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 28px; padding: 1.5px;
  background: linear-gradient(140deg, rgba(13,110,253,.35), rgba(32,201,151,.35), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.el-card-logo { display: flex; justify-content: center; }
.el-card-logo img {
  width: 92px; height: 92px; border-radius: 50%; background: #fff;
  box-shadow: 0 14px 30px rgba(13,110,253,.18), inset 0 0 0 4px #fff, 0 0 0 1px var(--el-line);
}

.el-welcome { text-align: center; margin-top: 12px; }
.el-welcome h1 { margin: 0; font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 800;
  color: var(--el-blue-d); letter-spacing: -.5px; }
.el-welcome p { margin: 10px 0 0; font-size: .92rem; line-height: 1.55; color: var(--el-ink-2); }
.el-welcome p b { color: var(--el-ink); font-weight: 700; }

/* champs */
.el-field { margin-top: 18px; }
.el-field label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 700; color: var(--el-ink); }
.el-input {
  position: relative; display: flex; align-items: center;
  background: #f6f9ff; border: 1.5px solid var(--el-line); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.el-input:focus-within {
  background: #fff; border-color: var(--el-blue);
  box-shadow: 0 0 0 4px rgba(13,110,253,.12);
}
.el-input .lead { padding: 0 12px 0 15px; color: #9bb0d3; font-size: 1.05rem; }
.el-input input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 14px 12px 14px 0; font-size: .95rem; color: var(--el-ink);
  font-family: inherit;
}
.el-input input::placeholder { color: #9aa9c4; }
.el-input .toggle-eye { background: none; border: none; color: #9bb0d3; padding: 0 14px; cursor: pointer; font-size: 1.05rem; }
.el-input .toggle-eye:hover { color: var(--el-blue); }

/* ligne remember / forgot */
.el-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 12px; }
.el-check { display: inline-flex; align-items: center; gap: 9px; font-size: .87rem; color: var(--el-ink-2); cursor: pointer; user-select: none; }
.el-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.el-check .box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c5d3ea; background: #fff;
  display: grid; place-items: center; color: #fff; font-size: .8rem; transition: all .18s;
}
.el-check input:checked + .box { background: linear-gradient(145deg, var(--el-blue-2), var(--el-blue-d)); border-color: var(--el-blue); }
.el-check .box i { transform: scale(0); transition: transform .18s; }
.el-check input:checked + .box i { transform: scale(1); }
.el-check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(13,110,253,.18); }
.el-forgot { font-size: .87rem; font-weight: 700; color: var(--el-blue); }
.el-forgot:hover { text-decoration: underline; }

/* bouton principal */
.el-submit {
  margin-top: 22px; width: 100%; border: none; cursor: pointer;
  border-radius: 14px; padding: 16px; position: relative; overflow: hidden;
  font: 800 .98rem/1 "Plus Jakarta Sans", sans-serif; letter-spacing: 1.2px; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(100deg, var(--el-blue-d) 0%, var(--el-blue) 55%, #1f7fe0 100%);
  box-shadow: 0 16px 34px rgba(13,90,210,.4);
  transition: transform .16s ease, box-shadow .22s ease, filter .2s ease;
}
.el-submit .arr { transition: transform .25s ease; }
.el-submit::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.el-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 46px rgba(26,168,97,.4); filter: brightness(1.05); }
.el-submit:hover .arr { transform: translateX(5px); }
.el-submit:hover::after { left: 130%; }
.el-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* séparateur */
.el-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; color: var(--el-ink-2); font-size: .82rem; }
.el-or::before, .el-or::after { content: ""; flex: 1; height: 1px; background: var(--el-line); }

/* boutons sociaux */
.el-socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.el-social {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 14px 8px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--el-line); border-radius: 14px;
  font: 700 .82rem "Plus Jakarta Sans", sans-serif; color: var(--el-ink);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.el-social:hover { transform: translateY(-3px); border-color: #cddcf3; box-shadow: 0 14px 30px rgba(20,40,80,.12); }
.el-social i { font-size: 1.3rem; color: var(--el-blue); }

.el-legal { margin: 22px 0 0; text-align: center; font-size: .76rem; color: var(--el-ink-2); }

/* alertes */
.el-alert {
  margin-top: 16px; display: flex; align-items: center; gap: 10px;
  border-radius: 12px; padding: 12px 14px; font-size: .88rem; line-height: 1.4;
  border: 1px solid transparent;
}
.el-alert i { font-size: 1.1rem; flex: 0 0 auto; }
.el-alert.err { background: #fdecee; border-color: #f6c4cb; color: #c0344a; }
.el-alert.ok  { background: #e8f9f1; border-color: #b6ecd2; color: #15784f; }

/* secousse (boutons "bientôt") */
.eh-auth-light .shake { animation: ehShake .4s; }

/* ===========================================================================
   THÈME SOMBRE (bascule via #ehThemeToggle)
   =========================================================================== */
[data-theme="dark"] .eh-auth-light {
  --el-ink:   #eaf1ff;
  --el-ink-2: #9fb2d6;
  --el-line:  rgba(255,255,255,.12);
  --el-card:  rgba(18,30,58,.88);
  --el-bg-1:  #0c1f44;
  --el-bg-2:  #0a1730;
  --el-bg-3:  #0a2c33;
  background:
    radial-gradient(1100px 720px at 88% -8%,  rgba(32,201,151,.18), transparent 60%),
    radial-gradient(1000px 760px at -6% 108%, rgba(13,110,253,.22), transparent 58%),
    linear-gradient(135deg, #0a1730 0%, #0c1f44 52%, #0a2c33 100%);
}
[data-theme="dark"] .eh-auth-light .el-headline h1 { color: #6fb6ff; }
[data-theme="dark"] .eh-auth-light .el-welcome h1 { color: #6fb6ff; }
[data-theme="dark"] .eh-auth-light .el-feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .eh-auth-light .el-feature h3 { color: #eaf1ff; }
[data-theme="dark"] .eh-auth-light .el-eh { background: rgba(111,182,255,.16); color: #9fc8ff; }
[data-theme="dark"] .eh-auth-light .el-input { background: rgba(255,255,255,.05); }
[data-theme="dark"] .eh-auth-light .el-input:focus-within { background: rgba(255,255,255,.08); }
[data-theme="dark"] .eh-auth-light .el-input input { color: #eaf1ff; }
[data-theme="dark"] .eh-auth-light .el-social,
[data-theme="dark"] .eh-auth-light .el-lang-wrap,
[data-theme="dark"] .eh-auth-light .el-theme { background: rgba(255,255,255,.06); }
[data-theme="dark"] .eh-auth-light .el-social span { color: #eaf1ff; }
[data-theme="dark"] .eh-auth-light .el-check .box { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
[data-theme="dark"] .eh-auth-light .el-card-logo img,
[data-theme="dark"] .eh-auth-light .el-brand-logo img { background: #0c1f44; box-shadow: 0 14px 30px rgba(0,0,0,.5), inset 0 0 0 3px rgba(255,255,255,.08); }
[data-theme="dark"] .eh-auth-light .el-photo-veil {
  background: linear-gradient(105deg, #0a1730 18%, rgba(10,23,48,.55) 52%, rgba(10,44,51,.3) 100%);
}
[data-theme="dark"] .eh-auth-light .el-lang { color: #eaf1ff; }
[data-theme="dark"] .eh-auth-light .el-lang option { color: #111; }
[data-theme="dark"] .eh-auth-light .el-theme .knob i { color: #ffd479; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 1080px) {
  .el-shell { grid-template-columns: 1fr; }
  .el-stage { min-height: auto; padding-bottom: 40px; }
  .el-pane { padding-top: 40px; }
  .el-tools { position: static; align-self: flex-end; margin-bottom: 18px; }
}
@media (max-width: 680px) {
  .el-features { grid-template-columns: 1fr; }
  .el-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .el-stat + .el-stat { border-left: none; padding-left: 6px; }
  .el-headline h1 { font-size: 1.85rem; }
  .el-map { opacity: .08; }
}
@media (max-width: 420px) {
  .el-stage { padding: 22px; }
  .el-card { padding: 26px 22px; }
  .el-socials { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .el-blob, .el-ecg path, .el-card, .el-brand-logo::before { animation: none !important; }
}
