/* ==========================================================================
   Connexion — /{lang}/login (login.html, body.lgx-page)
   Écran partagé : panneau marque (gauche) + formulaire (droite).
   ========================================================================== */
body.lgx-page {
  --lgx-text: #f5f4f1;
  --lgx-muted: rgba(245, 244, 241, 0.62);
  --lgx-faint: rgba(245, 244, 241, 0.4);
  --lgx-line: rgba(245, 244, 241, 0.1);
  --lgx-field: #0f0f0e;
  --lgx-gold: #c6a66a;
  --lgx-gold-hi: #d4b984;
  --lgx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Bouton « Inscription » du header (tokens og-*) */
  --og-accent: #c6a66a;
  --og-accent-hover: #d4b984;
  --og-text: #ffffff;
  --og-muted: #9a9a9a;
  --og-border: rgba(255, 255, 255, 0.08);
  background: #050505 !important;
}
body.lgx-page .lgx, body.lgx-page .lgx * { font-family: 'Montserrat', system-ui, -apple-system, sans-serif; box-sizing: border-box; }

body.lgx-page .auth-main.lgx {
  display: block;
  padding: calc(max(0.85rem, env(safe-area-inset-top, 0px)) + 88px) 24px 64px !important;
}
.lgx-shell {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: start;
  min-height: min(720px, calc(100vh - 170px));
}

/* ---------------------------------------------------------------- Panneau */
.lgx-panel {
  position: relative;
  align-self: start;
  height: 660px;
  display: flex;
  flex-direction: column;
  padding: 44px 44px 0;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(80% 60% at 70% 100%, rgba(198, 166, 106, 0.28), transparent 65%),
    radial-gradient(60% 50% at 0% 0%, rgba(198, 166, 106, 0.1), transparent 70%),
    linear-gradient(180deg, #0f0f0e, #090908);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.07);
}
.lgx-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(245, 244, 241, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.lgx-panel-glow {
  position: absolute;
  right: -10%;
  bottom: -18%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(198, 166, 106, 0.35), transparent);
  filter: blur(40px);
  z-index: -1;
  animation: lgxBreath 7s ease-in-out infinite alternate;
}
@keyframes lgxBreath { from { opacity: 0.7; transform: scale(0.95); } to { opacity: 1; transform: scale(1.05); } }
.lgx-panel-copy { position: relative; z-index: 1; max-width: 400px; }
.lgx-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lgx-gold); }
.lgx-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--lgx-gold); box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.18); }
.lgx-panel-title {
  margin: 0 0 28px !important;
  font-size: clamp(2.1rem, 3.6vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.03 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  color: var(--lgx-text) !important;
}
.lgx-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lgx-points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; color: rgba(245, 244, 241, 0.82); }
.lgx-check { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(198, 166, 106, 0.14); color: var(--lgx-gold); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.35); }
.lgx-check svg { width: 13px; height: 13px; }
.lgx-phone {
  position: absolute;
  right: 28px;
  bottom: -60px;
  margin: 0;
  z-index: 0;
  transform: rotate(-6deg);
  animation: lgxFloat 6s ease-in-out infinite alternate;
}
.lgx-phone img { display: block; height: 470px; width: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.75)); }
.lgx-phone--signup { right: 56px; bottom: -110px; }
.lgx-phone--signup img { height: 460px; }
@keyframes lgxFloat { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(-5deg) translateY(-12px); } }

