/* ==========================================================================
   Connexion Nymphea — même gabarit que NymphRemote et NymphReach
   Mêmes dimensions (grille 1.1fr / .85fr, cartes de 22px, colonne de 430px),
   même violet (#8238d2 / #a866ed) et mêmes dégradés. La vitrine anime un
   aperçu fictif de l'agence devant le symbole Nymphea en filigrane.
   Chargé après styles.css et enhancements.css.
   ========================================================================== */

@property --al-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

#loginView {
  --al-bg: #f8f7fa;
  --al-surface: #fff;
  --al-surface-alt: #f4f1f8;
  --al-text: #27232d;
  --al-muted: #6e6876;
  --al-border: #e9e5ee;
  --al-border-hover: #d5bdea;
  --al-purple: #8238d2;
  --al-ring: 0 0 0 3px rgba(151, 80, 222, 0.22);
  --al-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --al-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-theme="dark"] #loginView {
  --al-bg: #17151b;
  --al-surface: #242127;
  --al-surface-alt: #302b34;
  --al-text: #f3eff6;
  --al-muted: #aaa2af;
  --al-border: #3d3741;
  --al-border-hover: #5e4474;
  --al-purple: #a866ed;
  --al-ring: 0 0 0 3px rgba(168, 102, 237, 0.3);
}

/* ---------- Page ---------- */
#loginView.auth-page:not([hidden]) {
  display: flex;
  flex-direction: column;
  padding: 27px 30px 16px;
  color: var(--al-text);
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(151, 80, 222, 0.09), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(212, 95, 168, 0.06), transparent 60%),
    var(--al-bg);
}
[data-theme="dark"] #loginView.auth-page:not([hidden]) {
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(168, 102, 237, 0.12), transparent 60%),
    var(--al-bg);
}
#loginView .auth-page-atmosphere {
  display: none;
}
#loginView .auth-page-header,
#loginView .auth-page-layout,
#loginView .auth-page-footer {
  width: 100%;
  max-width: 1290px;
  margin-inline: auto;
}
#loginView .auth-page-header {
  min-height: 32px;
  margin-bottom: 22px;
}
#loginView .auth-page-brand img,
#loginView .auth-page-brand svg {
  width: auto;
  height: 32px;
}
#loginView .auth-theme-toggle {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--al-text);
}
#loginView .auth-theme-toggle:hover {
  background: #9569b525;
  transform: none;
}
#loginView .auth-page-layout {
  /* Remplit l'écran mais ne se compresse jamais sous la hauteur du contenu :
     avec flex: 1 (base 0), la grille était écrasée sur mobile et la carte
     de connexion débordait sur le bloc violet. */
  flex: 1 0 auto;
  min-height: 590px;
  grid-template-columns: 1.1fr 0.85fr;
  gap: 20px;
  padding-bottom: 0;
}
#loginView .auth-page-footer {
  min-height: 0;
  margin-top: 19px;
  color: var(--al-muted);
  font-size: 11px;
}

