/* ================================================================
   auth.css — Pages Login / Register LexaMoon
   Design : deux colonnes glassmorphism, bordure conic animée,
   stagger d'entrée, input glow, décorations sparkles
================================================================ */

/* ── Canvas particules partagé ─────────────────────────────── */
#auth-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .7;
}

/* ── Page root ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  padding: 2rem 1.25rem 3rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* ── Header (retour + logo) ────────────────────────────────── */
.auth-head {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t3);
  transition: color .2s, transform .25s cubic-bezier(.22,.68,0,1.2);
  padding: .35rem .75rem .35rem .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.auth-back:hover {
  color: var(--t1);
  transform: translateX(-3px);
  background: rgba(255,255,255,.06);
}
.auth-brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.04em;
}

/* ── Layout 2 colonnes ─────────────────────────────────────── */
.auth-shell {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 4rem;
  align-items: center;
  padding: 1.5rem 0;
}

/* ── Colonne brand (gauche) ────────────────────────────────── */
.auth-pitch {
  display: flex;
  flex-direction: column;
}
.auth-pitch > * {
  opacity: 0;
  transform: translateY(14px);
  animation: authFadeUp .7s cubic-bezier(.22,.85,.35,1) forwards;
}
.auth-pitch > .auth-eyebrow  { animation-delay: .10s; }
.auth-pitch > .auth-title    { animation-delay: .18s; }
.auth-pitch > .auth-lead     { animation-delay: .26s; }
/* .auth-bullets container : pas d'animation parent (les <li> gèrent) */
.auth-pitch > .auth-bullets  { opacity: 1; transform: none; animation: none; }
.auth-pitch > .auth-trust    { animation-delay: .70s; }
@keyframes authFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.25);
  color: #a78bfa;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.auth-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 6px #a78bfa;
  animation: authDotPulse 2s ease infinite;
}
@keyframes authDotPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 6px #a78bfa; }
  50%     { opacity: .5; box-shadow: 0 0 2px #a78bfa; }
}

.auth-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.auth-title .gtext {
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fcd34d, #f59e0b, #fbbf24);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: authGradShift 7s linear infinite;
}
@keyframes authGradShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 220% 0%; }
}
.auth-lead {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 0 1.75rem;
}

/* Liste des bénéfices */
.auth-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.auth-bullet {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t2);
  opacity: 0;
  transform: translateX(-10px);
  animation: authBulletIn .55s cubic-bezier(.22,.85,.35,1) forwards;
}
/* Stagger interne — se cumule avec le delay .34s de .auth-bullets */
.auth-bullet:nth-child(1) { animation-delay: .42s; }
.auth-bullet:nth-child(2) { animation-delay: .50s; }
.auth-bullet:nth-child(3) { animation-delay: .58s; }
.auth-bullet:nth-child(4) { animation-delay: .66s; }
@keyframes authBulletIn {
  to { opacity: 1; transform: translateX(0); }
}
.auth-bullet-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(74,222,128,.12);
  border: 1px solid rgba(74,222,128,.3);
  color: #4ade80;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .3s, background .3s;
}
.auth-bullet:hover .auth-bullet-check {
  transform: scale(1.15) rotate(-8deg);
  background: rgba(74,222,128,.2);
}
.auth-bullet strong { color: var(--t1); font-weight: 800; }

/* Trust strip compact */
.auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.auth-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.auth-trust-pill svg { color: var(--pl); flex-shrink: 0; }

/* ── Colonne formulaire (droite) ───────────────────────────── */
/* Registered custom property pour animer l'angle du conic-gradient */
@property --auth-ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.auth-form-col {
  position: relative;
  opacity: 0;
  transform: translateY(22px) scale(.98);
  animation: authCardIn .8s cubic-bezier(.22,.85,.35,1) .25s forwards;
}
@keyframes authCardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ Carte form : bordure gradient + halo doux ============ */
.auth-card {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124,58,237,.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(22,12,48,.92) 0%, rgba(12,6,28,.94) 100%);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  border-radius: 24px;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    0 8px 24px rgba(124,58,237,.18),
    0 0 0 1px rgba(255,255,255,.05) inset;
  overflow: hidden;
  isolation: isolate;
}

/* Bordure conique animée : on anime l'angle du conic-gradient lui-même,
   pas l'élément — résultat : halo lumineux qui tourne parfaitement le long
   du bord arrondi sans artefact de masque. */