/* ---------------------------------------------------------------- Formulaire */
body.lgx-page .auth-container.lgx-col { max-width: 420px !important; width: 100%; margin: 0 auto !important; padding: 0 !important; }
body.lgx-page .auth-card.lgx-card {
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  text-align: left !important;
}
.lgx-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lgx-gold); }
body.lgx-page .lgx-card .auth-title {
  margin: 0 0 8px !important;
  font-size: clamp(1.9rem, 3vw, 2.4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.08 !important;
  text-align: left !important;
  text-transform: none !important;
  color: var(--lgx-text) !important;
}
body.lgx-page .lgx-card .auth-subtitle { margin: 0 0 28px !important; font-size: 15px !important; color: var(--lgx-muted) !important; text-align: left !important; }

/* Boutons sociaux */
body.lgx-page .lgx-card .auth-social { display: grid !important; gap: 10px !important; margin: 0 !important; }
body.lgx-page .lgx-card .auth-social-btn {
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border-radius: 999px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: background 0.2s, border-color 0.2s, transform 0.15s !important;
}
body.lgx-page .lgx-card .auth-social-apple { background: #f5f4f1 !important; color: #0b0a08 !important; border: 1px solid #f5f4f1 !important; }
body.lgx-page .lgx-card .auth-social-apple:hover { background: #ffffff !important; }
body.lgx-page .lgx-card .auth-social-google { background: transparent !important; color: var(--lgx-text) !important; border: 1px solid rgba(245, 244, 241, 0.16) !important; }
body.lgx-page .lgx-card .auth-social-google:hover { border-color: rgba(245, 244, 241, 0.34) !important; background: rgba(245, 244, 241, 0.03) !important; }
body.lgx-page .lgx-card .auth-social-btn:active { transform: scale(0.99); }
body.lgx-page .lgx-card .auth-social-icon { width: 19px; height: 19px; }

/* Séparateur */
body.lgx-page .lgx-divider {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 24px 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--lgx-faint) !important;
  text-align: center;
}
body.lgx-page .lgx-divider::before,
body.lgx-page .lgx-divider::after { content: '' !important; flex: 1 1 auto; height: 1px; background: var(--lgx-line) !important; display: block !important; position: static !important; width: auto !important; }

/* Champs */
body.lgx-page .lgx-card .auth-form { display: grid !important; gap: 16px !important; }
body.lgx-page .lgx-card .auth-field { display: grid !important; gap: 8px !important; margin: 0 !important; }
body.lgx-page .lgx-card .auth-field label { margin: 0 !important; font-size: 13px !important; font-weight: 600 !important; color: rgba(245, 244, 241, 0.78) !important; }
.lgx-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body.lgx-page .lgx-card .auth-forgot-link { font-size: 12.5px !important; font-weight: 600 !important; color: var(--lgx-gold) !important; text-decoration: none !important; }
body.lgx-page .lgx-card .auth-forgot-link:hover { color: var(--lgx-gold-hi) !important; text-decoration: underline !important; text-underline-offset: 3px; }
body.lgx-page .lgx-input { position: relative !important; display: block !important; border-radius: 16px !important; background: none !important; border: 0 !important; }
.lgx-input-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--lgx-faint);
  pointer-events: none;
  transition: color 0.2s;
}
.lgx-input-ico svg { display: block; width: 18px; height: 18px; }
body.lgx-page .lgx-input:focus-within .lgx-input-ico { color: var(--lgx-gold); }
body.lgx-page .lgx-card .lgx-input input {
  width: 100% !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 16px 0 46px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(245, 244, 241, 0.1) !important;
  background: var(--lgx-field) !important;
  color: var(--lgx-text) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
}
body.lgx-page .lgx-card .auth-password-wrap input { padding-right: 54px !important; }
body.lgx-page .lgx-card .lgx-input input::placeholder { color: rgba(245, 244, 241, 0.28) !important; }
body.lgx-page .lgx-card .lgx-input input:hover { border-color: rgba(245, 244, 241, 0.2) !important; }
body.lgx-page .lgx-card .lgx-input input:focus {
  outline: none !important;
  border-color: rgba(198, 166, 106, 0.75) !important;
  background: #121210 !important;
  box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.14) !important;
}
body.lgx-page .lgx-card .lgx-input input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #121210 inset !important;
  -webkit-text-fill-color: var(--lgx-text) !important;
  caret-color: var(--lgx-text);
}
body.lgx-page .lgx-card .auth-password-toggle {
  right: 8px !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--lgx-faint) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.lgx-page .lgx-card .auth-password-toggle:hover { color: var(--lgx-text) !important; background: rgba(245, 244, 241, 0.06) !important; }
