/* ══════════════════════════════════════════════════════════════════════════
   ROAD RUNNER SOLUTIONS — Feuille de style dédiée Login / Inscription
   Chargée après style.css — Sélecteurs #login-modal strictement isolés
   ══════════════════════════════════════════════════════════════════════════ */

#login-modal.modal-overlay {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  z-index: 1000;
  color-scheme: dark;
  background-color: #03050c;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0) 35%, rgba(2, 4, 10, 0.88) 100%),
    radial-gradient(ellipse 70% 60% at 18% 20%, rgba(37, 99, 235, 0.32) 0%, rgba(37, 99, 235, 0) 70%),
    radial-gradient(ellipse 65% 58% at 82% 76%, rgba(168, 85, 247, 0.28) 0%, rgba(168, 85, 247, 0) 72%),
    radial-gradient(ellipse 55% 48% at 68% 22%, rgba(6, 182, 212, 0.20) 0%, rgba(6, 182, 212, 0) 68%),
    linear-gradient(135deg, #03050c 0%, #070b1e 50%, #03050c 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Ambient animated aurora orbs in the outer background */
#login-modal .auth-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#login-modal .auth-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

#login-modal .auth-orb-blue {
  width: 620px;
  height: 620px;
  left: -140px;
  top: -160px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.48) 0%, rgba(37, 99, 235, 0.22) 45%, rgba(37, 99, 235, 0) 74%);
  filter: blur(55px);
  opacity: 0.72;
  animation: authOrbFloat1 18s ease-in-out infinite alternate;
}

#login-modal .auth-orb-violet {
  width: 580px;
  height: 580px;
  right: -130px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.44) 0%, rgba(124, 58, 237, 0.20) 46%, rgba(124, 58, 237, 0) 74%);
  filter: blur(60px);
  opacity: 0.68;
  animation: authOrbFloat2 22s ease-in-out infinite alternate;
}

#login-modal .auth-orb-cyan {
  width: 460px;
  height: 460px;
  right: 14%;
  top: -110px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.34) 0%, rgba(14, 165, 233, 0.14) 48%, rgba(6, 182, 212, 0) 72%);
  filter: blur(52px);
  opacity: 0.60;
  animation: authOrbFloat3 20s ease-in-out infinite alternate;
}

#login-modal .auth-orb-flare {
  width: 520px;
  height: 360px;
  left: 22%;
  bottom: 6%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.26) 0%, rgba(56, 189, 248, 0.10) 50%, transparent 74%);
  filter: blur(48px);
  opacity: 0.75;
  animation: authOrbPulse 14s ease-in-out infinite alternate;
}

@keyframes authOrbFloat1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(48px, 36px, 0) scale(1.08); }
}
@keyframes authOrbFloat2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-44px, -32px, 0) scale(1.07); }
}
@keyframes authOrbFloat3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-30px, 28px, 0) scale(0.94); }
}

@keyframes authOrbPulse {
  0% { transform: rotate(-22deg) scale(0.95); opacity: 0.7; }
  100% { transform: rotate(-14deg) scale(1.12); opacity: 1; }
}

/* ── Split-Screen Glassmorphism Master Shell ── */
#login-modal .auth-split-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1020px;
  /* Fixed height shared by every auth view: the shell never resizes or re-centers */
  height: min(720px, calc(100dvh - 48px));
  min-height: 620px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  padding: 12px;
  gap: 8px;
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.085) 0%,
    rgba(15, 23, 42, 0.62) 48%,
    rgba(8, 12, 26, 0.82) 100%
  );
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 35px 80px -15px rgba(0, 0, 0, 0.85),
    0 0 60px -12px rgba(59, 130, 246, 0.22),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.28),
    inset 1px 0 0 0 rgba(255, 255, 255, 0.10);
}

/* ── Left Showcase Panel (Framed Animated Silk Ribbon Card) ── */
#login-modal .auth-showcase-panel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #04060f;
  min-height: 0;
  user-select: none;
}

