/* =====================================================================
   BtoB.email : page de connexion à l'administration (fr/uk/us login)
   Mise en page reprise de captain.legal (account/login.html) : panneau de
   marque sombre à gauche, carte de connexion à droite. Jetons de site.css.
   ===================================================================== */

@keyframes cx-monte { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes cx-flotte-a { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-10px) rotate(-12deg); } }
@keyframes cx-flotte-b { 0%, 100% { transform: translateY(0) rotate(9deg) scale(.8); } 50% { transform: translateY(-8px) rotate(9deg) scale(.8); } }
@keyframes cx-flotte-c { 0%, 100% { transform: translateY(0) rotate(-5deg) scale(.66); } 50% { transform: translateY(-12px) rotate(-5deg) scale(.66); } }
@keyframes cx-tourne { to { transform: rotate(360deg); } }

body.cx { min-height: 100vh; margin: 0; background: var(--gris); }
.cx-cadre { display: flex; min-height: 100vh; min-height: 100svh; }

/* ---------- Panneau de marque (gauche) ---------- */
.cx-marque {
    position: relative; overflow: hidden; flex: none; width: 44%;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 52px 56px 48px; background: #11161C; color: #fff;
}
.cx-marque::before { /* trame de points */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .045) 1px, transparent 0);
    background-size: 26px 26px;
}
.cx-halo { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(110px); }
.cx-halo--1 { right: -110px; bottom: -110px; width: 460px; height: 460px; background: var(--d4); opacity: .22; }
.cx-halo--2 { left: -70px; top: -90px; width: 300px; height: 300px; background: var(--surligneur); opacity: .07; filter: blur(90px); }

/* Silhouettes de fichiers (tableaux) qui flottent */
.cx-fichier { position: absolute; pointer-events: none; width: 64px; height: 50px; }
.cx-fichier--1 { right: 13%; top: 9%; opacity: .75; animation: cx-flotte-a 5.5s ease-in-out infinite; }
.cx-fichier--2 { right: 5%; top: 35%; opacity: .5; animation: cx-flotte-b 6.5s ease-in-out infinite; }
.cx-fichier--3 { right: 22%; top: 57%; opacity: .4; animation: cx-flotte-c 7s ease-in-out 1s infinite; }

.cx-logo { position: relative; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--titre); font-weight: 700; font-size: 23px; letter-spacing: -.01em; }
.cx-logo .logo-marque { width: 28px; height: 28px; }
.cx-logo span span { color: var(--d3); font-weight: 600; }
.cx-logo:hover { color: #fff; }

.cx-accroche { position: relative; margin-top: 80px; max-width: 400px; }
.cx-sur { margin: 0 0 20px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--surligneur); }
.cx-titre { margin: 0 0 18px; font-family: var(--titre); font-weight: 600; font-size: clamp(1.9rem, 2.7vw, 2.6rem); line-height: 1.08; letter-spacing: -.015em; color: #fff; }
.cx-titre em { display: block; font-style: normal; color: var(--d3); }
.cx-chapo { margin: 0; max-width: 320px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .55); }