body.lgx-page .lgx-card .auth-password-toggle svg { width: 19px; height: 19px; }
body.lgx-page .lgx-card .auth-error { min-height: 0 !important; font-size: 12.5px !important; font-weight: 600 !important; color: #e8836f !important; }
body.lgx-page .lgx-card .auth-error:empty { display: none !important; }

/* Téléphone : indicatif + numéro */
body.lgx-page .lgx-card .lgx-phone-wrap { display: flex !important; gap: 8px !important; align-items: stretch !important; }
body.lgx-page .lgx-card .lgx-phone-wrap .country-picker { position: relative; flex: 0 0 auto; }
body.lgx-page .lgx-card .lgx-phone-wrap .country-picker-trigger {
  height: 54px !important;
  min-width: 104px;
  padding: 0 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(245, 244, 241, 0.1) !important;
  background: var(--lgx-field) !important;
  color: var(--lgx-text) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: border-color 0.2s !important;
}
body.lgx-page .lgx-card .lgx-phone-wrap .country-picker-trigger:hover,
body.lgx-page .lgx-card .lgx-phone-wrap .country-picker-trigger[aria-expanded="true"] { border-color: rgba(198, 166, 106, 0.6) !important; }
body.lgx-page .lgx-card .lgx-phone-wrap .country-picker-dropdown {
  z-index: 30 !important;
  border-radius: 16px !important;
  background: #121210 !important;
  border: 1px solid rgba(245, 244, 241, 0.12) !important;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9) !important;
}
body.lgx-page .lgx-card .lgx-phone-wrap input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(245, 244, 241, 0.1) !important;
  background: var(--lgx-field) !important;
  color: var(--lgx-text) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
body.lgx-page .lgx-card .lgx-phone-wrap input[type="tel"]::placeholder { color: rgba(245, 244, 241, 0.28) !important; }
body.lgx-page .lgx-card .lgx-phone-wrap input[type="tel"]:focus {
  outline: none !important;
  border-color: rgba(198, 166, 106, 0.75) !important;
  box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.14) !important;
}