/* ---------- Vitrine ---------- */
#loginView .auth-page-story {
  isolation: isolate;
  justify-content: flex-start;
  gap: 0;
  padding: 50px 56px 30px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(circle at 90% 5%, #573567, #291c35 60%, #201728);
  box-shadow: 0 30px 80px rgba(33, 16, 50, 0.18);
}
#loginView .auth-page-story::before,
#loginView .auth-page-story::after {
  display: none;
}
#loginView .auth-page-story > * {
  position: relative;
  z-index: 2;
}
#loginView .auth-page-story > .nx-aurora,
#loginView .auth-page-story > .auth-story-grid,
#loginView .auth-page-story > .nx-story-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#loginView .auth-page-story > .nx-aurora,
#loginView .auth-page-story > .auth-story-grid {
  z-index: 0;
}
#loginView .auth-page-story > .nx-story-glow {
  z-index: 1;
}
.nx-aurora {
  overflow: hidden;
  border-radius: inherit;
}
.nx-aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.nx-aurora i:nth-child(1) {
  top: -140px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: #8b3fd6;
  animation: al-aurora-a 18s ease-in-out infinite alternate;
}
.nx-aurora i:nth-child(2) {
  right: -60px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  background: #c9559e;
  opacity: 0.4;
  animation: al-aurora-b 22s ease-in-out infinite alternate;
}
.nx-aurora i:nth-child(3) {
  top: 38%;
  right: 12%;
  width: 260px;
  height: 260px;
  background: #3fae8a;
  opacity: 0.18;
  animation: al-aurora-c 26s ease-in-out infinite alternate;
}
@keyframes al-aurora-a { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes al-aurora-b { to { transform: translate(-140px, -80px) scale(1.2); } }
@keyframes al-aurora-c { to { transform: translate(-90px, 60px) scale(0.85); } }
#loginView .auth-page-story > .auth-story-watermark {
  position: absolute;
  z-index: 0;
  right: -110px;
  bottom: -70px;
  width: 470px;
  opacity: 0.055;
}
#loginView .auth-page-story > .nx-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  pointer-events: none;
  animation: al-orbit 60s linear infinite;
}
.nx-orbit-one {
  top: -170px;
  right: -210px;
  width: 390px;
  height: 390px;
}
#loginView .auth-page-story > .nx-orbit-two {
  top: -95px;
  right: -125px;
  width: 260px;
  height: 260px;
  animation-duration: 40s;
  animation-direction: reverse;
}
.nx-orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e2bdfb;
  box-shadow: 0 0 12px 3px rgba(226, 189, 251, 0.6);
}
@keyframes al-orbit { to { rotate: 360deg; } }

/* Textes */
#loginView .nx-story-copy {
  padding-bottom: 22px;
}
#loginView .auth-story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #d0a9e9;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.08em;
}
.nx-live-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fc59d;
  box-shadow: 0 0 0 3px rgba(79, 197, 157, 0.18);
  animation: al-live 2.4s ease-in-out infinite;
}
@keyframes al-live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(79, 197, 157, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(79, 197, 157, 0.06); }
}
#loginView .auth-page-story h1 {
  max-width: 560px;
  margin: 24px 0 16px;
  font-size: clamp(43px, 5vw, 68px);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 1.04;
}
#loginView .auth-page-story h1 span {
  background: linear-gradient(90deg, #d7b5ee 0%, #fbe3ff 25%, #c28ef0 50%, #f0a6d2 75%, #d7b5ee 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#loginView .auth-story-copy {
  max-width: 425px;
  margin: 0;
  color: #cfc0d9;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- Aperçu de l'agence ---------- */
.nx-preview-wrap {
  position: relative;
  max-width: 410px;
  margin-top: auto;
  translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px);
  transition: translate 700ms var(--al-ease);
  animation: al-rise 800ms 260ms var(--al-ease) both;
}
.nx-preview {
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(10, 4, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: perspective(900px) rotateX(calc(var(--py, 0) * -7deg)) rotateY(calc(var(--px, 0) * 9deg));
  transition: transform 700ms var(--al-ease);
}
.nx-preview svg,
.nx-toast svg,
.nx-spark svg,
.nx-chips svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nx-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 10px;
  color: #efe4f7;
  font-size: 12px;
  font-weight: 600;
}
.nx-preview-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nx-preview-head small {
  color: #b9a8c6;
  font-size: 12px;
  font-weight: 500;
}
.nx-preview-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 7px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  animation: al-row-in 600ms var(--al-ease) both;
  animation-delay: calc(600ms + var(--i, 0) * 110ms);
}
@keyframes al-row-in {
  from { opacity: 0; transform: translateX(-10px); }
}
.nx-preview-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7b8ed;
}
.nx-preview-icon svg {
  width: 15px;
  height: 15px;
}
.nx-preview-main {
  min-width: 0;
}
.nx-preview-main strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nx-preview-bar {
  display: block;
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}
.nx-preview-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
}
.is-run .nx-preview-bar i {
  background: linear-gradient(90deg, #a866ed, #f0a6d2);
  box-shadow: 0 0 10px rgba(240, 166, 210, 0.6);
  animation: al-progress 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.3s);
}
.is-ok .nx-preview-bar i {
  width: 100%;
  background: #4fc59d;
}
.is-warn .nx-preview-bar i {
  width: 64%;
  background: #f0c38a;
  animation: al-warn 2.4s ease-in-out infinite;
}
@keyframes al-progress {
  0% { width: 6%; }
  75% { width: 100%; opacity: 1; }
  90%, 100% { width: 100%; opacity: 0; }
}
@keyframes al-warn {
  50% { opacity: 0.55; }
}
.nx-preview-state {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.is-run .nx-preview-state {
  color: #ebd2fd;
  background: rgba(168, 102, 237, 0.24);
}
.is-ok .nx-preview-state {
  color: #a6ecca;
  background: rgba(79, 197, 157, 0.16);
}
.is-warn .nx-preview-state {
  color: #f3d4a8;
  background: rgba(240, 195, 138, 0.14);
}
.nx-preview-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 10px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #bcaac9;
  font-size: 11px;
}
.nx-preview-foot svg {
  width: 13px;
  height: 13px;
  color: #d7b8ed;
}