#login-modal .auth-showcase-artwork {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 35%, rgba(236, 72, 153, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 20% 60%, rgba(37, 99, 235, 0.32) 0%, transparent 60%),
    linear-gradient(165deg, #03040a 0%, #090d24 46%, #03040a 100%);
}

/* Flowing glowing silk ribbons inside the showcase panel */
#login-modal .auth-ribbon {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  mix-blend-mode: screen;
  will-change: transform;
}













































































@keyframes authSvgWave1 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scaleY(1); }
}

@keyframes authSvgWave2 {
  0% { transform: translate3d(20px, 12px, 0) rotate(3deg) scaleY(1.04); }
  100% { transform: translate3d(-24px, -14px, 0) rotate(-4deg) scaleY(0.94); }
}

@keyframes authSvgWave3 {
  0% { transform: translate3d(-12px, 15px, 0) scale(0.97); }
  100% { transform: translate3d(16px, -15px, 0) scale(1.05); }
}

/* Dark bottom gradient vignette so editorial text is always 100% legible */
#login-modal .auth-showcase-artwork::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 12, 0.55) 0%, rgba(3, 5, 12, 0.05) 35%, rgba(3, 5, 12, 0.65) 72%, rgba(3, 5, 12, 0.94) 100%);
  pointer-events: none;
}

/* Subtle glowing Road Runner silhouette watermark inside the waves */
#login-modal .auth-showcase-watermark {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 40%;
  aspect-ratio: 1 / 1;
  height: auto;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(56, 189, 248, 0.65));
  animation: authWatermarkFloat 8s ease-in-out infinite alternate;
}

#login-modal .auth-showcase-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes authWatermarkFloat {
  0% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  100% { transform: translate3d(-10px, -8px, 0) rotate(2deg); }
}

/* Showcase Top Kicker (ROAD RUNNER ONE ──────────) */
#login-modal .auth-showcase-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

#login-modal .auth-showcase-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.85);
  white-space: nowrap;
}

#login-modal .auth-showcase-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Showcase Bottom Editorial Copy */
#login-modal .auth-showcase-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#login-modal .auth-showcase-headline {
  font-size: clamp(28px, 2.6vw, 38px);
  max-width: 14ch;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

#login-modal .auth-showcase-caption {
  font-size: 14.5px;
  max-width: 36ch;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.7);
  margin: 0;
}

/* ── Right Panel: Frosted Glass Authentication Workspace ── */
#login-modal .login-card,
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 32px 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centrage vertical équilibré sans logo en haut */
  align-items: center;
  gap: 0;
  color: #f8fafc;
}

#login-modal .login-header,
.login-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  margin-bottom: 24px;
}

#login-modal .login-header h1,
.login-header h1 {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
}

#login-modal .login-header p,
.login-header p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.68);
}

/* Scrollable body (header + active view); vertically & horizontally centered in .login-card */
#login-modal .auth-card-body {
  flex: 0 1 auto;
  width: 100%;
  max-width: 496px; /* Contenu interne 448px (entre 440 et 460 px) + 2x24px de marge interne pour le halo */
  min-height: 0;
  margin: 0 auto;
  padding: 16px 24px 24px 24px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

#login-modal .auth-card-body::-webkit-scrollbar {
  width: 6px;
}

#login-modal .auth-card-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}

#login-modal .auth-card-body::-webkit-scrollbar-track {
  background: transparent;
}

/* View transition: fade + 6px rise on the content only (never on the shell height) */
#login-modal .auth-card-body > [id^="auth-view-"] {
  animation: authViewIn 180ms ease-out both;
}

@keyframes authViewIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scoped Form Groups inside Auth Modal (immune to line 2491 override & light theme) */
#login-modal .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

#login-modal .form-group label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(226, 232, 240, 0.90);
}

#login-modal .auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

#login-modal .auth-label-row .auth-link-subtle {
  flex: 0 0 auto;
  white-space: nowrap;
}

#login-modal .form-group input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  box-sizing: border-box;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

#login-modal .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

#login-modal .form-group input:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.72);
}