/* Robustesse du mot de passe */
.lgx-strength { display: flex; align-items: center; gap: 12px; }
.lgx-strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 112px; flex: 0 0 auto; }
.lgx-strength-bars i { height: 4px; border-radius: 4px; background: rgba(245, 244, 241, 0.1); transition: background 0.3s; }
body.lgx-page .lgx-strength-label { margin: 0 !important; font-size: 12px !important; font-weight: 600 !important; color: var(--lgx-faint) !important; }
.lgx-strength.is-typing[data-level="0"] .lgx-strength-label { color: #e8836f !important; }
.lgx-strength[data-level="1"] .lgx-strength-bars i:nth-child(-n+1) { background: #e8836f; }
.lgx-strength[data-level="2"] .lgx-strength-bars i:nth-child(-n+2) { background: #e2b25c; }
.lgx-strength[data-level="3"] .lgx-strength-bars i:nth-child(-n+3) { background: var(--lgx-gold); }
.lgx-strength[data-level="4"] .lgx-strength-bars i { background: #7fcf9a; }
.lgx-strength[data-level="4"] .lgx-strength-label { color: #7fcf9a !important; }
.lgx-match { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; font-weight: 600; color: #7fcf9a; }
.lgx-match[hidden] { display: none; }
.lgx-match svg { width: 14px; height: 14px; }
body.lgx-page .lgx-card .lgx-input.is-match input { border-color: rgba(127, 207, 154, 0.55) !important; }
body.lgx-page .lgx-card .lgx-input.is-match .lgx-input-ico { color: #7fcf9a; }

/* Bouton principal */
body.lgx-page .lgx-card .auth-submit {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 56px !important;
  margin: 8px 0 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--lgx-gold) !important;
  color: #0b0a08 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 18px 36px -18px rgba(198, 166, 106, 0.8) !important;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s !important;
}
body.lgx-page .lgx-card .auth-submit::after {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s var(--lgx-ease);
}
body.lgx-page .lgx-card .auth-submit:hover { background: var(--lgx-gold-hi) !important; transform: translateY(-1px); }
body.lgx-page .lgx-card .auth-submit:hover::after { transform: translateX(3px); }
body.lgx-page .lgx-card .auth-submit:focus-visible { outline: 2px solid var(--lgx-gold) !important; outline-offset: 3px; }
body.lgx-page .lgx-card .auth-submit:disabled { opacity: 0.8; cursor: progress; transform: none; }
body.lgx-page .lgx-card .auth-submit:disabled::after {
  -webkit-mask: none;
  mask: none;
  background: none;
  border: 2px solid rgba(11, 10, 8, 0.25);
  border-top-color: #0b0a08;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: lgxSpin 0.8s linear infinite;
}
@keyframes lgxSpin { to { transform: rotate(360deg); } }

/* Bas de carte */
.lgx-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; font-size: 12px; font-weight: 600; color: var(--lgx-faint); }
.lgx-secure svg { width: 14px; height: 14px; }
body.lgx-page .lgx-card .lgx-switch {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 28px 0 0 !important;
  padding: 16px 16px 16px 20px !important;
  border-radius: 18px !important;
  background: rgba(245, 244, 241, 0.03) !important;
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.08) !important;
  font-size: 14px !important;
  color: var(--lgx-muted) !important;
  text-align: left !important;
}
body.lgx-page .lgx-card .lgx-switch-btn {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  height: 40px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(198, 166, 106, 0.5) !important;
  color: var(--lgx-gold) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s !important;
}
body.lgx-page .lgx-card .lgx-switch-btn:hover { background: var(--lgx-gold) !important; color: #0b0a08 !important; }
.lgx-legal { margin-top: 22px; display: grid; gap: 6px; }
body.lgx-page .lgx-card .auth-legal-notice { margin: 0 !important; font-size: 11.5px !important; line-height: 1.55 !important; color: rgba(245, 244, 241, 0.36) !important; text-align: left !important; }
body.lgx-page .lgx-card .auth-legal-notice a { color: rgba(245, 244, 241, 0.6) !important; text-decoration: underline !important; text-underline-offset: 2px; }
body.lgx-page .lgx-card .auth-legal-notice a:hover { color: var(--lgx-text) !important; }

/* ---------------------------------------------------------------- Mot de passe oublié */
/* Panneau : étapes */
.lgx-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.lgx-tl-item { position: relative; display: flex; gap: 16px; padding: 0 0 26px; }
.lgx-tl-item:last-child { padding-bottom: 0; }
.lgx-tl-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: rgba(245, 244, 241, 0.1);
}
.lgx-tl-item:last-child::before { display: none; }
.lgx-tl-item.is-done::before { background: rgba(198, 166, 106, 0.55); }
.lgx-tl-num {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: var(--lgx-faint);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.14);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.lgx-tl-num svg { display: none; width: 16px; height: 16px; }
.lgx-tl-item.is-active .lgx-tl-num { background: var(--lgx-gold); color: #0b0a08; box-shadow: 0 0 0 6px rgba(198, 166, 106, 0.16); }
.lgx-tl-item.is-done .lgx-tl-num { background: rgba(198, 166, 106, 0.16); color: var(--lgx-gold); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.5); }
.lgx-tl-item.is-done .lgx-tl-num b { display: none; }
.lgx-tl-item.is-done .lgx-tl-num svg { display: block; }
.lgx-tl-copy { display: grid; gap: 4px; padding-top: 7px; }
.lgx-tl-copy b { font-size: 15px; font-weight: 700; color: var(--lgx-faint); transition: color 0.3s; }
.lgx-tl-copy small { font-size: 13px; line-height: 1.5; color: rgba(245, 244, 241, 0.34); transition: color 0.3s; }
.lgx-tl-item.is-active .lgx-tl-copy b, .lgx-tl-item.is-done .lgx-tl-copy b { color: var(--lgx-text); }
.lgx-tl-item.is-active .lgx-tl-copy small { color: var(--lgx-muted); }

/* Panneau : emblème bouclier */
.lgx-panel.lgx-panel--forgot { height: 600px; }
.lgx-emblem { position: absolute; right: 36px; bottom: 32px; width: 180px; height: 180px; display: grid; place-items: center; }
.lgx-ring { position: absolute; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.28); animation: lgxRing 4.5s ease-in-out infinite; }
.lgx-ring--1 { inset: 0; animation-delay: 0s; }
.lgx-ring--2 { inset: 24px; animation-delay: 0.4s; box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.38); }
.lgx-ring--3 { inset: 48px; animation-delay: 0.8s; box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.5); }
@keyframes lgxRing { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.05); opacity: 0.5; } }
.lgx-emblem-core {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(160deg, #d4b984, #a8884e);
  color: #0b0a08;
  box-shadow: 0 20px 50px -14px rgba(198, 166, 106, 0.75);
}
.lgx-emblem-core svg { width: 36px; height: 36px; }

/* Formulaire : stepper */
body.lgx-page .lgx-card .lgx-steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  justify-content: stretch !important;
  margin: 0 0 24px !important;
}
body.lgx-page .lgx-card .lgx-steps li {
  width: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--lgx-faint) !important;
  opacity: 1 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