.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--auth-ang, 0deg),
    transparent 0deg,
    rgba(124,58,237,.85) 60deg,
    rgba(167,139,250,.6)  110deg,
    rgba(245,158,11,.75)  170deg,
    rgba(124,58,237,.35)  230deg,
    transparent 300deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation:
    authBorderSweep 6s linear infinite,
    authBorderFadeIn 1s ease-out .35s forwards;
}
@keyframes authBorderSweep {
  to { --auth-ang: 360deg; }
}
@keyframes authBorderFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Halo pulsant autour de la carte (pseudo du conteneur, évite markup) */
.auth-form-col::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 34px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(124,58,237,.30) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(245,158,11,.14) 0%, transparent 70%);
  filter: blur(28px);
  opacity: 0;
  z-index: -1;
  animation: authGlowIn 1.2s ease-out .5s forwards, authGlowPulse 5s ease-in-out 1.8s infinite;
  pointer-events: none;
}
@keyframes authGlowIn {
  to { opacity: 1; }
}
@keyframes authGlowPulse {
  0%,100% { transform: scale(1);    opacity: .9; }
  50%     { transform: scale(1.03); opacity: 1;  }
}

/* Surface gradient subtile par dessus */
.auth-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.06) 0%, transparent 45%),
    linear-gradient(135deg, rgba(255,255,255,.03) 0%, transparent 55%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}
.auth-card > * { position: relative; z-index: 3; }

/* En-tête de carte */
.auth-card-hd {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-card-icon {
  width: 54px; height: 54px;
  margin: 0 auto .85rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(167,139,250,.08));
  border: 1px solid rgba(124,58,237,.3);
  display: flex; align-items: center; justify-content: center;
  color: #a78bfa;
  box-shadow: 0 10px 30px rgba(124,58,237,.2);
  animation: authIconFloat 4.5s ease-in-out 1.1s infinite;
}
@keyframes authIconFloat {
  0%,100% { transform: translateY(0) rotate(0); }
  50%     { transform: translateY(-5px) rotate(-2deg); }
}
.auth-card-hd h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.035em;
  margin: 0 0 4px;
  color: var(--t1);
}
.auth-card-hd p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.55;
  margin: 0;
}

/* ── Alertes ───────────────────────────────────────────────── */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 1rem;
  animation: authAlertIn .4s cubic-bezier(.22,.68,0,1.2);
}
@keyframes authAlertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.auth-alert svg { flex-shrink: 0; margin-top: 1px; }
.auth-alert--error {
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.25);
  color: #fca5a5;
}
.auth-alert--success {
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.25);
  color: #86efac;
}
.auth-alert--warn {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  color: #fcd34d;
}
/* ============ Bloc "compte introuvable" — état vide soigné ============ */
.auth-notfound-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.15rem 1.15rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(245,158,11,.10) 0%, transparent 65%),
    linear-gradient(160deg, rgba(248,113,113,.08) 0%, rgba(124,58,237,.06) 100%);
  border: 1px solid rgba(248,113,113,.22);
  box-shadow:
    0 12px 28px rgba(0,0,0,.3),
    0 0 0 1px rgba(255,255,255,.03) inset;
  overflow: hidden;
  animation: authNfIn .55s cubic-bezier(.22,.85,.35,1);
}
@keyframes authNfIn {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
/* Shimmer diagonal qui traverse la carte au chargement */
.auth-notfound-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-18deg);
  animation: authNfShimmer 2.2s ease-out .4s 1;
  pointer-events: none;
}
@keyframes authNfShimmer {
  0%   { left: -60%; }
  100% { left: 160%; }
}

/* Badge icône avec halo pulsant */
.auth-nf-badge {
  flex-shrink: 0;
  position: relative;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(248,113,113,.22), rgba(245,158,11,.12));
  border: 1px solid rgba(248,113,113,.35);
  color: #fca5a5;
  box-shadow: 0 6px 20px rgba(248,113,113,.2);
}
.auth-nf-badge-pulse {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1.5px solid rgba(248,113,113,.45);
  opacity: 0;
  animation: authNfPulse 2.4s ease-out .6s infinite;
}
@keyframes authNfPulse {
  0%   { transform: scale(.85); opacity: .8; }
  100% { transform: scale(1.3); opacity: 0;  }
}

.auth-nf-body {
  flex: 1;
  min-width: 0;
}
.auth-nf-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--t1);
  margin: 0 0 .2rem;
  letter-spacing: -.015em;
}
.auth-nf-sub {
  font-size: 12px;
  color: var(--t3);
  margin: 0 0 .55rem;
  line-height: 1.45;
}

/* Chip email : un vrai "code inline" avec icône */
.auth-nf-email {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 100%;
  padding: .35rem .65rem;
  margin-bottom: .85rem;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t1);
}
.auth-nf-email svg { color: var(--pl); flex-shrink: 0; }
.auth-nf-email span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-nf-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

