/* ============================================================================
   Dépôt Pro SN — Page de connexion « CRÉPUSCULE » (v1.5.6)
   Design futuriste SEMI-SOMBRE : encre bleu-nuit profonde (jamais de noir
   pur), lueurs de braise orange/ambre façon lampadaires de Dakar au crépuscule,
   scène 3D CSS pure (casiers de boissons en verre néon, anneaux orbitaux
   lumineux, étoiles, ciel d'aurore, plancher en grille lumineuse), carte en
   verre sombre à bordure conique animée et lueur qui suit le pointeur.
   Uniquement transform/opacity → compositing GPU, page légère et responsive.
   ========================================================================== */

.authx {
  --ax-fond: #0b1120;
  --ax-fond-2: #0e1528;
  --ax-fond-3: #111a33;
  --ax-encre: #eef2ff;
  --ax-texte-2: #96a2c0;
  --ax-orange: #f97316;
  --ax-orange-vif: #fb923c;
  --ax-ambre: #fbbf24;
  --ax-braise: #ea580c;
  --ax-teal: #2dd4bf;
  --ax-verre: rgba(17, 24, 45, .58);
  --ax-verre-bord: rgba(148, 163, 210, .16);
  --ax-vert: #34d399;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  background: var(--ax-fond);
  color: var(--ax-encre);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  position: relative;
}

/* ============================ PANNEAU SCÈNE 3D ============================ */

.authx-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 60px;
  background:
    radial-gradient(1100px 700px at 78% -10%, rgba(234, 88, 12, .16), transparent 60%),
    radial-gradient(900px 620px at 108% 78%, rgba(251, 146, 60, .10), transparent 58%),
    radial-gradient(760px 540px at -10% 106%, rgba(45, 212, 191, .10), transparent 55%),
    linear-gradient(168deg, #10182f 0%, #0c1326 52%, #0a0f1f 100%);
  overflow: hidden;
  isolation: isolate;
}

/* « Lune » de braise : grand disque lumineux diffus derrière la scène 3D */
.authx-scene::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 44%,
      rgba(251, 146, 60, .34) 0%,
      rgba(249, 115, 22, .18) 34%,
      rgba(234, 88, 12, .07) 58%,
      transparent 74%);
  filter: blur(2px);
  animation: ax-lune 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ax-lune {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
  to { transform: translate3d(-26px, 20px, 0) scale(1.05); opacity: 1; }
}

/* Voiles d'aurore nocturne qui respirent lentement */
.authx-aurore {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(460px 320px at 22% 26%, rgba(251, 146, 60, .13), transparent 70%),
    radial-gradient(560px 400px at 74% 68%, rgba(45, 212, 191, .12), transparent 70%),
    radial-gradient(420px 300px at 58% 10%, rgba(251, 191, 36, .12), transparent 70%),
    radial-gradient(500px 380px at 8% 84%, rgba(129, 140, 248, .10), transparent 70%);
  animation: ax-respire 11s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ax-respire {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); opacity: .8; }
  to { transform: translate3d(2.5%, 2%, 0) scale(1.06); opacity: 1; }
}

/* Champ d'étoiles scintillant + une étoile filante */
.authx-confettis {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2.2px 2.2px at 12% 22%, rgba(251, 191, 36, .75), transparent 55%),
    radial-gradient(1.6px 1.6px at 34% 8%, rgba(148, 222, 255, .8), transparent 55%),
    radial-gradient(2.4px 2.4px at 58% 16%, rgba(251, 146, 60, .8), transparent 55%),
    radial-gradient(1.7px 1.7px at 76% 6%, rgba(230, 255, 250, .7), transparent 55%),
    radial-gradient(2.1px 2.1px at 88% 30%, rgba(45, 212, 191, .7), transparent 55%),
    radial-gradient(1.5px 1.5px at 22% 46%, rgba(244, 114, 182, .55), transparent 55%),
    radial-gradient(2.3px 2.3px at 66% 44%, rgba(251, 191, 36, .65), transparent 55%),
    radial-gradient(1.6px 1.6px at 92% 56%, rgba(148, 163, 255, .7), transparent 55%),
    radial-gradient(1.8px 1.8px at 44% 62%, rgba(255, 237, 213, .6), transparent 55%),
    radial-gradient(2px 2px at 8% 70%, rgba(45, 212, 191, .6), transparent 55%);
  animation: ax-scintille 5.5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ax-scintille {
  from { opacity: .55; }
  to { opacity: 1; }
}

