/* ═══════════════════════════════════════════════════════════════════════════
   dropfleet.eu — Inscription Dispatch (assistant premium)
   S'appuie sur login.css (atomes .lf-*, .lf-sso-btn, .lf-or) + landing.css (nav).
   Palette : Navy #0B2545 · Blue #1877F2 · Orange #FF6B00 (accent Dispatch).
   ═══════════════════════════════════════════════════════════════════════════ */

.page-register-portal,
.page-register-portal body { background: var(--lp-navy, #0B2545) !important; min-height: 100dvh; }

:root {
  --reg-orange: #FF6B00;
  --reg-orange-2: #ff8a40;
  --reg-blue: #1877F2;
  --reg-ok: #00d97e;
  --reg-err: #ff5b5b;
  --reg-line: rgba(255,255,255,.12);
  --reg-glass: rgba(255,255,255,.07);
}

/* ── Shell ── */
.reg-page {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 5.5rem 1.25rem 3rem;
  position: relative; overflow: hidden;
}
.reg-page::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(24,119,242,.16) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 85% 90%, rgba(255,107,0,.12) 0%, transparent 60%);
}
/* halo qui « respire » — marketing sensoriel, désactivé si reduced-motion */
.reg-page::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(ellipse 40% 35% at 50% 0%, rgba(255,107,0,.10) 0%, transparent 70%);
  animation: regBreathe 9s ease-in-out infinite;
}
@keyframes regBreathe { 0%,100%{ transform: scale(1); opacity:.4 } 50%{ transform: scale(1.15); opacity:.65 } }

/* ── Card ── */
.reg-card {
  width: 100%; max-width: 480px; position: relative; z-index: 1;
  background: var(--reg-glass);
  border: 1.5px solid rgba(255,107,0,.22);
  border-radius: 26px;
  padding: 1.9rem 1.8rem 1.7rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ── Badge portail ── */
.reg-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .8rem; border-radius: 20px; margin-bottom: 1rem;
  background: rgba(255,107,0,.16); color: var(--reg-orange-2);
}

/* ── Stepper ── */
.reg-stepper { display: flex; align-items: center; margin: .25rem 0 1.5rem; }
.reg-step { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 0 0 auto; }
.reg-step__dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.4);
  border: 1.5px solid rgba(255,255,255,.12);
  transition: background .3s, color .3s, border-color .3s, transform .3s, box-shadow .3s;
}
.reg-step__label {
  font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.35); transition: color .3s; white-space: nowrap;
}
.reg-step__bar { flex: 1 1 auto; height: 2px; background: rgba(255,255,255,.12); margin: 0 .25rem 1.1rem; position: relative; border-radius: 2px; }
.reg-step__bar::after { content:''; position:absolute; inset:0; width:0; background: linear-gradient(90deg,var(--reg-orange),var(--reg-orange-2)); border-radius:2px; transition: width .5s ease; }
.reg-step__bar.is-filled::after { width: 100%; }