#login-modal .form-group input:focus {
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.86);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.25),
    inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Password field with show/hide toggle */
#login-modal .auth-pw-wrap {
  position: relative;
}

#login-modal .auth-pw-wrap input {
  padding-right: 46px;
}

#login-modal .auth-pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

#login-modal .auth-pw-toggle:hover {
  color: #ffffff;
  background: transparent;
}

#login-modal .auth-pw-toggle:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

/* Inline field validation (replaces native browser bubbles) */
#login-modal .auth-field-error {
  font-size: 12px;
  line-height: 1.35;
  color: #f87171;
  padding-left: 22px;
  margin-top: 5px;
}

#login-modal .auth-field-error[hidden] {
  display: none;
}

#login-modal .form-group input.is-invalid,
#login-modal .form-group input.is-invalid:hover {
  border-color: #f87171;
}

#login-modal .form-group input.is-invalid:focus {
  border-color: #f87171;
  box-shadow:
    0 0 0 3px rgba(248, 113, 113, 0.22),
    inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Neutralize browser white/blue autofill background inside the dark glass card */
#login-modal .form-group input:-webkit-autofill,
#login-modal .form-group input:-webkit-autofill:hover,
#login-modal .form-group input:-webkit-autofill:focus,
#login-modal .form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0c142c inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  border-color: rgba(96, 165, 250, 0.42) !important;
  transition: background-color 9999s ease-out 0s;
}

/* Error & Feedback Banners */
#login-modal .login-error,
.login-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fca5a5;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#login-modal .auth-feedback-msg {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #6ee7b7;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.45;
}

/* Primary Action Button (Electric Blue -> Indigo -> Cyan) */
#login-modal .btn-primary-block,
.btn-primary-block {
  width: 100%;
  min-height: 45px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 52%, #0891b2 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow:
    0 10px 24px -6px rgba(37, 99, 235, 0.55),
    0 0 20px -4px rgba(6, 182, 212, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

#login-modal .btn-primary-block:hover:not(:disabled),
.btn-primary-block:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 14px 28px -6px rgba(59, 130, 246, 0.65),
    0 0 24px -2px rgba(34, 211, 238, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

#login-modal .btn-primary-block:active:not(:disabled),
.btn-primary-block:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.98);
}

#login-modal .btn-primary-block:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

#login-modal .btn-primary-block:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* Secondary Glass Button (e.g. Back to login in Verify view) */
#login-modal .btn-Primary-block.btn-auth-secondary,
#login-modal .btn-primary-block.btn-auth-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

#login-modal .btn-primary-block.btn-auth-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  filter: none;
  box-shadow: 0 8px 20px -6px rgba(2, 6, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Links & Switch Navigation Rows */
#login-modal .auth-link-subtle {
  font-size: 12px;
  font-weight: 500;
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.15s ease;
}

#login-modal .auth-link-subtle:hover {
  color: #93c5fd;
  text-decoration: underline;
}

#login-modal .auth-switch-row {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(203, 213, 225, 0.78);
}

#login-modal .auth-link-primary {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.15s ease;
}

#login-modal .auth-link-primary:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* Verify Sent & Onboarding Sub-views typography */
#login-modal .auth-view-centered {
  text-align: center;
  padding: 8px 0 2px 0;
}

#login-modal .auth-mail-badge {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px auto;
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px -8px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

#login-modal .auth-view-heading {
  margin: 0 0 8px 0;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

#login-modal .auth-view-lead {
  font-size: 13.5px;
  color: rgba(203, 213, 225, 0.84);
  line-height: 1.55;
  margin: 0 0 18px 0;
}

#login-modal .auth-highlight-email {
  color: #f8fafc;
  font-weight: 600;
}

#login-modal .auth-view-note {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.78);
  line-height: 1.5;
  margin-bottom: 22px;
}

#login-modal .auth-btn-spaced {
  margin-bottom: 10px;
}

#login-modal .auth-view-onboarding-wrap {
  padding: 8px 0 2px 0;
}