/* Étoile filante : fine traînée lumineuse qui traverse le ciel */
.authx-confettis::after {
  content: '';
  position: absolute;
  top: 18%;
  left: -12%;
  width: 190px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 210, .95), transparent);
  transform: rotate(-16deg);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, .8));
  animation: ax-etoile-filante 9s ease-in 3s infinite;
  opacity: 0;
  pointer-events: none;
}
@keyframes ax-etoile-filante {
  0% { transform: translate3d(0, 0, 0) rotate(-16deg); opacity: 0; }
  4% { opacity: 1; }
  16% { transform: translate3d(360px, 96px, 0) rotate(-16deg); opacity: 0; }
  100% { transform: translate3d(360px, 96px, 0) rotate(-16deg); opacity: 0; }
}

/* Plancher en grille lumineuse (horizon futuriste nocturne) */
.authx-sol {
  position: absolute;
  inset: auto -30% -34% -30%;
  height: 78%;
  background-image:
    linear-gradient(rgba(251, 146, 60, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 146, 60, .22) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(560px) rotateX(63deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 78%);
  animation: ax-defile-sol 3.4s linear infinite;
  pointer-events: none;
}
@keyframes ax-defile-sol {
  to { background-position: 0 56px, 0 0; }
}

/* ---------- CUBES 3D (casiers de boissons en verre néon) ---------- */
.authx-cubes {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 340px;
  height: 340px;
  perspective: 950px;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(var(--ax-par-x, 0), var(--ax-par-y, 0), 0);
  transition: transform .3s ease-out;
}
.cube3d {
  position: absolute;
  transform-style: preserve-3d;
}
.cube3d .face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid;
  /* Verre sombre translucide : la lumière vient des arêtes et du cœur coloré */
  background:
    radial-gradient(120% 120% at 30% 22%, rgba(255, 255, 255, .13), transparent 46%),
    linear-gradient(155deg, rgba(23, 32, 58, .78), rgba(13, 19, 38, .66) 58%, rgba(20, 28, 52, .72));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .82rem;
  color: #f4f7ff;
  /* Halo interne doux pour détacher le texte du verre sombre */
  text-shadow:
    0 0 12px rgba(244, 247, 255, .38),
    0 2px 10px rgba(4, 8, 20, .8);
}
.cube3d .face small {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .3em;
  color: rgba(226, 232, 255, .55);
  margin-top: 5px;
  text-shadow: 0 0 8px rgba(4, 8, 20, .9);
}
/* Accent par famille de boisson : arête néon + cœur lumineux + lueur projetée */
.cube3d .p-biere { border-color: rgba(251, 191, 36, .75); box-shadow: inset 0 0 34px rgba(251, 191, 36, .22), 0 0 22px rgba(251, 191, 36, .16); }
.cube3d .p-soda  { border-color: rgba(249, 115, 22, .8);  box-shadow: inset 0 0 34px rgba(249, 115, 22, .24), 0 0 24px rgba(249, 115, 22, .18); }
.cube3d .p-jus   { border-color: rgba(250, 204, 21, .7);  box-shadow: inset 0 0 34px rgba(250, 204, 21, .2), 0 0 20px rgba(250, 204, 21, .14); }
.cube3d .p-eau   { border-color: rgba(56, 189, 248, .7);  box-shadow: inset 0 0 34px rgba(56, 189, 248, .2), 0 0 22px rgba(56, 189, 248, .15); }
.cube3d .p-vin   { border-color: rgba(251, 113, 133, .7); box-shadow: inset 0 0 34px rgba(251, 113, 133, .2), 0 0 22px rgba(251, 113, 133, .15); }
.cube3d .p-snack { border-color: rgba(45, 212, 191, .72); box-shadow: inset 0 0 34px rgba(45, 212, 191, .2), 0 0 22px rgba(45, 212, 191, .15); }