/* Deux notifications qui se relaient */
.nx-toast {
  position: absolute;
  right: -34px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 11px;
  color: #2d2038;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(10, 4, 18, 0.4);
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
  opacity: 0;
  translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -8px);
  transition: translate 700ms var(--al-ease);
  animation: al-toast 10s var(--al-ease) infinite;
}
.nx-toast svg {
  width: 16px;
  height: 16px;
}
.nx-toast-a {
  animation-delay: 1.6s;
}
.nx-toast-a svg {
  color: #2c956b;
}
.nx-toast-b {
  animation-delay: 6.6s;
}
.nx-toast-b svg {
  color: #8238d2;
}
@keyframes al-toast {
  0%, 4% { opacity: 0; transform: translateY(10px) scale(0.96); }
  9%, 42% { opacity: 1; transform: none; }
  49%, 100% { opacity: 0; transform: translateY(-6px) scale(0.98); }
}
.nx-spark {
  position: absolute;
  top: -15px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fbe3ff;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(194, 142, 240, 0.45);
  animation: al-spark 5s ease-in-out infinite;
}
.nx-spark svg {
  width: 15px;
  height: 15px;
}
@keyframes al-spark {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(12deg); }
}

/* ---------- Puces + équipe ---------- */
.nx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  animation: al-rise 800ms 440ms var(--al-ease) both;
}
.nx-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #eadcf3;
  font-size: 12px;
  font-weight: 550;
  transition: background-color 140ms ease, border-color 140ms ease, transform 220ms var(--al-ease);
}
.nx-chips span:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.nx-chips svg {
  width: 15px;
  height: 15px;
  color: #d7b8ed;
}
.nx-team {
  display: flex;
  align-items: center;
  gap: 15px;
  width: max-content;
  max-width: 100%;
  margin-top: auto;
  padding-top: 22px;
  color: #d0bddb;
  font-size: 12px;
  cursor: default;
  animation: al-rise 800ms 520ms var(--al-ease) both;
}
.nx-avatar-stack {
  display: flex;
}
.nx-avatar-stack i {
  position: relative;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-left: -5px;
  border: 2px solid #392745;
  border-radius: 50%;
  background: #eee6f2;
  color: #4a315d;
  font-size: 11px;
  font-style: normal;
  font-weight: 620;
  animation: al-avatar-in 600ms var(--al-spring) both, al-avatar-wave 6s ease-in-out infinite;
  animation-delay: calc(900ms + var(--i, 0) * 120ms), calc(2.6s + var(--i, 0) * 160ms);
  transition: margin 450ms var(--al-spring), rotate 450ms var(--al-spring), background-color 200ms ease;
}
.nx-avatar-stack i:first-child {
  margin-left: 0;
}
.nx-avatar-stack i:last-child {
  background: #72458f;
  color: #fff;
}
.nx-avatar-stack i::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid rgba(215, 181, 238, 0.7);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: al-avatar-ring 6s ease-out infinite;
  animation-delay: calc(2.6s + var(--i, 0) * 160ms);
}
@keyframes al-avatar-in { from { opacity: 0; scale: 0.2; } }
@keyframes al-avatar-wave {
  0%, 14%, 100% { translate: 0 0; }
  5% { translate: 0 -6px; }
  9% { translate: 0 1px; }
}
@keyframes al-avatar-ring {
  0% { opacity: 0.9; scale: 1; }
  12%, 100% { opacity: 0; scale: 1.7; }
}
.nx-team:hover .nx-avatar-stack i:not(:first-child) {
  margin-left: 6px;
}
.nx-team:hover .nx-avatar-stack i:last-child {
  rotate: 90deg;
  background: #9a55d8;
}
.nx-team > span:last-child {
  transition: color 200ms ease;
}
.nx-team:hover > span:last-child {
  color: #fff;
}