#login-modal .auth-onboarding-head {
  text-align: center;
  margin-bottom: 18px;
}

#login-modal .auth-onboarding-head .auth-view-heading {
  margin: 12px 0 6px 0;
}

#login-modal .auth-view-sub {
  font-size: 13px;
  color: rgba(203, 213, 225, 0.76);
  margin: 0;
}

#login-modal .auth-onboarding-error {
  margin-top: 18px;
}

#login-modal .auth-onboarding-retry {
  margin-top: 14px;
}

/* Responsive adjustments for Split-Screen Auth Modal */
@media (max-width: 920px) {
  #login-modal.modal-overlay {
    align-items: flex-start;
    justify-content: center;
    min-height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) 16px 24px 16px;
  }

  #login-modal .auth-split-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 520px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 10px;
  }

  /* Banner keeps the exact same height and position on every view */
  #login-modal .auth-showcase-panel {
    height: 120px;
    min-height: 120px;
    padding: 16px 18px;
  }

  #login-modal .auth-showcase-headline {
    font-size: clamp(18px, 4.6vw, 22px);
    max-width: none;
    line-height: 1.12;
  }

  #login-modal .auth-showcase-caption {
    display: none;
  }

  #login-modal .auth-showcase-watermark {
    width: 90px;
    right: 14px;
    top: 14px;
    bottom: auto;
  }

  #login-modal .login-card {
    height: auto;
    max-width: 100%;
    padding: 22px 14px 20px 14px;
  }

  #login-modal .auth-brand-top {
    margin-bottom: 20px;
  }

  /* On stacked layouts the page itself scrolls, not the card body */
  #login-modal .auth-card-body {
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 560px) {
  #login-modal .auth-split-shell {
    border-radius: 22px;
    padding: 8px;
  }

  #login-modal .auth-showcase-panel {
    border-radius: 16px;
  }

  #login-modal .login-card {
    padding: 20px 10px 18px 10px;
  }

  /* 16px font-size prevents automatic zoom on iOS Safari when focusing inputs */
  #login-modal .form-group input {
    font-size: 16px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #login-modal .auth-orb,
  #login-modal .auth-ribbon,
  #login-modal .auth-wave-path,
  #login-modal .auth-showcase-watermark,
  #login-modal .auth-card-body > [id^="auth-view-"] {
    animation: none !important;
  }
  #login-modal .btn-primary-block,
  #login-modal .auth-pw-toggle {
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   LOGIN — Panneau gauche épuré, Mascot Double Crête & Formulaire Redesign
   ══════════════════════════════════════════════════════════════ */
#login-modal .auth-showcase-panel {
  align-items: center;
  justify-content: space-between;
  padding: 36px 36px 32px;
  background:
    radial-gradient(ellipse 85% 65% at 50% 48%, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0) 70%),
    linear-gradient(165deg, #03040a 0%, #090d26 50%, #03040a 100%);
}

#login-modal .auth-showcase-artwork {
  background: transparent;
}

#login-modal .auth-showcase-artwork::after { display: none; }

#login-modal .auth-showcase-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 68%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(79, 70, 229, 0.14) 42%, rgba(56, 189, 248, 0) 72%);
  filter: blur(28px);
  pointer-events: none;
}

#login-modal .auth-showcase-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 20px 0;
}

/* Zone de parole du mascot (sans bulle ni cadre, typographie haute lisibilité) */
#login-modal .auth-showcase-speech {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  min-height: 54px; /* Réserve la hauteur pour 2 lignes max : zéro saut de layout */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto auto 12px auto;
  padding: 0 12px;
}

#login-modal .rrm-speech-text {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: #f1f5f9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

#login-modal .rrm-speech-content {
  display: inline;
}

/* Curseur vertical fin clignotant */
#login-modal .rrm-speech-cursor {
  display: inline-block;
  width: 2px;
  height: 1.12em;
  margin-left: 2.5px;
  vertical-align: -0.15em;
  background: linear-gradient(180deg, #38bdf8 0%, #f472b6 100%);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
  animation: rrmCursorBlink 0.65s infinite;
  transition: opacity 0.28s ease;
}

