/* Page de connexion — copie EXACTE de RELIX relance/web/static/connexion.css @ 1202b50. Ne pas modifier ici. */
/* Page de connexion RELIX (oct. 2026) — maquette validée par Omid : SaaS sombre premium, deux colonnes.
   Aucune ressource externe (police hébergée par RELIX) : compatible avec la CSP stricte de la page. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/vendor/inter-latin-wght-normal.woff2") format("woff2");
}
:root {
  --cx-fond: #05051a; --cx-carte: rgba(13, 12, 34, .82); --cx-ligne: rgba(255, 255, 255, .09);
  --cx-violet: #7c5cff; --cx-violet-2: #9a7bff; --cx-lavande: #b9a6ff; --cx-texte: #f5f4ff; --cx-pale: #a6a3c2;
  --cx-champ: rgba(8, 8, 26, .72); --cx-rouge: #ff8a9a; --cx-vert: #6ee7b7;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.cx {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--cx-texte);
  background: radial-gradient(1200px 800px at 18% 8%, #1a1448 0%, rgba(26, 20, 72, 0) 55%),
              radial-gradient(900px 700px at 95% 90%, #1b1250 0%, rgba(27, 18, 80, 0) 60%),
              linear-gradient(180deg, #06061c 0%, #05051a 100%);
  background-color: var(--cx-fond); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

/* Décor : grand arc lumineux (haut gauche), halo, vague (bas) */
.cx-decor { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.cx-arc {
  position: absolute; width: 1100px; height: 1100px; left: -600px; top: -560px; border-radius: 50%;
  border: 2px solid rgba(150, 120, 255, .55);
  box-shadow: 0 0 40px 6px rgba(124, 92, 255, .35), inset 0 0 80px rgba(124, 92, 255, .25);
  background: radial-gradient(circle at 70% 70%, rgba(80, 50, 200, .22), rgba(10, 8, 40, 0) 60%);
}
.cx-halo {
  position: absolute; width: 700px; height: 700px; right: -260px; top: 30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, .22) 0%, rgba(124, 92, 255, 0) 65%);
}
.cx-vague { position: absolute; left: 0; right: 0; bottom: -40px; width: 100%; height: 46vh; }

/* Grille : deux colonnes équilibrées */
.cx-grille {
  position: relative; z-index: 1; min-height: 100vh; max-width: 1420px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 590px); align-items: center;
  gap: 56px; padding: 56px 72px;
}