/* ---------- Carte de connexion ---------- */
#loginView .auth-panel {
  isolation: isolate;
  padding: 70px clamp(30px, 5vw, 72px);
  border: 1px solid var(--al-border);
  border-radius: 22px;
  background: var(--al-surface);
  box-shadow: 0 24px 70px rgba(40, 19, 68, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
[data-theme="dark"] #loginView .auth-panel {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
#loginView .auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px 260px at 100% 0%, rgba(151, 80, 222, 0.08), transparent 70%);
}
#loginView .auth-panel > div {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
}
#loginView .auth-panel-symbol.nx-lock-mark {
  width: 62px;
  height: 62px;
  margin-bottom: 28px;
  border-radius: 18px;
}
#loginView .nx-lock-mark .nx-lock-symbol {
  width: 36px;
}
#loginView .auth-panel .eyebrow {
  margin: 0;
  color: var(--al-purple);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.08em;
}
#loginView .auth-panel h2 {
  margin: 9px 0 8px;
  color: var(--al-text);
  font-size: 37px;
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.5;
}
#loginView .auth-panel-intro {
  max-width: none;
  margin: 0 0 10px;
  color: var(--al-muted);
  font-size: 14px;
  line-height: 1.7;
}
#loginView .auth-login-form {
  gap: 0;
}
#loginView .auth-login-form label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--al-text);
  font-size: 12px;
  font-weight: 600;
}
#loginView .auth-input-shell > svg {
  left: 13px;
  width: 17px;
  height: 17px;
  color: #a99fb0;
}
#loginView .auth-login-form .auth-input-shell input {
  min-height: 45px;
  height: 47px;
  padding: 0 44px 0 40px;
  border: 1px solid var(--al-border);
  border-radius: 10px;
  background: var(--al-bg);
  box-shadow: none;
  color: var(--al-text);
  font-size: 13px;
}
#loginView .auth-login-form .auth-input-shell input::placeholder {
  color: #aaa3ae;
  opacity: 1;
}
#loginView .auth-login-form .auth-input-shell:hover:not(:focus-within) input {
  border-color: var(--al-border-hover);
}
#loginView .auth-login-form .auth-input-shell:focus-within input {
  border-color: #ac71ed;
  background: var(--al-bg);
  box-shadow: var(--al-ring);
}
#loginView .auth-input-shell:focus-within > svg {
  color: var(--al-purple);
}
#loginView .auth-password-toggle {
  right: 6px;
  width: 32px;
  height: 32px;
  color: #9b91a0;
}
#loginView .auth-password-toggle:hover {
  color: var(--al-purple);
  background: transparent;
}
#loginView .auth-password-toggle svg {
  width: 17px;
  height: 17px;
}
#loginView .auth-form-options {
  margin: 14px 0 20px;
  font-size: 12px;
}
#loginView .auth-form-options > span {
  gap: 5px;
  color: #6aa489;
}
[data-theme="dark"] #loginView .auth-form-options > span {
  color: #86d9ae;
}
#loginView .auth-form-options > span::before {
  display: none;
}
#loginView .auth-form-options > span svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#loginView .auth-form-options button {
  color: var(--al-purple);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color 140ms ease;
}
#loginView .auth-form-options button:hover {
  text-decoration-color: currentColor;
}
#loginView .cloud-auth-message {
  margin: 0 0 14px;
}
#loginView .auth-submit {
  min-height: 44px;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #792fc0, #a051df);
  box-shadow: 0 8px 20px #8d48cb28;
  font-size: 13px;
  font-weight: 600;
}
[data-theme="dark"] #loginView .auth-submit {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
#loginView .auth-submit:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
#loginView .auth-submit:active:not(:disabled) {
  transform: scale(0.98);
}
#loginView .auth-submit svg {
  width: 16px;
  height: 16px;
}
#cloudRecoveryForm .auth-submit {
  margin-top: 20px;
}
#loginView .auth-invite-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--al-border);
  border-radius: 10px;
  background: var(--al-surface-alt);
  transition: border-color 140ms ease;
}
#loginView .auth-invite-note:hover {
  border-color: var(--al-border-hover);
}
#loginView .auth-invite-note > span {
  width: auto;
  height: auto;
  background: none;
  color: var(--al-purple);
}
#loginView .auth-invite-note > span svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#loginView .auth-invite-note strong {
  color: var(--al-text);
  font-size: 13px;
}
#loginView .auth-invite-note small {
  margin-top: 4px;
  color: var(--al-muted);
  font-size: 12px;
}
#loginView .auth-panel .cloud-auth-link {
  display: block;
  margin: 14px auto 0;
  color: var(--al-purple);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Entrées ---------- */