#login-modal .rrm-speech-cursor.is-done {
  opacity: 0;
  animation: none;
}

@keyframes rrmCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Logo Libre (icône seule 28-32px avec de l'air autour) ── */
#login-modal .auth-brand-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 22px;
  padding: 2px 0;
}

#login-modal .auth-brand-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  background: none;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55));
}

/* ── Mascot (Double Crête Aérodynamique) ── */
#login-modal .rrm {
  position: relative;
  width: clamp(180px, 34vh, 280px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

#login-modal .rrm-shadow {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 64%;
  height: 8%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 72%);
  filter: blur(7px);
  will-change: transform;
}

#login-modal .rrm-breath,
#login-modal .rrm-body,
#login-modal .rrm-head,
#login-modal .rrm-face {
  position: absolute;
  inset: 0;
  will-change: transform;
}

#login-modal .rrm-breath {
  transform-origin: 50% 90%;
  animation: rrmBreath 4.2s ease-in-out infinite;
}

#login-modal .rrm-body { transform-origin: 50% 88%; }
#login-modal .rrm-head { transform-origin: 50% 75%; }

/* SVG Corps Principal */
#login-modal .rrm-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 28px rgba(244, 114, 182, 0.20));
}

#login-modal .rrm-face {
  z-index: 3;
}

#login-modal .rrm-eyes {
  position: absolute;
  inset: 0;
  will-change: transform;
}

#login-modal .rrm-eye {
  position: absolute;
  top: 51%;
  width: 9.2%;
  height: 15.2%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 38%, #0b0620 0%, #1a0f3d 62%, #2c1d63 100%);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.6),
    0 1.5px 0 rgba(255, 255, 255, 0.4);
  transform-origin: 50% 55%;
  will-change: transform;
}
#login-modal .rrm-eye-l { left: 37.5%; }
#login-modal .rrm-eye-r { left: 56.5%; }

#login-modal .rrm-hand {
  position: absolute;
  top: 45%;
  width: 20%;
  height: 27%;
  border-radius: 50%;
  background: linear-gradient(160deg, #fdba74 0%, #f472b6 100%);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  opacity: 0;
  will-change: transform, opacity;
  z-index: 4;
}
#login-modal .rrm-hand-l { left: 32%; }
#login-modal .rrm-hand-r { left: 52%; }

@keyframes rrmBreath {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1, 1); }
  50% { transform: translate3d(0, -0.9%, 0) scale(1.02, 1.028); }
}

/* ══════════════════════════════════════════════════════════════
   REDESIGN DES CHAMPS DU FORMULAIRE : LABELS FLOTTANTS & DÉGRADÉS
   ══════════════════════════════════════════════════════════════ */
#login-modal .form-group {
  margin-bottom: 16px;
  gap: 0;
  position: relative;
}

#login-modal #login-form .form-group:last-of-type {
  margin-bottom: 24px;
}

#login-modal .rr-input {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px; /* Pilule complète harmonisée avec le bouton */
  padding: 0;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  overflow: hidden;
}

#login-modal .rr-input:hover:not(.is-focused):not(:focus-within) {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
}

/* Bordure au dégradé de la marque au focus */
#login-modal .rr-input.is-focused,
#login-modal .rr-input:focus-within {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.88) 100%) padding-box,
    linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #06b6d4 100%) border-box;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.16),
    0 4px 16px -4px rgba(99, 102, 241, 0.22);
  transform: translateY(-0.5px);
}

#login-modal .rr-input input {
  width: 100%;
  height: 56px;
  padding: 22px 50px 6px 24px; /* Espace généreux pour respecter l'arrondi pilule */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.4;
  outline: none;
}

#login-modal .rr-input input::placeholder {
  color: transparent; /* Masqué au repos au profit du label flottant */
  transition: color 180ms ease;
}