/* CTA principal — gradient violet→ambre avec shimmer interne */
.auth-nf-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #f59e0b 100%);
  background-size: 220% 100%;
  background-position: 0% 0%;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow:
    0 8px 24px rgba(124,58,237,.4),
    0 0 0 1px rgba(255,255,255,.06) inset;
  transition: background-position .5s, box-shadow .25s, transform .2s;
  overflow: hidden;
}
.auth-nf-cta:hover {
  background-position: 100% 0%;
  box-shadow:
    0 12px 32px rgba(245,158,11,.45),
    0 0 0 1px rgba(255,255,255,.1) inset;
}
.auth-nf-cta:active { transform: scale(.97); }
.auth-nf-cta-arrow { transition: transform .25s cubic-bezier(.22,.68,0,1.2); }
.auth-nf-cta:hover .auth-nf-cta-arrow { transform: translateX(3px); }

/* Lien secondaire "autre adresse" */
.auth-nf-retry {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .85rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--t2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.auth-nf-retry:hover {
  color: var(--t1);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}
.auth-nf-retry svg { color: var(--t3); transition: color .2s, transform .3s; }
.auth-nf-retry:hover svg { color: var(--pl); transform: rotate(-30deg); }

/* ── Inputs améliorés ──────────────────────────────────────── */
.auth-field {
  position: relative;
  margin-bottom: 1rem;
}
.auth-field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: .45rem;
}
.auth-input-wrap {
  position: relative;
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  pointer-events: none;
  transition: color .25s;
  z-index: 2;
}
.auth-input {
  width: 100%;
  padding: .85rem 1rem .85rem 2.7rem;
  font-size: 14px;
  color: var(--t1);
  background: rgba(255,255,255,.03);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 12px;
  transition: border-color .25s, background .25s, box-shadow .3s;
  outline: none;
  font-family: inherit;
}
.auth-input::placeholder { color: var(--t3); }
.auth-input:hover {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.auth-input:focus {
  border-color: rgba(124,58,237,.55);
  background: rgba(124,58,237,.05);
  box-shadow: 0 0 0 4px rgba(124,58,237,.14);
}
.auth-input:focus + .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
  color: #a78bfa;
}
.auth-input.input-error {
  border-color: rgba(248,113,113,.55);
  background: rgba(248,113,113,.04);
  box-shadow: 0 0 0 4px rgba(248,113,113,.12);
}
.auth-field-error {
  display: none;
  margin-top: .45rem;
  font-size: 11.5px;
  font-weight: 600;
  color: #fca5a5;
}
.auth-field-error.is-visible { display: flex; align-items: center; gap: .35rem; }

/* ── CTA submit magnétique ─────────────────────────────────── */
.auth-submit {
  width: 100%;
  margin-top: .5rem;
  position: relative;
  overflow: hidden;
}
.auth-submit .auth-submit-arrow {
  display: inline-flex;
  margin-left: .5rem;
  transition: transform .3s cubic-bezier(.22,.68,0,1.2);
}
.auth-submit:hover .auth-submit-arrow { transform: translateX(4px); }

/* Shimmer sur le bouton */
.auth-submit-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: skewX(-18deg);
  animation: authShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes authShimmer {
  0%   { left: -100%; }
  45%  { left: 170%; }
  100% { left: 170%; }
}

/* ── Divider & switch link ────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t3);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--t2);
  margin: 0;
}
.auth-switch a {
  color: #a78bfa;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
.auth-switch a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: linear-gradient(90deg, #a78bfa, #fbbf24);
  transition: right .3s cubic-bezier(.22,.68,0,1.2);
}
.auth-switch a:hover { color: #fbbf24; }
.auth-switch a:hover::after { right: 0; }

/* ── Checkboxes (register) ─────────────────────────────────── */
.auth-checks {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 1.25rem 0;
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.02);
  transition: border-color .25s, background .25s;
}
.auth-check:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
.auth-check input[type=checkbox] { display: none; }
.auth-check-box {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
  position: relative;
}
.auth-check-box::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .25s cubic-bezier(.22,.68,0,1.2);
  margin-top: -2px;
}
.auth-check input:checked + .auth-check-box {
  background: linear-gradient(135deg, var(--pl), #a78bfa);
  border-color: var(--pl);
}
.auth-check input:checked + .auth-check-box::after {
  transform: rotate(-45deg) scale(1);
}
.auth-check-label {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--t2);
}
.auth-check-label a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(167,139,250,.3);
  text-underline-offset: 2px;
}
.auth-check-label a:hover { color: #fbbf24; text-decoration-color: rgba(251,191,36,.5); }
.auth-check-label strong { color: var(--t1); }
.req-star { color: var(--am); font-weight: 900; }
.auth-check.is-error { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.04); }
.auth-check.is-error .auth-check-box { border-color: rgba(248,113,113,.6); }