/* Anneaux orbitaux elliptiques lumineux autour du cube principal */
.authx-anneau {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 146, 60, .42);
  transform-style: preserve-3d;
  box-shadow:
    0 0 18px rgba(249, 115, 22, .18),
    inset 0 0 18px rgba(249, 115, 22, .12);
}
.authx-anneau.a1 {
  inset: 4px;
  transform: rotateX(74deg) rotateZ(0deg);
  animation: ax-orbite 13s linear infinite;
}
.authx-anneau.a2 {
  inset: 34px;
  border-color: rgba(45, 212, 191, .45);
  box-shadow:
    0 0 18px rgba(45, 212, 191, .16),
    inset 0 0 18px rgba(45, 212, 191, .1);
  transform: rotateX(68deg) rotateY(14deg);
  animation: ax-orbite-inv 17s linear infinite;
}
@keyframes ax-orbite {
  from { transform: rotateX(74deg) rotateZ(0deg); }
  to { transform: rotateX(74deg) rotateZ(360deg); }
}
@keyframes ax-orbite-inv {
  from { transform: rotateX(68deg) rotateY(14deg) rotateZ(360deg); }
  to { transform: rotateX(68deg) rotateY(14deg) rotateZ(0deg); }
}

/* Cube principal — « le casier » */
.cube3d.principal {
  inset: 40px;
  animation: ax-tourne 16s linear infinite;
}
.cube3d.principal .face { border-radius: 14px; }
.cube3d.principal .f1 { transform: translateZ(130px); }
.cube3d.principal .f2 { transform: rotateY(180deg) translateZ(130px); }
.cube3d.principal .f3 { transform: rotateY(90deg) translateZ(130px); }
.cube3d.principal .f4 { transform: rotateY(-90deg) translateZ(130px); }
.cube3d.principal .f5 { transform: rotateX(90deg) translateZ(130px); }
.cube3d.principal .f6 { transform: rotateX(-90deg) translateZ(130px); }
@keyframes ax-tourne {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}
/* Cube secondaire plus petit, déphasé, comme un satellite éclairé */
.cube3d.secondaire {
  left: -46px;
  bottom: -30px;
  width: 118px;
  height: 118px;
  animation: ax-tourne-inv 11s linear infinite;
}
.cube3d.secondaire .face {
  border-radius: 10px;
  font-size: .6rem;
  color: #ffd9ae;
  border-color: rgba(249, 115, 22, .55);
  box-shadow: inset 0 0 26px rgba(249, 115, 22, .2), 0 0 16px rgba(249, 115, 22, .14);
  text-shadow: 0 0 10px rgba(249, 115, 22, .55);
}
.cube3d.secondaire .f1 { transform: translateZ(59px); }
.cube3d.secondaire .f2 { transform: rotateY(180deg) translateZ(59px); }
.cube3d.secondaire .f3 { transform: rotateY(90deg) translateZ(59px); }
.cube3d.secondaire .f4 { transform: rotateY(-90deg) translateZ(59px); }
.cube3d.secondaire .f5 { transform: rotateX(90deg) translateZ(59px); }
.cube3d.secondaire .f6 { transform: rotateX(-90deg) translateZ(59px); }
@keyframes ax-tourne-inv {
  from { transform: rotateX(24deg) rotateY(360deg); }
  to { transform: rotateX(24deg) rotateY(0deg); }
}

/* Puces flottantes (atouts produit autour de la scène 3D) — verre nocturne */
.puce3d {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #dbe3fb;
  background: linear-gradient(160deg, rgba(23, 32, 58, .82), rgba(13, 19, 38, .74));
  border: 1px solid rgba(148, 163, 210, .2);
  box-shadow:
    0 12px 30px rgba(2, 6, 18, .55),
    0 0 16px rgba(249, 115, 22, .1),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: ax-flotte 6.5s ease-in-out infinite alternate;
}
.puce3d .ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #fdba74;
  background: rgba(249, 115, 22, .16);
  box-shadow: inset 0 0 10px rgba(249, 115, 22, .22);
}
.puce3d .ico svg { width: 14px; height: 14px; }
.puce3d.pp1 { top: 4%; left: 6%; }
.puce3d.pp2 { bottom: 10%; right: -4%; animation-delay: -2.2s; }
.puce3d.pp3 { bottom: -2%; left: 16%; animation-delay: -4.1s; }
@keyframes ax-flotte {
  from { transform: translate3d(0, -10px, 0); }
  to { transform: translate3d(8px, 12px, 0); }
}