.cx-garanties { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cx-garanties li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.cx-garanties span { flex: none; width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: rgba(115, 183, 174, .12); border: 1px solid rgba(115, 183, 174, .25); }
.cx-garanties svg { width: 14px; height: 14px; fill: none; stroke: var(--d3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Carte de connexion (droite) ---------- */
.cx-zone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.cx-logo-mobile { display: none; margin-bottom: 28px; color: var(--encre); }
.cx-logo-mobile:hover { color: var(--encre); }
.cx-logo-mobile span span { color: var(--action); }
.cx-boite { width: 100%; max-width: 420px; }

.cx-carte {
    background: var(--fond); border: 1px solid var(--filet); border-radius: 18px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(20, 24, 31, .07), 0 2px 8px rgba(20, 24, 31, .04);
    animation: cx-monte .5s cubic-bezier(.22, 1, .36, 1) .05s both;
}
.cx-carte-barre { height: 3px; background: linear-gradient(90deg, #11161C 0%, var(--action) 55%, var(--surligneur) 100%); }
.cx-carte-corps { padding: 36px 36px 32px; }
.cx-carte h1 { margin: 0 0 8px; font-family: var(--titre); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -.015em; color: var(--encre); }
.cx-intro { margin: 0 0 26px; font-size: 14.5px; line-height: 1.55; color: var(--encre-3); }

.cx-erreur { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 20px; padding: 11px 14px; border-radius: 10px; border: 1px solid #F2B8B2; background: var(--alerte-pale); color: var(--alerte); font-size: 14px; font-weight: 600; }
.cx-erreur:empty { display: none; }

.cx-champ { margin-bottom: 22px; }
.cx-champ label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--encre); }
.cx-saisie { position: relative; }
.cx-saisie input {
    width: 100%; box-sizing: border-box; min-height: 48px; padding: 11px 48px 11px 14px;
    border: 1.5px solid var(--filet); border-radius: 11px; background: #FAFBFB;
    font: 16px var(--texte); color: var(--encre); outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.cx-saisie input:focus { border-color: var(--action); background: var(--fond); box-shadow: 0 0 0 3px rgba(11, 94, 87, .14); }
.cx-oeil {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px; background: none; color: var(--encre-3); cursor: pointer;
}
.cx-oeil:hover { color: var(--encre); background: var(--gris); }
.cx-oeil:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.cx-oeil svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-oeil .cx-cache { display: none; }
.cx-oeil[aria-pressed="true"] .cx-voir { display: none; }
.cx-oeil[aria-pressed="true"] .cx-cache { display: block; }

body.cx input.cx-bouton {
    width: 100%; min-height: 50px; padding: 12px 18px;
    border: 0; border-radius: 11px; background: #11161C; color: #fff;
    font: 700 16px var(--texte); letter-spacing: .01em; cursor: pointer;
    transition: background-color .18s ease, transform .1s ease;
}
body.cx input.cx-bouton:hover { background: var(--action); }
body.cx input.cx-bouton:active { transform: scale(.985); }
body.cx input.cx-bouton:focus-visible { outline: 3px solid rgba(11, 94, 87, .45); outline-offset: 2px; }
body.cx .cx-envoi input.cx-bouton { background: var(--action); cursor: progress; }
.cx-attente { display: none; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-size: 13.5px; color: var(--encre-3); }
.cx-attente::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cx-tourne .7s linear infinite; }
.cx-envoi .cx-attente { display: flex; }

.cx-carte-pied { margin: 0; padding: 16px 36px; border-top: 1px solid var(--gris-2); background: #FAFBFB; font-size: 13.5px; line-height: 1.5; color: var(--encre-3); }
.cx-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 22px 0 0; font-size: 13.5px; animation: cx-monte .5s cubic-bezier(.22, 1, .36, 1) .2s both; }
.cx-liens a { color: var(--encre-3); text-decoration: none; }
.cx-liens a:hover { color: var(--action); text-decoration: underline; }

/* ---------- Petits écrans : panneau de marque masqué ---------- */
@media (max-width: 1023px) {
    .cx-marque { display: none; }
    .cx-logo-mobile { display: inline-flex; }
}
@media (max-width: 479px) {
    .cx-zone { padding: 28px 16px; justify-content: flex-start; padding-top: 40px; }
    .cx-carte-corps { padding: 28px 22px 24px; }
    .cx-carte-pied { padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .cx-carte, .cx-liens, .cx-fichier { animation: none; }
    .cx-bouton, .cx-saisie input { transition: none; }
}

/* ---------- Pages d'accès au compte (inscription, mot de passe oublié, réinitialisation, vérification) ---------- */
.cx-info { margin: 0 0 20px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--d2); background: var(--d1); color: var(--d5); font-size: 14px; font-weight: 600; }
.cx-ligne-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.cx-ligne-label label { margin: 0; }
.cx-ligne-label a, .cx-carte-pied a { color: var(--action); font-weight: 600; text-decoration: none; }
.cx-ligne-label a { font-size: 13.5px; }
.cx-ligne-label a:hover, .cx-carte-pied a:hover { text-decoration: underline; }
.cx-aide { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--encre-3); }
.cx-champ input[type="email"], .cx-champ input[type="text"] {
    width: 100%; box-sizing: border-box; min-height: 48px; padding: 11px 14px;
    border: 1.5px solid var(--filet); border-radius: 11px; background: #FAFBFB;
    font: 16px var(--texte); color: var(--encre); outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.cx-champ input[type="email"]:focus, .cx-champ input[type="text"]:focus { border-color: var(--action); background: var(--fond); box-shadow: 0 0 0 3px rgba(11, 94, 87, .14); }
.cx-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.cx-facultatif { font-weight: 400; color: var(--encre-3); }
.cx-case { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 22px; font-size: 14px; line-height: 1.45; color: var(--encre-2); }
.cx-case input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--action); }
.cx-case a { color: var(--action); font-weight: 600; }
.cx-etat { text-align: center; padding: 6px 0 4px; }
.cx-etat-icone { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--d1); color: var(--d5); }
.cx-etat-icone--alerte { background: var(--alerte-pale); color: var(--alerte); }
.cx-etat-icone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-etat p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--encre-2); }
.cx-etat strong { color: var(--encre); word-break: break-all; }
.cx-lien-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 11px; background: #11161C; color: #fff; font-weight: 700; text-decoration: none; }
.cx-lien-bouton:hover { background: var(--action); color: #fff; }
@media (max-width: 479px) { .cx-duo { grid-template-columns: minmax(0, 1fr); } }