/* ── Disclaimer bas ────────────────────────────────────────── */
.auth-foot {
  width: 100%;
  max-width: 1040px;
  margin: 1.5rem auto 0;
}
.auth-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  background: rgba(245,158,11,.04);
  border: 1px solid rgba(245,158,11,.15);
  border-radius: 12px;
  font-size: 11.5px;
  color: var(--t2);
  line-height: 1.6;
}
.auth-disclaimer svg {
  flex-shrink: 0;
  color: var(--am);
  margin-top: 2px;
}
.auth-disclaimer strong { color: var(--am); }

/* ── Light theme overrides ─────────────────────────────────── */
html.light .auth-card {
  background: rgba(255,255,255,.9);
  box-shadow: 0 20px 60px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.04) inset;
}
html.light .auth-input {
  background: rgba(0,0,0,.02);
  border-color: rgba(0,0,0,.08);
  color: #1a1033;
}
html.light .auth-input:focus {
  background: rgba(124,58,237,.04);
}
html.light .auth-check {
  background: rgba(0,0,0,.015);
  border-color: rgba(0,0,0,.05);
}
html.light .auth-back {
  background: rgba(255,255,255,.6);
  border-color: rgba(0,0,0,.06);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 480px;
  }
  .auth-pitch {
    text-align: center;
  }
  .auth-eyebrow,
  .auth-bullets,
  .auth-trust {
    display: none;
  }
  .auth-title { font-size: clamp(26px, 6vw, 34px); }
  .auth-lead {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .auth-page { padding: 1rem 1rem 2rem; }
  .auth-card { padding: 1.75rem 1.4rem 1.4rem; }
  .auth-head { flex-direction: row; }
  /* Compact le bloc "compte introuvable" sur mobile */
  .auth-notfound-card {
    padding: 1rem .9rem;
    gap: .75rem;
  }
  .auth-nf-badge { width: 42px; height: 42px; border-radius: 12px; }
  .auth-nf-badge svg { width: 19px; height: 19px; }
  .auth-nf-title { font-size: 14px; }
  .auth-nf-actions { flex-direction: column; align-items: stretch; }
  .auth-nf-cta, .auth-nf-retry { justify-content: center; width: 100%; }
}

/* Light theme overrides pour le bloc notfound */
html.light .auth-notfound-card {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(245,158,11,.08) 0%, transparent 65%),
    linear-gradient(160deg, rgba(248,113,113,.05) 0%, rgba(124,58,237,.04) 100%);
  border-color: rgba(248,113,113,.25);
}
html.light .auth-nf-email {
  background: rgba(0,0,0,.035);
  border-color: rgba(0,0,0,.08);
}
html.light .auth-nf-retry {
  border-color: rgba(0,0,0,.08);
}
html.light .auth-nf-retry:hover {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.15);
}

/* ── Bannière statut Brevo ─────────────────────────────────── */
.brevo-banner {
  display: flex; align-items: flex-start; gap: .85rem;
  background: linear-gradient(135deg, rgba(234,179,8,.12) 0%, rgba(245,158,11,.07) 100%);
  border: 1px solid rgba(234,179,8,.35);
  border-left: 3px solid #eab308;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  margin: 0 0 1.25rem;
  animation: brevoSlideIn .3s ease both;
}
@keyframes brevoSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.brevo-banner-icon {
  flex-shrink: 0; color: #ca8a04;
  margin-top: .05rem;
  filter: drop-shadow(0 0 6px rgba(234,179,8,.4));
}
.brevo-banner-body { flex: 1; min-width: 0; }
.brevo-banner-title {
  font-size: .83rem; font-weight: 800; color: #ca8a04;
  margin: 0 0 .28rem; line-height: 1.3;
  letter-spacing: -.01em;
}
.brevo-banner-desc {
  font-size: .78rem; color: rgba(202,138,4,.85);
  line-height: 1.55; margin: 0;
}
.brevo-banner-desc strong { color: #ca8a04; font-weight: 700; }

/* Light mode */
html.light .brevo-banner {
  background: linear-gradient(135deg, rgba(254,243,199,1) 0%, rgba(253,230,138,.6) 100%);
  border-color: rgba(234,179,8,.5);
  border-left-color: #ca8a04;
}
html.light .brevo-banner-icon { color: #92400e; }
html.light .brevo-banner-title { color: #92400e; }
html.light .brevo-banner-desc  { color: #78350f; }
html.light .brevo-banner-desc strong { color: #92400e; }

/* ── Préférence réduite ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