body.lgx-page .lgx-card .lgx-steps li::before { content: ''; display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(245, 244, 241, 0.1); transition: background 0.3s; }
body.lgx-page .lgx-card .lgx-steps li.is-active::before { background: var(--lgx-gold); }
body.lgx-page .lgx-card .lgx-steps li.is-done::before { background: rgba(198, 166, 106, 0.5); }
body.lgx-page .lgx-card .lgx-steps li.is-active, body.lgx-page .lgx-card .lgx-steps li.is-done { color: var(--lgx-text) !important; }
.lgx-steps-dot { display: none; }
.lgx-steps-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* Notes */
body.lgx-page .lgx-card .lgx-note {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 14px;
  background: rgba(245, 244, 241, 0.03);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.08);
  text-align: left !important;
}
body.lgx-page .lgx-card .lgx-note svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--lgx-gold); }
body.lgx-page .lgx-card .lgx-note,
body.lgx-page .lgx-card .lgx-note .auth-hint { font-size: 12.5px !important; line-height: 1.55 !important; color: var(--lgx-muted) !important; margin: 0; text-align: left !important; }
body.lgx-page .lgx-card .lgx-note--ok { margin: 0 0 18px !important; background: rgba(198, 166, 106, 0.07); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.25); color: rgba(245, 244, 241, 0.82) !important; }
body.lgx-page .lgx-card .lgx-hint { font-size: 12px !important; font-weight: 600 !important; color: var(--lgx-faint) !important; margin: 0 !important; }

/* Code à 6 chiffres */
body.lgx-page .lgx-card .lgx-otp {
  width: 100% !important;
  height: 64px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(245, 244, 241, 0.12) !important;
  background: var(--lgx-field) !important;
  color: var(--lgx-text) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5em !important;
  text-indent: 0.5em;
  text-align: center !important;
  box-shadow: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
body.lgx-page .lgx-card .lgx-otp::placeholder { color: rgba(245, 244, 241, 0.18) !important; letter-spacing: 0.5em; }
body.lgx-page .lgx-card .lgx-otp:focus { outline: none !important; border-color: rgba(198, 166, 106, 0.75) !important; box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.14) !important; }
.lgx-links { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; color: var(--lgx-faint); }
body.lgx-page .lgx-card .lgx-links .auth-forgot-link-btn {
  margin: 0 !important;
  padding: 6px 4px !important;
  border: 0 !important;
  background: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--lgx-gold) !important;
  cursor: pointer;
}
body.lgx-page .lgx-card .lgx-links .auth-forgot-link-btn:hover { color: var(--lgx-gold-hi) !important; text-decoration: underline; text-underline-offset: 3px; }

/* Retour connexion */
.lgx-back-wrap { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--lgx-line); }
body.lgx-page .lgx-card .lgx-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 244, 241, 0.14);
  color: var(--lgx-text) !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s;
}
body.lgx-page .lgx-card .lgx-back:hover { border-color: rgba(245, 244, 241, 0.32); background: rgba(245, 244, 241, 0.03); }
body.lgx-page .lgx-card .lgx-back svg { width: 17px; height: 17px; }

/* Entrée en douceur */
@media (prefers-reduced-motion: no-preference) {
  .lgx-panel, .lgx-card { animation: lgxIn 0.7s var(--lgx-ease) both; }
  .lgx-card { animation-delay: 0.08s; }
  @keyframes lgxIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .lgx-panel-glow, .lgx-phone, .lgx-ring { animation: none; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .lgx-shell { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .lgx-panel { display: none; }
  body.lgx-page .auth-main.lgx { padding: calc(max(0.65rem, env(safe-area-inset-top, 0px)) + 84px) 16px 48px !important; }
}
@media (max-width: 420px) {
  body.lgx-page .lgx-card .lgx-switch { flex-direction: column !important; align-items: stretch !important; text-align: center !important; }
  body.lgx-page .lgx-card .lgx-switch-btn { justify-content: center; }
}