/* ---------- Contenu du panneau ---------- */
.authx-marque {
  position: relative;
  z-index: 2;
  max-width: 520px;
}
.authx-pastille {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, .3);
  background: linear-gradient(160deg, rgba(23, 32, 58, .8), rgba(13, 19, 38, .66));
  color: #fdba74;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 26px;
  box-shadow: 0 0 20px rgba(249, 115, 22, .1), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.authx-pastille .point {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ax-vert);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .16), 0 0 10px rgba(52, 211, 153, .9);
  animation: ax-pulse 1.8s ease-in-out infinite;
}
@keyframes ax-pulse {
  50% { opacity: .35; transform: scale(.75); }
}
.authx-titre {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 800;
  color: #f5f7ff;
  text-shadow: 0 2px 30px rgba(2, 6, 18, .6);
}
/* Dégradé braise lumineux — la « lumière du dépôt » dans la nuit */
.authx-titre .degrade {
  background: linear-gradient(94deg, #fb923c 0%, #f97316 38%, #fbbf24 78%, #fde68a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(249, 115, 22, .28));
  animation: ax-brille 5s ease-in-out infinite alternate;
}
@keyframes ax-brille {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}
.authx-sous {
  color: var(--ax-texte-2);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 34px;
  max-width: 460px;
}
.authx-atouts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.authx-atouts li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: .9rem;
  color: #c3cdea;
}
.authx-atouts .ico {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fdba74;
  background: linear-gradient(160deg, rgba(23, 32, 58, .9), rgba(13, 19, 38, .8));
  border: 1px solid rgba(251, 146, 60, .28);
  box-shadow: 0 0 18px rgba(249, 115, 22, .12), inset 0 0 12px rgba(249, 115, 22, .08);
}
.authx-atouts .ico svg { width: 19px; height: 19px; }
/* Statistiques en bandeau */
.authx-stats {
  display: flex;
  gap: 30px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 210, .14);
}
.authx-stats .stat b {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  color: #f5f7ff;
}
.authx-stats .stat span {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ax-texte-2);
}

/* ============================ PANNEAU FORMULAIRE ============================ */

.authx-formulaire {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 30px;
  background:
    radial-gradient(860px 540px at 118% -6%, rgba(249, 115, 22, .13), transparent 56%),
    radial-gradient(700px 500px at -18% 104%, rgba(45, 212, 191, .09), transparent 52%),
    linear-gradient(200deg, #0d1428, #0a101f 74%);
}
/* Trame technique sombre et discrète */
.authx-formulaire::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 210, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 210, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, transparent 30%, #000 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 90%);
  pointer-events: none;
}
/* Halo diffus derrière la carte — comme un lampadaire au crépuscule */
.authx-formulaire::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249, 115, 22, .07) 0%, transparent 62%);
  pointer-events: none;
}