#login-modal .rr-input.is-focused input::placeholder,
#login-modal .rr-input:focus-within input::placeholder {
  color: rgba(226, 232, 240, 0.52);
}

/* Label Flottant */
#login-modal .rr-input label {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 400;
  color: rgba(226, 232, 240, 0.72);
  pointer-events: none;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), font-size 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
  transform-origin: 0 0;
  margin: 0;
}

#login-modal .rr-input.is-focused label,
#login-modal .rr-input.has-value label {
  transform: translateY(-21px) scale(0.74);
  color: #38bdf8;
  font-weight: 500;
}

#login-modal .rr-input.has-value:not(.is-focused) label {
  color: rgba(203, 213, 225, 0.78);
}

/* Coche de validation (.rr-check) */
#login-modal .rr-check {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

#login-modal .rr-check svg {
  width: 12px;
  height: 12px;
  stroke: #4ade80;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#login-modal .rr-input.is-valid:not(.auth-pw-wrap) .rr-check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Champ Mot de Passe avec Toggle Eye */
#login-modal .rr-input.auth-pw-wrap input {
  padding-right: 52px;
}

#login-modal .rr-input .auth-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  z-index: 5;
}

/* Lien mot de passe oublié : aligné à droite sous le champ, discret, non souligné */
#login-modal .auth-forgot {
  align-self: flex-end;
  margin-top: 8px;
  margin-right: 8px;
  margin-left: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.82);
  text-decoration: none !important;
  transition: color 200ms ease;
}

#login-modal .auth-forgot:hover {
  color: #93c5fd;
  text-decoration: none !important;
}

/* Jauge de force mot de passe fine (.rr-strength) qui flotte à l'intérieur de la pilule */
#login-modal .rr-strength {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 5px;
  width: auto;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border-radius: 999px;
}

#login-modal .rr-strength i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 300ms ease, background 300ms ease;
}

#login-modal .rr-strength i.lvl-1 { width: 25%; background: #ef4444; }
#login-modal .rr-strength i.lvl-2 { width: 50%; background: #f59e0b; }
#login-modal .rr-strength i.lvl-3 { width: 75%; background: #3b82f6; }
#login-modal .rr-strength i.lvl-4 { width: 100%; background: linear-gradient(90deg, #3b82f6, #10b981); }

/* Erreur de validation */
#login-modal .rr-input:has(input.is-invalid),
#login-modal .form-group input.is-invalid {
  border-color: #f87171 !important;
}

#login-modal .rr-input:has(input.is-invalid) label {
  color: #f87171 !important;
}

/* ══════════════════════════════════════════════════════════════
   INSCRIPTION EN ÉTAPES (MULTI-STEP SIGNUP)
   ══════════════════════════════════════════════════════════════ */
#login-modal .auth-steps {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  width: calc(100% + 28px);
  padding: 8px 14px 16px 14px;
  margin: -8px -14px -16px -14px;
  box-sizing: border-box;
}

#login-modal .auth-step {
  display: none;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 280ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

#login-modal .auth-step.is-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: authStepEnter 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#login-modal .auth-step.is-prev {
  transform: translateX(-24px);
}

@keyframes authStepEnter {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Rangée d'actions inscription (Bouton retour discret + Bouton Continuer/Créer) */
#login-modal .auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

#login-modal .auth-step-back {
  flex: 0 0 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px; /* Disque parfait harmonisé avec les boutons pilule */
  color: rgba(248, 250, 252, 0.78);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

#login-modal .auth-step-back:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

#login-modal .auth-step-back[hidden] {
  display: none !important;
}

/* Pagination par points (dots) */
#login-modal .auth-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

#login-modal .auth-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 260ms cubic-bezier(0.34, 1.56, 0.64, 1), background 260ms ease;
}

#login-modal .auth-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, #fde047 0%, #fb923c 50%, #f472b6 100%);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.45);
}

/* Bouton Principal : hauteur 56px, pilule 999px, halo quasi nul au repos, halo survol 0.38, flèche +3px */
#login-modal .btn-primary-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px !important;
  height: 56px;
  min-height: 56px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.10);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease, filter 200ms ease, opacity 200ms ease;
}