.reg-step.is-active .reg-step__dot {
  background: var(--reg-orange); color: #fff; border-color: var(--reg-orange);
  transform: scale(1.08); box-shadow: 0 8px 22px rgba(255,107,0,.4);
}
.reg-step.is-active .reg-step__label { color: #fff; }
.reg-step.is-done .reg-step__dot { background: rgba(0,217,126,.18); color: var(--reg-ok); border-color: rgba(0,217,126,.5); }
.reg-step.is-done .reg-step__label { color: rgba(255,255,255,.55); }

/* ── Titles ── */
.reg-title { font-size: 1.4rem; font-weight: 900; color: #fff; margin: 0 0 .3rem; letter-spacing: -.01em; }
.reg-sub   { font-size: .86rem; color: rgba(255,255,255,.45); margin: 0 0 1.3rem; line-height: 1.5; }
.reg-sub strong { color: rgba(255,255,255,.85); }

/* ── Panels + transitions ── */
.reg-panel { display: none; animation: regIn .45s cubic-bezier(.22,.61,.36,1); }
.reg-panel.is-active { display: block; }
@keyframes regIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Champs (réutilise .lf-*) — quelques compléments ── */
.reg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 420px) { .reg-row2 { grid-template-columns: 1fr; } }
.reg-hint { font-size: .72rem; color: rgba(255,255,255,.4); margin: .35rem 0 0; line-height: 1.45; }
.reg-field-err { font-size: .74rem; color: var(--reg-err); margin: .3rem 0 0; min-height: 0; display: none; }
.reg-field-err.is-shown { display: block; }
.lf-input.is-invalid { border-color: rgba(255,91,91,.7) !important; background: rgba(255,91,91,.06) !important; }
.lf-input.is-valid { border-color: rgba(0,217,126,.55) !important; }

/* ── OTP boxes ── */
.reg-otp { display: flex; gap: .55rem; justify-content: space-between; margin: .3rem 0 .4rem; }
.reg-otp__box {
  width: 100%; aspect-ratio: 3/4; max-height: 64px;
  text-align: center; font-size: 1.5rem; font-weight: 800; color: #fff;
  background: rgba(255,255,255,.07); border: 1.5px solid var(--reg-line);
  border-radius: 14px; outline: none; -webkit-appearance: none;
  transition: border-color .2s, background .2s, transform .1s;
}
.reg-otp__box:focus { border-color: var(--reg-orange); background: rgba(255,107,0,.08); transform: translateY(-2px); }
.reg-otp__box.is-filled { border-color: rgba(255,107,0,.5); }
.reg-otp__box.is-error { border-color: var(--reg-err); animation: regShake .4s; }
@keyframes regShake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

.reg-resend { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .9rem; font-size: .8rem; color: rgba(255,255,255,.45); }
.reg-resend button { background: none; border: none; color: var(--reg-orange-2); font-weight: 700; cursor: pointer; font-size: .8rem; padding: 0; }
.reg-resend button:disabled { color: rgba(255,255,255,.3); cursor: default; }

/* ── Password strength ── */
.reg-strength { margin: .55rem 0 .2rem; }
.reg-strength__track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; display: flex; gap: 3px; }
.reg-strength__seg { flex: 1; background: rgba(255,255,255,.1); border-radius: 6px; transition: background .3s; }
.reg-strength__seg.on-1 { background: #ff5b5b; }
.reg-strength__seg.on-2 { background: #ffa53b; }
.reg-strength__seg.on-3 { background: #ffd23b; }
.reg-strength__seg.on-4 { background: var(--reg-ok); }
.reg-strength__label { font-size: .72rem; margin-top: .35rem; color: rgba(255,255,255,.5); }
.reg-checks { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .8rem; }
.reg-checks li { font-size: .72rem; color: rgba(255,255,255,.4); display: flex; align-items: center; gap: .4rem; transition: color .25s; }
.reg-checks li i { font-size: .7rem; opacity: .5; }
.reg-checks li.ok { color: var(--reg-ok); } .reg-checks li.ok i { opacity: 1; }

/* ── Trust signals (sensory premium / conversion) ── */
.reg-trust { display: flex; flex-wrap: wrap; gap: .5rem .9rem; justify-content: center; margin-top: 1.2rem; }
.reg-trust span { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; color: rgba(255,255,255,.42); font-weight: 600; }
.reg-trust i { color: var(--reg-ok); font-size: .72rem; }
.reg-trial {
  display: flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem;
  padding: .6rem .85rem; border-radius: 12px;
  background: rgba(0,217,126,.08); border: 1px solid rgba(0,217,126,.22);
  font-size: .78rem; color: rgba(255,255,255,.7);
}
.reg-trial i { color: var(--reg-ok); }
.reg-trial strong { color: #fff; }

/* ── Consent ── */
.reg-consent { display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0 .2rem; cursor: pointer; }
.reg-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--reg-orange); cursor: pointer; flex-shrink: 0; }
.reg-consent span { font-size: .76rem; color: rgba(255,255,255,.55); line-height: 1.5; }
.reg-consent a { color: var(--reg-orange-2); text-decoration: none; }
.reg-consent a:hover { text-decoration: underline; }

/* ── Flash ── */
.reg-flash {
  display: none; align-items: center; gap: .55rem; margin-bottom: 1rem;
  padding: .75rem 1rem; border-radius: 12px; font-size: .82rem;
  background: rgba(255,91,91,.1); border: 1px solid rgba(255,91,91,.3); color: #ff9a9a;
}
.reg-flash.is-shown { display: flex; }
.reg-flash.is-ok { background: rgba(0,217,126,.1); border-color: rgba(0,217,126,.3); color: #67e0ac; }

/* ── Back / footer links ── */
.reg-foot { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 1.3rem; font-size: .8rem; color: rgba(255,255,255,.4); }
.reg-foot a { color: rgba(255,255,255,.7); text-decoration: none; font-weight: 600; }
.reg-foot a:hover { color: #fff; }
.reg-back { display: inline-flex; align-items: center; gap: .35rem; background: none; border: none; color: rgba(255,255,255,.4); font-size: .8rem; cursor: pointer; padding: 0; }
.reg-back:hover { color: rgba(255,255,255,.75); }

/* ── Success ── */
.reg-success { text-align: center; padding: .5rem 0; }
.reg-success__ring {
  width: 92px; height: 92px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,217,126,.14); border: 2px solid rgba(0,217,126,.5);
  color: var(--reg-ok); font-size: 2.4rem;
  animation: regPop .5s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes regPop { 0%{transform:scale(0);opacity:0} 60%{transform:scale(1.12)} 100%{transform:scale(1);opacity:1} }

/* ── Passkey card ── */
.reg-passkey {
  display: flex; gap: .85rem; align-items: flex-start; text-align: left;
  padding: 1rem; border-radius: 16px; margin: 1.2rem 0;
  background: rgba(24,119,242,.07); border: 1px solid rgba(24,119,242,.22);
}
.reg-passkey__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(24,119,242,.16); color: #5fa8e8; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.reg-passkey__t { font-size: .9rem; font-weight: 800; color: #fff; margin: 0 0 .2rem; }
.reg-passkey__d { font-size: .76rem; color: rgba(255,255,255,.5); margin: 0; line-height: 1.45; }

.lf-submit--ghost { background: rgba(255,255,255,.08); }
.lf-submit--ghost:hover { background: rgba(255,255,255,.14); }

/* ── Spinner inline ── */
.reg-spin { display: inline-block; animation: regSpin .8s linear infinite; }
@keyframes regSpin { to { transform: rotate(360deg); } }

/* ── Accessibilité : mouvement réduit ── */
@media (prefers-reduced-motion: reduce) {
  .reg-page::after, .reg-panel, .reg-success__ring, .reg-otp__box, .reg-step__dot { animation: none !important; transition: none !important; }
}

/* ── Focus visible (a11y) ── */
.reg-card a:focus-visible, .reg-card button:focus-visible, .reg-card input:focus-visible {
  outline: 2px solid var(--reg-orange-2); outline-offset: 2px;
}
