
  :root{
    /* ── Palette dominante DjeLock ── */
    --navy:      #104042;          /* couleur principale */
    --navy-deep: #0b2d2e;          /* variante sombre  */
    --navy-soft: #1a5558;          /* variante claire  */
    --turquoise: #104042;          /* accent lumineux  */
    --turquoise-bright: #104042;
    --gold:   #fff;
    --white:  #ffffff;
    --muted:  #6e9899;
    --danger: #ff6b6b;
    --success:#22c55e;
    --radius: 18px;
    --shadow-lg: 0 30px 80px -20px rgba(16,64,66,.45);
    --shadow-sm: 0 10px 30px -10px rgba(16,64,66,.25);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  /* ── FIX ESPACE VIDE : html + body + shell couvrent exactement 100vh ── */
  html, body {
    height: 100%;
    overflow: hidden;
  }
  body {
    font-family: 'Zen Maru Gothic', system-ui, -apple-system, sans-serif;
    color: var(--navy);
    background:
      radial-gradient(1200px 600px at -10% -10%, rgba(30,211,198,.12), transparent 60%),
      radial-gradient(900px 500px at 110% 110%, rgba(16,64,66,.08), transparent 60%),
      linear-gradient(180deg, #f2f9f9 0%, #e6f3f3 100%);
    -webkit-font-smoothing: antialiased;
  }

  .shell {
    height: 100vh;            /* hauteur exacte = viewport, plus de débordement */
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    overflow: hidden;         /* bloque tout espace en dessous */
  }

  /* ══════════════════════════════════════════════════════
     ASIDE (colonne gauche — fond sombre)
  ══════════════════════════════════════════════════════ */
  .aside {
    position: relative;
    overflow: hidden;          /* scroll interne si nécessaire */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px;
    isolation: isolate;
    height: 100%;             /* remplit exactement la hauteur de la grille */
  }
  .aside .bg {
    position: absolute; inset: 0;
    background-color: #104042;
    transform: scale(1.08);
    animation: float 14s ease-in-out infinite;
    z-index: -2;
  }
  .aside .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,
      rgba(11,45,46,.92) 0%,
      rgba(16,64,66,.72) 45%,
      rgba(30,211,198,.30) 100%);
    z-index: -1;
  }
  @keyframes float {
    0%,100%{ transform: scale(1.08) translate(0,0) }
    50%    { transform: scale(1.12) translate(-1.5%,-1%) }
  }

  /* ── Logo aside : image blanche ── */
  .brand-top {
    display: flex;
    align-items: center;
    height: 38px;
    object-fit: contain;
  }
 

  .aside-content { max-width: 520px; }

  .badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
  .badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 12.5px; font-weight: 500;
  }
  .badge .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--turquoise-bright);
    box-shadow: 0 0 0 0 rgba(52,232,216,.6);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%  { box-shadow: 0 0 0 0   rgba(52,232,216,.6) }
    70% { box-shadow: 0 0 0 12px rgba(52,232,216,0)  }
    100%{ box-shadow: 0 0 0 0   rgba(52,232,216,0)  }
  }

  .aside h1 {
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.05; font-weight: 800; letter-spacing: -.02em;
    margin-bottom: 16px;
  }
  .aside h1 span {
    background: linear-gradient(135deg, #fff, var(--turquoise-bright));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .aside p.lead {
    font-size: 16px; color: #fff; max-width: 480px; line-height: 1.55;
  }

  .trust {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 28px;
  }
  .trust .card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px; padding: 14px;
  }
  .trust .num { font-size: 20px; font-weight: 800; color: #fff; }
  .trust .lbl { font-size: 12px; color: #fff; margin-top: 4px; }

  .aside-footer {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: #fff;
    padding-top: 16px;
  }
  .aside-footer .gold { color: var(--gold); }

  /* ══════════════════════════════════════════════════════
     FORM SIDE (colonne droite — fond clair)
  ══════════════════════════════════════════════════════ */
  .form-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 32px;
    position: relative;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    /* Scrollbar invisible sur desktop — scroll toujours fonctionnel
       (molette / trackpad / clavier) mais aucune barre visible par défaut */
    scrollbar-width: none;
  }
  .form-side::-webkit-scrollbar { display: none; }

  .glow {
    position: absolute; width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(30,211,198,.25), transparent 60%);
    filter: blur(40px); z-index: 0; pointer-events: none;
    top: -120px; right: -120px;
  }
  .glow.b {
    top: auto; bottom: -150px; left: -150px;
    background: radial-gradient(circle, rgba(16,64,66,.18), transparent 60%);
  }

  .card {
    position: relative; z-index: 1;
    width: 100%; max-width: 460px;
    margin: auto;             /* distribue l'espace dispo au-dessus et en dessous */
                              /* → centrage vertical quand le contenu tient */
                              /* → scroll depuis le haut quand il déborde  */
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 24px;
    padding: 30px 32px;
    box-shadow: var(--shadow-lg);
    animation: rise .7s cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px) }
    to   { opacity: 1; transform: none }
  }

  /* ── Logo form : image colorée (teal) ── */
  .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    animation: rise .9s .05s cubic-bezier(.2,.7,.2,1) both;
  }
  .logo img {
    height: 52px;             /* taille adaptée au card */
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(16,64,66,.15));
  }
  .logo-sub {
    font-size: 12px;
    color: #4a7475;
    margin-top: 2px;
  }

  /* ══════════════════════════════════════════════════════
     TABS
  ══════════════════════════════════════════════════════ */
  .tabs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    background: #e6f3f3; border-radius: 14px; padding: 5px;
    margin: 14px 0 18px; position: relative;
  }
  .tabs button {
    background: transparent; border: 0; cursor: pointer;
    padding: 9px 0; font-weight: 600; font-size: 14px;
    color: #4a7475; border-radius: 10px;
    transition: color .3s; position: relative; z-index: 1;
  }
  .tabs button.active { color: #fff; }
  .tabs .indicator {
    position: absolute; top: 5px; left: 5px; bottom: 5px; width: calc(100% - 10px);
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    border-radius: 10px; transition: transform .35s cubic-bezier(.5,.1,.2,1);
    box-shadow: 0 6px 16px -4px rgba(16,64,66,.45);
  }
  .tabs.signup .indicator { transform: translateX(100%); }

  /* ══════════════════════════════════════════════════════
     FORMS
  ══════════════════════════════════════════════════════ */
  .title    { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 3px; }
  .subtitle { font-size: 13px; color: #4a7475; margin-bottom: 18px; }

  form { display: flex; flex-direction: column; gap: 12px; }

  .field { position: relative; }
  .field input {
    width: 100%; padding: 14px 16px 14px 46px;
    border-radius: 12px; border: 1.5px solid #cde4e4;
    background: #fff; font-size: 16px !important; font-family: inherit;
    color: var(--navy); transition: .25s; outline: none;
  }
  .field input::placeholder { color: transparent; }
  .field label {
    position: absolute; left: 46px; top: 50%; transform: translateY(-50%);
    color: #6a9899; font-size: 14px; pointer-events: none;
    transition: .2s; background: transparent; padding: 0 4px;
  }
  .field input:focus,
  .field input:not(:placeholder-shown) {
    border-color: var(--turquoise);
    box-shadow: 0 0 0 4px rgba(30,211,198,.15);
  }
  .field input:focus + label,
  .field input:not(:placeholder-shown) + label {
    top: 0; transform: translateY(-50%) scale(.88);
    background: #fff; color: var(--navy-soft); font-weight: 600;
  }
  .field .icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: #6e9899; width: 18px; height: 18px; pointer-events: none;
    transition: color .25s;
  }
  .field input:focus ~ .icon { color: var(--turquoise); }
  .field .toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; cursor: pointer; color: #6e9899;
    display: grid; place-items: center; padding: 4px;
  }
  .field .toggle:hover { color: var(--navy); }
  .field.invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255,107,107,.12); }
  .field.valid   input { border-color: var(--success); box-shadow: 0 0 0 4px rgba(34,197,94,.12);  }
  .hint {
    font-size: 11.5px; color: var(--danger);
    margin-top: 3px; display: none; padding-left: 4px;
  }
  .field.invalid .hint { display: block; }

  .row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: #4a7475;
  }
  .row a { color: var(--navy); font-weight: 600; text-decoration: none; }
  .row a:hover { color: var(--turquoise); }

  .check {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; user-select: none;
  }
  .check input { accent-color: var(--turquoise); }

  .btn {
    position: relative; overflow: hidden;
    border: 0; cursor: pointer; font-family: inherit;
    padding: 14px 18px; border-radius: 12px;
    color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 45%, var(--turquoise) 130%);
    box-shadow: 0 14px 30px -10px rgba(16,64,66,.45);
    transition: transform .15s, box-shadow .3s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
  }
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px -10px rgba(16,64,66,.5), 0 0 24px rgba(30,211,198,.35);
  }
  .btn:active  { transform: translateY(0) scale(.99); }
  .btn:disabled{ opacity: .75; cursor: wait; }
  .btn .spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
    animation: spin .8s linear infinite; display: none;
  }
  .btn.loading .spinner { display: inline-block; }
  .btn.loading .label   { opacity: .7; }
  @keyframes spin { to { transform: rotate(360deg) } }

  .divider {
    display: flex; align-items: center; gap: 12px;
    color: #6e9899; font-size: 12px; margin: 2px 0;
  }
  .divider::before, .divider::after {
    content: ""; flex: 1; height: 1px; background: #cde4e4;
  }

  .social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .social button {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px; border-radius: 12px; cursor: pointer;
    background: #fff; border: 1.5px solid #cde4e4;
    font-weight: 600; font-size: 13.5px; color: var(--navy);
    transition: .2s; font-family: inherit;
  }
  .social button:hover { border-color: var(--turquoise); transform: translateY(-1px); }

  .switch-line {
    text-align: center; font-size: 13px; color: #4a7475; margin-top: 4px;
  }
  .switch-line a {
    color: var(--turquoise); font-weight: 700;
    text-decoration: none; cursor: pointer;
  }

  .pane { display: none; animation: rise .4s ease both; }
  .pane.active { display: block; }

  /* ══════════════════════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════════════════════ */
  @media (max-width: 980px) {
    /* Scroll vertical libre, jamais de débordement horizontal */
    html, body {
      overflow-x: hidden;
      overflow-y: auto;
      height: auto;
    }
    .shell {
      height: auto;
      overflow: visible;
      grid-template-columns: 1fr;
    }
    .aside {
      height: auto;
      overflow: visible;
      min-height: 320px;
      padding: 28px 32px;
    }
    .form-side {
      height: auto;
      /* overflow: visible sur les deux axes — plus de conflit CSS
         le scroll est pris en charge par html/body */
      overflow: visible;
      padding: 28px 18px;
    }
    /* Les glows (480px avec offsets négatifs) sont la cause du scroll
       horizontal parasite sur mobile — on les masque */
    .glow { display: none; }
    /* Réinitialise margin:auto en mobile pour coller au flux normal */
    .form-side > .card { margin: 0 auto; }
  }
  @media (max-width: 520px) {
    .aside  { padding: 22px; min-height: 280px; }
    .trust  { display: none; }
    .card   { padding: 24px 20px; border-radius: 20px; }
    .social { grid-template-columns: 1fr; }
  }