/* Carte verre nocturne avec inclinaison 3D */
.authx-carte-zone {
  width: 100%;
  max-width: 430px;
  perspective: 1100px;
  position: relative;
  z-index: 1;
}
.authx-carte {
  position: relative;
  padding: 36px 34px 30px;
  border-radius: 24px;
  background:
    radial-gradient(130% 110% at 24% 0%, rgba(255, 255, 255, .05), transparent 42%),
    linear-gradient(168deg, rgba(21, 29, 54, .82), rgba(13, 19, 38, .72) 52%, rgba(17, 25, 48, .78));
  border: 1px solid rgba(148, 163, 210, .16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 40px 110px rgba(2, 6, 18, .65),
    0 12px 34px rgba(2, 6, 18, .5),
    0 0 40px rgba(249, 115, 22, .05),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  transform-style: preserve-3d;
  transform: rotateX(var(--ax-rot-x, 0deg)) rotateY(var(--ax-rot-y, 0deg));
  transition: transform .18s ease-out;
  will-change: transform;
}
/* Bordure conique animée — braise qui circule sur le pourtour de la carte */
.authx-carte::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 25px;
  padding: 1.5px;
  background: conic-gradient(from var(--ax-angle, 0deg),
    rgba(249, 115, 22, 0) 0deg, rgba(249, 115, 22, .75) 58deg, rgba(251, 191, 36, .85) 106deg,
    rgba(45, 212, 191, .45) 150deg,
    rgba(249, 115, 22, 0) 208deg, rgba(249, 115, 22, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ax-conique 6s linear infinite;
  pointer-events: none;
}
@property --ax-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes ax-conique {
  to { --ax-angle: 360deg; }
}
/* Lueur chaude qui suit le pointeur */
.authx-carte::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(340px circle at var(--ax-mx, 50%) var(--ax-my, 0%), rgba(249, 115, 22, .12), transparent 62%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.authx-carte-zone:hover .authx-carte::after { opacity: 1; }

/* En-tête de carte */
.authx-entete {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  transform: translateZ(30px);
}
.authx-logo {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #fb923c, #ea580c 55%, #c2410c);
  box-shadow:
    0 0 26px rgba(249, 115, 22, .42),
    0 14px 30px rgba(2, 6, 18, .5),
    inset 0 1px 0 rgba(255, 255, 255, .45);
  position: relative;
}
.authx-logo svg { width: 27px; height: 27px; }
.authx-logo::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 1.5px dashed rgba(251, 146, 60, .5);
  animation: ax-rotation-cadre 14s linear infinite;
}
@keyframes ax-rotation-cadre {
  to { transform: rotate(360deg); }
}
.authx-entete h2 {
  margin: 0;
  font-size: 1.42rem;
  letter-spacing: -.02em;
  color: #f5f7ff;
}
.authx-entete p {
  margin: 3px 0 0;
  font-size: .84rem;
  color: var(--ax-texte-2);
}

/* Champs futuristes nocturnes */
.authx-champ { margin-bottom: 18px; transform: translateZ(22px); }
.authx-champ label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ax-texte-2);
  margin-bottom: 8px;
}
.authx-champ label b { color: #fb923c; }
.authx-saisie {
  position: relative;
}
.authx-saisie input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  font: inherit;
  color: #eef2ff;
  background: rgba(8, 12, 26, .72);
  border: 1px solid rgba(148, 163, 210, .18);
  border-radius: 13px;
  outline: none;
  box-shadow: inset 0 2px 10px rgba(2, 6, 18, .55);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.authx-saisie input::placeholder { color: #5d6a8f; }
.authx-saisie input:focus {
  border-color: rgba(249, 115, 22, .65);
  background: rgba(10, 15, 32, .92);
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, .14),
    0 0 24px rgba(249, 115, 22, .12),
    inset 0 2px 10px rgba(2, 6, 18, .5);
}
.authx-saisie .ico-champ {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: #5d6a8f;
  transition: color .16s ease, filter .16s ease;
  pointer-events: none;
}
.authx-saisie input:focus ~ .ico-champ,
.authx-saisie:focus-within .ico-champ { color: #fb923c; filter: drop-shadow(0 0 8px rgba(249, 115, 22, .6)); }
.authx-erreur-champ {
  margin-top: 7px;
  font-size: .8rem;
  color: #fda4af;
}
.authx-champ.invalide input {
  border-color: rgba(248, 113, 113, .6);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, .12), inset 0 2px 10px rgba(2, 6, 18, .55);
}

/* Message d'erreur global — verre rouge nocturne */
.authx-alerte {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(69, 14, 22, .72), rgba(47, 11, 16, .66));
  border: 1px solid rgba(248, 113, 113, .38);
  color: #fecdd3;
  font-size: .86rem;
  line-height: 1.55;
  box-shadow: 0 0 22px rgba(248, 113, 113, .1), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: ax-secousse .4s ease;
}
.authx-alerte svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; color: #fb7185; }
@keyframes ax-secousse {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-6px); }
  44% { transform: translateX(5px); }
  66% { transform: translateX(-3px); }
}