#login-modal .rr-btn-arrow {
  display: inline-block;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  #login-modal .btn-primary-block:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 10px 28px -4px rgba(59, 130, 246, 0.38);
  }

  #login-modal .btn-primary-block:hover:not(:disabled) .rr-btn-arrow {
    transform: translateX(3px);
  }
}

#login-modal .btn-primary-block:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.22);
}

#login-modal .btn-primary-block:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

/* Accessibilité Screen Readers */
.rr-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE & TABLETTE : 100DVH, ZERO SCROLL & CLAVIER ADAPTATIF
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  #login-modal.modal-overlay {
    height: 100dvh;
    min-height: 100dvh;
    height: var(--vvh, 100dvh);
    overflow: hidden;
    padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)) 12px;
    align-items: center;
    justify-content: center;
  }

  #login-modal .auth-split-shell {
    height: 100%;
    max-height: calc(var(--vvh, 100dvh) - 20px);
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
    overflow: hidden;
  }

  #login-modal .auth-showcase-panel {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding: 10px 12px 6px;
    gap: 4px;
    border-radius: 14px;
    background:
      radial-gradient(ellipse 90% 70% at 50% 50%, rgba(99, 102, 241, 0.22) 0%, transparent 70%),
      linear-gradient(165deg, #03040a 0%, #090d26 50%, #03040a 100%);
  }

  #login-modal .auth-showcase-stage {
    padding: 0;
    flex: 0 0 auto;
  }

  #login-modal .rrm {
    width: clamp(74px, 18vw, 100px);
    margin: 0 auto;
  }

  #login-modal .auth-showcase-speech {
    min-height: 38px;
    margin: 4px auto 2px auto;
    padding: 0 6px;
  }

  #login-modal .rrm-speech-text {
    font-size: 13px;
    line-height: 1.35;
  }

  #login-modal .login-card {
    flex: 1 1 auto;
    padding: 12px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #login-modal .login-header {
    margin-bottom: 12px;
    gap: 4px;
  }

  #login-modal .login-header h1 {
    font-size: 20px;
  }

  #login-modal .login-header p {
    font-size: 12.5px;
  }

  #login-modal .auth-card-body {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 16px 16px 16px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
  }

  #login-modal .form-group,
  #login-modal #login-form .form-group:last-of-type {
    margin-bottom: 10px;
  }

  #login-modal .rr-input input {
    height: 46px;
    font-size: 14px;
    padding: 18px 44px 4px 18px;
  }

  #login-modal .rr-input label {
    font-size: 13px;
    left: 18px;
  }

  #login-modal .rr-input.is-focused label,
  #login-modal .rr-input.has-value label {
    transform: translateY(-17px) scale(0.72);
  }

  #login-modal .rr-strength {
    left: 18px;
    right: 18px;
    bottom: 4px;
  }

  #login-modal .auth-field-error {
    padding-left: 18px;
  }

  #login-modal .btn-primary-block {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 14px;
    border-radius: 999px !important;
  }

  #login-modal .auth-step-back {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 999px;
  }

  #login-modal .auth-dots {
    margin-top: 8px;
  }

  #login-modal .auth-switch-row {
    margin-top: 6px;
    font-size: 12px;
  }
}

/* Mode Clavier Ouvert sur Mobile (.rr-kb) : Mascot ultra-compact, zéro défilement */
#login-modal.rr-kb .auth-showcase-panel {
  padding: 4px 8px;
}

#login-modal.rr-kb .rrm {
  width: 48px;
}

#login-modal.rr-kb .auth-showcase-speech {
  display: none;
}

#login-modal.rr-kb .login-header {
  margin-bottom: 4px;
}

#login-modal.rr-kb .form-group {
  margin-bottom: 8px;
}

/* Mouvement réduit : pas d'animation continue */
@media (prefers-reduced-motion: reduce) {
  #login-modal .rrm-breath { animation: none !important; }
  #login-modal .rrm * { transition: none !important; }
  #login-modal .auth-step { transition: none !important; }
}