/* Colonne gauche : identité */
.cx-marque { padding-left: 8px; }
.cx-logo { display: block; height: 74px; width: auto; margin: 0 0 56px -8px; }
.cx-titre {
  margin: 0; font-weight: 700; letter-spacing: -0.032em; line-height: 1.12; font-size: clamp(38px, 3.35vw, 56px);
}
.cx-titre span { display: block; white-space: nowrap; }
.cx-degrade {
  background: linear-gradient(92deg, #8b5cf6 0%, #a78bfa 55%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cx-trait { display: block; width: 48px; height: 2px; margin: 44px 0 40px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cx-violet), rgba(124, 92, 255, 0)); }
.cx-atouts { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: nowrap; }
.cx-atouts li { display: flex; align-items: center; gap: 12px; min-width: 0; white-space: nowrap; }
.cx-pastille {
  flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(124, 92, 255, .10); border: 1px solid rgba(160, 135, 255, .18);
}
.cx-pastille svg { width: 20px; height: 20px; fill: none; stroke: var(--cx-lavande); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-atouts b { display: block; font-size: 13.5px; font-weight: 600; color: var(--cx-texte); }
.cx-atouts small { display: block; font-size: 12px; color: var(--cx-pale); margin-top: 2px; }

/* Carte de connexion */
.cx-carte {
  position: relative; width: 100%; max-width: 590px; justify-self: end; padding: 58px 54px 26px;
  background: linear-gradient(180deg, rgba(20, 18, 48, .86), rgba(11, 10, 30, .86)); border-radius: 24px;
  border: 1px solid rgba(150, 125, 255, .38);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, .08), 0 0 60px rgba(124, 92, 255, .18), 0 30px 80px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.cx-espace {
  display: inline-block; margin: -20px 0 22px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--cx-lavande);
  background: rgba(124, 92, 255, .12); border: 1px solid rgba(160, 135, 255, .35);
}
.cx-ecran h2 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.cx-sous { margin: 10px 0 34px; color: var(--cx-pale); font-size: 16px; line-height: 1.5; }
.cx-champ { display: block; margin-bottom: 22px; }
.cx-champ > span:first-child { display: block; font-size: 15px; font-weight: 500; margin-bottom: 9px; color: #e9e7fb; }
.cx-saisie {
  position: relative; display: flex; align-items: center; height: 54px; border-radius: 10px;
  background: var(--cx-champ); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .15s, box-shadow .15s;
}
.cx-saisie:focus-within { border-color: rgba(150, 125, 255, .85); box-shadow: 0 0 0 3px rgba(124, 92, 255, .22); }
.cx-ico { flex: none; width: 20px; height: 20px; margin-left: 16px; fill: none; stroke: #9b98b8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cx-saisie input {
  flex: 1; min-width: 0; height: 100%; padding: 0 16px 0 12px; border: 0; outline: 0; background: transparent;
  color: var(--cx-texte); font: inherit; font-size: 16px;
}
.cx-saisie input::placeholder { color: #7f7c9c; }
.cx-saisie input.cx-code { letter-spacing: .32em; font-size: 20px; padding-left: 16px; }
.cx-oeil {
  flex: none; width: 48px; height: 100%; border: 0; background: transparent; color: #9b98b8; cursor: pointer;
  display: grid; place-items: center; border-radius: 0 10px 10px 0;
}
.cx-oeil svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cx-oeil[aria-pressed="true"] .cx-barre { display: none; }
.cx-oeil:hover, .cx-oeil:focus-visible { color: var(--cx-lavande); outline: 0; }
.cx-ligne { display: flex; justify-content: flex-end; margin: -6px 0 26px; }
.cx-centre { justify-content: center; margin: 22px 0 0; }
.cx-lien { color: var(--cx-violet-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.cx-lien:hover, .cx-lien:focus-visible { color: var(--cx-lavande); text-decoration: underline; outline: 0; }
.cx-bouton {
  width: 100%; height: 56px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 17px; font-weight: 600;
  color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, #7357ff 0%, #8b6cff 100%);
  box-shadow: 0 10px 30px rgba(124, 92, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.cx-bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-bouton:hover { filter: brightness(1.07); box-shadow: 0 12px 36px rgba(124, 92, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .2); }
.cx-bouton:active { transform: translateY(1px); }
.cx-bouton:focus-visible { outline: 2px solid var(--cx-lavande); outline-offset: 3px; }
.cx-bouton[disabled] { opacity: .65; cursor: progress; }
.cx-message { margin: -8px 0 18px; padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45;
  color: var(--cx-rouge); background: rgba(255, 90, 120, .08); border: 1px solid rgba(255, 120, 140, .25); }
.cx-message.cx-info { color: var(--cx-vert); background: rgba(52, 211, 153, .08); border-color: rgba(110, 231, 183, .25); }
.cx-regle { margin: -10px 0 20px; font-size: 13px; color: var(--cx-pale); }
.cx-qr { display: grid; place-items: center; margin: 0 0 14px; }
.cx-qr img { width: 176px; height: 176px; border-radius: 12px; background: #fff; padding: 8px; image-rendering: pixelated; }
.cx-cle { margin: 0 0 22px; text-align: center; font-size: 13px; color: var(--cx-pale); word-break: break-all; }
.cx-cle code { color: var(--cx-texte); font-size: 13px; letter-spacing: .08em; }
.cx-securite {
  display: flex; align-items: center; gap: 14px; margin-top: 60px; padding: 18px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--cx-ligne);
}
.cx-bouclier { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(52, 211, 153, .16), rgba(52, 211, 153, .06)); border: 1px solid rgba(110, 231, 183, .22); }
.cx-bouclier svg { width: 22px; height: 22px; fill: rgba(110, 231, 183, .18); stroke: #8ff0c8; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.cx-securite b { display: block; font-size: 15px; font-weight: 600; }
.cx-securite small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--cx-pale); }
[hidden] { display: none !important; }

/* Tablette */
@media (max-width: 1240px) {
  .cx-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 40px; padding: 48px 40px; }
  .cx-carte { padding: 48px 40px 26px; }
  .cx-atouts { flex-wrap: wrap; gap: 18px 22px; }
  .cx-titre span { white-space: normal; }
}
/* Mobile et petite tablette : une colonne, identité compacte au-dessus de la carte */
@media (max-width: 900px) {
  .cx-grille { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 20px 40px; align-content: start; }
  .cx-marque { padding: 0; text-align: center; }
  .cx-logo { height: 56px; margin: 8px auto 26px; }
  .cx-titre { font-size: clamp(30px, 8vw, 44px); }
  .cx-trait, .cx-atouts { display: none; }
  .cx-carte { justify-self: center; max-width: 520px; padding: 34px 22px 24px; border-radius: 20px; }
  .cx-espace { margin: -8px 0 16px; }
  .cx-ecran h2 { font-size: 28px; }
  .cx-sous { margin-bottom: 26px; font-size: 15px; }
  .cx-securite { margin-top: 30px; }
  .cx-arc { width: 760px; height: 760px; left: -470px; top: -470px; }
  .cx-vague { height: 30vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