@keyframes al-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Écrans peu hauts : tout tient sans défilement ---------- */
@media (max-height: 880px) and (min-width: 901px) {
  #loginView.auth-page:not([hidden]) { padding-top: 20px; padding-bottom: 12px; }
  #loginView .auth-page-header { margin-bottom: 16px; }
  #loginView .auth-page-story { padding: 40px 50px 24px; }
  #loginView .auth-page-story h1 { margin: 18px 0 12px; font-size: clamp(40px, 4.2vw, 56px); }
  #loginView .nx-story-copy { padding-bottom: 16px; }
  #loginView .nx-preview-row { padding: 5px 2px; }
  #loginView .nx-chips { margin-top: 24px; }
  #loginView .nx-team { padding-top: 16px; }
  #loginView .auth-panel { padding-top: 44px; padding-bottom: 44px; }
  #loginView .auth-panel-symbol.nx-lock-mark { margin-bottom: 20px; }
  #loginView .auth-page-footer { margin-top: 12px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nx-preview-wrap { max-width: 360px; }
  .nx-toast { right: -12px; }
}
@media (max-width: 900px) {
  #loginView .auth-page-layout { grid-template-columns: 1fr; min-height: 0; }
  #loginView .auth-page-story { min-height: 0; }
  .nx-toast { right: 10px; }
}
@media (max-width: 760px) {
  #loginView.auth-page:not([hidden]) { padding: calc(14px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)); }
  #loginView .auth-page-header { margin-bottom: 14px; }
  #loginView .auth-page-layout { gap: 14px; }
  #loginView .auth-page-story { padding: 34px 24px 26px; }
  #loginView .auth-page-story h1 { margin: 18px 0 12px; font-size: clamp(36px, 10vw, 46px); }
  #loginView .auth-story-copy { font-size: 13px; }
  .nx-chips { display: none; }
  .nx-preview-row:nth-child(n + 5) { display: none; }
  .nx-toast { right: 6px; bottom: -20px; font-size: 11px; }
  #loginView .auth-panel { padding: 34px 24px 30px; }
  #loginView .auth-panel h2 { font-size: 31px; }
  #loginView .auth-page-footer { flex-direction: column; gap: 4px; margin-top: 14px; text-align: center; }
}
@media (max-width: 600px) {
  .nx-preview-wrap,
  .nx-team { display: none; }
  #loginView .auth-page-story { padding: 28px 24px 30px; }
  #loginView .auth-page-story > .auth-story-watermark { right: -90px; bottom: -50px; width: 320px; }
  #loginView .nx-story-copy { padding-bottom: 0; }
}
@media (hover: none) {
  .nx-preview-wrap,
  .nx-toast { translate: none; }
  .nx-preview { transform: none; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .nx-aurora i,
  #loginView .auth-page-story > .nx-orbit,
  .nx-live-dot,
  .nx-spark,
  .nx-avatar-stack i,
  .nx-avatar-stack i::after,
  .is-warn .nx-preview-bar i {
    animation: none;
  }
  .nx-preview-wrap,
  .nx-toast { translate: none; }
  .nx-preview { transform: none; }
  .is-run .nx-preview-bar i { animation: none; width: 62%; }
  .nx-toast-a { animation: none; opacity: 1; }
  .nx-toast-b { display: none; }
}