/* ══════════════════════════════════════════════════════════════
   AMBIANCE VIVANTE DU PANNEAU UNIA (CSS pur, transform/opacity uniquement)
   Couches (de l'arrière vers l'avant) :
     1. fond sombre du panneau          (.auth-showcase-panel)
     2. nappes aurore en mouvement      (.auth-showcase-aurora-a / -b)
     3. halo derrière UNIA              (.auth-showcase-glow)
     4. voile bas de lisibilité         (.auth-showcase-artwork::after)
     5. mascot + texte                  (.auth-showcase-stage / -speech, z-index 2)
   Indépendant de login-mascot.js : aucun lien avec le curseur.
   ══════════════════════════════════════════════════════════════ */
#login-modal .auth-showcase-artwork { --amp: 1; }

#login-modal .auth-showcase-aurora {
  position: absolute;
  width: 125%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Nappe bleu électrique / cyan : haut-gauche, traverse le panneau */
#login-modal .auth-showcase-aurora-a {
  left: -45%;
  top: -22%;
  background: radial-gradient(circle,
    rgba(34, 211, 238, 0.58) 0%,
    rgba(37, 99, 235, 0.38) 34%,
    rgba(37, 99, 235, 0) 68%);
  animation: authAuroraA 13s ease-in-out infinite;
}

/* Nappe violette / rose : bas-droite, cycle plus long pour décaler les phases */
#login-modal .auth-showcase-aurora-b {
  right: -45%;
  bottom: -20%;
  background: radial-gradient(circle,
    rgba(192, 74, 245, 0.56) 0%,
    rgba(236, 72, 153, 0.34) 34%,
    rgba(124, 58, 237, 0) 68%);
  animation: authAuroraB 16s ease-in-out infinite;
}

/* Trajectoires fermées (0% = 100%) : aucun retour brutal */
@keyframes authAuroraA {
  0%   { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.55; }
  30%  { transform: translate3d(calc(var(--amp) * 34%), calc(var(--amp) * 14%), 0) scale(1.12); opacity: 1; }
  65%  { transform: translate3d(calc(var(--amp) * 14%), calc(var(--amp) * 38%), 0) scale(1.02); opacity: 0.7; }
  100% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.55; }
}
@keyframes authAuroraB {
  0%   { transform: translate3d(0, 0, 0) scale(1.1); opacity: 0.95; }
  35%  { transform: translate3d(calc(var(--amp) * -36%), calc(var(--amp) * -16%), 0) scale(0.94); opacity: 0.55; }
  70%  { transform: translate3d(calc(var(--amp) * -12%), calc(var(--amp) * -40%), 0) scale(1.14); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(1.1); opacity: 0.95; }
}

/* Halo derrière UNIA : plus lumineux, rythme propre (9 s, indépendant des 4,2 s du mascot) */
#login-modal .auth-showcase-glow {
  width: 78%;
  background: radial-gradient(circle,
    rgba(129, 140, 248, 0.55) 0%,
    rgba(99, 102, 241, 0.30) 40%,
    rgba(56, 189, 248, 0) 72%);
  will-change: transform, opacity;
  animation: authGlowBreathe 9s ease-in-out infinite;
}
@keyframes authGlowBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.5; }
  50%      { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Voile bas : profondeur + lisibilité du texte d'UNIA */
#login-modal .auth-showcase-artwork::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(3, 5, 12, 0) 55%,
    rgba(3, 5, 12, 0.62) 100%);
}

/* Mobile : on garde les animations, avec une amplitude réduite */
@media (max-width: 920px) {
  #login-modal .auth-showcase-artwork { --amp: 0.55; }
  #login-modal .auth-showcase-aurora { width: 150%; }
}

@media (prefers-reduced-motion: reduce) {
  #login-modal .auth-showcase-glow,
  #login-modal .auth-showcase-aurora {
    animation: none !important;
  }
}