/* Rangée options */
.authx-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 22px;
  font-size: .82rem;
  transform: translateZ(22px);
}
.authx-case {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #aab5d6;
  cursor: pointer;
  user-select: none;
}
.authx-case input {
  appearance: none;
  width: 17px; height: 17px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 210, .32);
  background: rgba(8, 12, 26, .7);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.authx-case input::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 2.5px;
  background: #fff;
  transform: scale(0);
  transition: transform .14s ease;
}
.authx-case input:checked {
  background: linear-gradient(140deg, #f97316, #c2410c);
  border-color: #ea580c;
  box-shadow: 0 0 12px rgba(249, 115, 22, .45);
}
.authx-case input:checked::before { transform: scale(1); }
.authx-options a {
  color: #fdba74;
  font-weight: 600;
  text-decoration: none;
  transition: color .14s ease, text-shadow .14s ease;
}
.authx-options a:hover { color: #fbbf24; text-decoration: underline; text-shadow: 0 0 14px rgba(251, 191, 36, .5); }

/* Bouton de connexion 3D — braise lumineuse dans la nuit */
.authx-bouton {
  position: relative;
  width: 100%;
  padding: 15px 20px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(140deg, #fb923c, #f97316 45%, #ea580c 90%);
  box-shadow:
    0 0 34px rgba(249, 115, 22, .4),
    0 18px 36px rgba(2, 6, 18, .55),
    inset 0 1px 0 rgba(255, 255, 255, .38),
    0 4px 0 #9a3412;
  transform: translateZ(34px);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
  overflow: hidden;
}
.authx-bouton svg { width: 18px; height: 18px; }
.authx-bouton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}
.authx-bouton:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 48px rgba(249, 115, 22, .55),
    0 18px 36px rgba(2, 6, 18, .55),
    inset 0 1px 0 rgba(255, 255, 255, .38),
    0 4px 0 #9a3412;
}
.authx-bouton:hover::after { transform: translateX(120%); }
.authx-bouton:active {
  transform: translateZ(34px) translateY(3px);
  box-shadow:
    0 0 24px rgba(249, 115, 22, .35),
    0 8px 18px rgba(2, 6, 18, .5),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 1px 0 #9a3412;
}
.authx-bouton:disabled { opacity: .65; cursor: wait; }

/* Pied de carte */
.authx-pied-carte {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 210, .13);
  font-size: .74rem;
  line-height: 1.75;
  color: #8b97b8;
  text-align: center;
  transform: translateZ(12px);
}
.authx-pied-carte .couronne { color: #fbbf24; font-weight: 700; }
.authx-pied-carte code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .92em;
  color: #c7d1ec;
  background: rgba(8, 12, 26, .72);
  border: 1px solid rgba(148, 163, 210, .18);
  border-radius: 6px;
  padding: 1px 6px;
}
.authx-pied-carte .version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 210, .18);
  background: rgba(13, 19, 38, .7);
  letter-spacing: .08em;
  font-weight: 600;
}

/* Apparitions en cascade */
.authx-anim {
  animation: ax-apparait .65s cubic-bezier(.22, .9, .32, 1) both;
}
.authx-anim.d1 { animation-delay: .07s; }
.authx-anim.d2 { animation-delay: .15s; }
.authx-anim.d3 { animation-delay: .23s; }
.authx-anim.d4 { animation-delay: .31s; }
.authx-anim.d5 { animation-delay: .4s; }
@keyframes ax-apparait {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Sur la carte, les animations préservent la profondeur 3D */
.authx-carte .authx-anim { transform-style: preserve-3d; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .authx { grid-template-columns: 1fr; overflow-y: auto; }
  .authx-scene { padding: 42px 30px 40px; min-height: 0; }
  .authx-cubes { transform: scale(.62); transform-origin: top right; top: 2%; right: -6%; opacity: .9; }
  .authx-sol { height: 52%; }
  .authx-atouts { display: none; }
  .authx-stats { margin-top: 24px; }
  .authx-formulaire { padding: 30px 20px 46px; }
  .authx-carte { padding: 28px 22px 24px; }
  .authx-formulaire::after { width: 480px; height: 480px; }
}
@media (max-width: 480px) {
  .authx-scene { padding: 32px 20px 26px; }
  .authx-cubes { transform: scale(.5); }
  .authx-titre { font-size: 1.9rem; }
  .authx-stats { gap: 20px; }
  .puce3d { display: none; }
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .authx *, .authx *::before, .authx *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .authx-sol { animation: none; }
  .authx-carte { transform: none; }
  .authx-cubes { transform: none; }
}
