:root {
  --fl-auth-cyan-50: #eff8f9;
  --fl-auth-cyan-300: #63dbeb;
  --fl-auth-cyan-500: #00a2b7;
  --fl-auth-cyan-700: #007f91;
  --fl-auth-cyan-800: #006775;
  --fl-auth-ink: #10212b;
  --fl-auth-slate: #536876;
  --fl-auth-border: #ddebef;
  --fl-auth-ivory: #fbfaf5;
  --fl-auth-white: #fff;
  --fl-auth-danger: #b42318;
  --fl-auth-success: #067647;
}

body.fl-auth-shell {
  background: var(--fl-auth-ivory);
  color: var(--fl-auth-ink);
  font-family: "Poppins", sans-serif;
  margin: 0;
  min-width: 320px;
  padding: 0 !important;
}

body.fl-auth-shell--signup .footer-bottom-bar,
body.fl-auth-shell--signup [data-fl-mobile-navigation] {
  display: none !important;
}

body.fl-auth-shell--signup.fl-has-mobile-navigation {
  padding-bottom: 0 !important;
}

.fl-auth-shell *,
.fl-auth-shell *::before,
.fl-auth-shell *::after { box-sizing: border-box; }

.fl-auth-shell a { color: var(--fl-auth-cyan-700); }
.fl-auth-shell .cc-window.cc-invisible { pointer-events: none !important; }
.fl-auth-shell a:focus-visible,
.fl-auth-shell button:focus-visible,
.fl-auth-shell input:focus-visible,
.fl-auth-shell select:focus-visible {
  outline: 3px solid var(--fl-auth-cyan-300);
  outline-offset: 3px;
}

.fl-auth-skip {
  background: var(--fl-auth-white);
  border-radius: 10px;
  left: 12px;
  opacity: 0;
  padding: 10px 16px;
  pointer-events: none;
  position: fixed;
  top: 12px;
  transform: translateY(calc(-100% - 24px));
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}
.fl-auth-skip:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fl-auth-layout {
  display: grid;
  grid-template-columns: minmax(420px, 600px) minmax(600px, 1fr);
  min-height: 100vh;
}

.fl-auth-brand {
  background: linear-gradient(100deg, var(--fl-auth-cyan-700), rgba(0, 162, 183, .94));
  box-shadow: 0 18px 42px rgba(0, 115, 140, .16);
  color: var(--fl-auth-white);
  min-height: 100vh;
  padding: 56px 64px;
  position: relative;
}

.fl-auth-brand__logo,
.fl-auth-card__logo {
  align-items: center;
  background: var(--fl-auth-white);
  border-radius: 16px;
  display: flex;
  width: fit-content;
}
.fl-auth-brand__logo { height: 95px; padding: 24px 32px; }
.fl-auth-brand__logo img { display: block; height: auto; width: 249px; }
.fl-auth-card__logo { margin-bottom: 32px; padding: 12px 16px; }
.fl-auth-card__logo img { display: block; height: auto; width: 184px; }

.fl-auth-brand__content { margin-top: 52px; max-width: 472px; }
.fl-auth-eyebrow,
.fl-auth-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fl-auth-brand h2 {
  color: var(--fl-auth-white);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(34px, 3.25vw, 42px);
  font-weight: 800;
  line-height: 1.19;
  margin: 34px 0 36px;
}
.fl-auth-brand__content > p:last-of-type {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  opacity: .84;
}
.fl-auth-roadmap {
  background: var(--fl-auth-white);
  border-radius: 18px;
  color: var(--fl-auth-ink);
  display: grid;
  font-size: 12px;
  gap: 5px;
  margin-top: 48px;
  padding: 18px 20px;
}
.fl-auth-roadmap strong,
.fl-auth-partners > strong { color: var(--fl-auth-cyan-700); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.fl-auth-partners { margin-top: 34px; }
.fl-auth-partners > div { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.fl-auth-partners img { background: #fff; border-radius: 12px; height: 70px; object-fit: contain; padding: 14px; width: 188px; }

.fl-auth-main {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 64px 40px;
}
.fl-auth-card {
  background: var(--fl-auth-white);
  border-radius: 28px;
  box-shadow: 0 24px 64px -8px rgba(7, 29, 43, .12);
  padding: 40px 48px;
  width: min(600px, 100%);
}
.fl-auth-card h1 {
  color: var(--fl-auth-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.28;
  margin: 0 0 12px;
}
.fl-auth-kicker { color: var(--fl-auth-cyan-700); margin: 0 0 12px; }
.fl-auth-lead { color: var(--fl-auth-slate); font-size: 14px; line-height: 1.65; margin: 0 0 30px; }
.fl-auth-form { display: grid; gap: 20px; }
.fl-auth-field { display: grid; gap: 7px; min-width: 0; }
.fl-auth-field label,
.fl-auth-fieldset legend { color: var(--fl-auth-ink); font-size: 13px; font-weight: 600; margin: 0; }
.fl-auth-field small,
.fl-auth-fieldset small { color: var(--fl-auth-slate); font-size: 11px; line-height: 1.5; }
.fl-auth-field input,
.fl-auth-field select,
.fl-auth-fieldset select,
.fl-auth-custom-fields input,
.fl-auth-custom-fields select,
.fl-auth-custom-fields textarea {
  background: var(--fl-auth-white);
  border: 1px solid var(--fl-auth-border);
  border-radius: 12px;
  color: var(--fl-auth-ink);
  font: inherit;
  font-size: 15px;
  min-height: 52px;
  padding: 12px 16px;
  width: 100%;
}
.fl-auth-field input::placeholder,
.fl-auth-custom-fields input::placeholder { color: var(--fl-auth-slate); opacity: .9; }
.fl-auth-field input:focus,
.fl-auth-field select:focus,
.fl-auth-fieldset select:focus,
.fl-auth-custom-fields input:focus,
.fl-auth-custom-fields select:focus,
.fl-auth-custom-fields textarea:focus { border-color: var(--fl-auth-cyan-700); box-shadow: 0 0 0 4px rgba(99, 219, 235, .24); }
.fl-auth-field input.is-invalid,
.fl-auth-field select.is-invalid,
.fl-auth-fieldset select.is-invalid { border-color: var(--fl-auth-danger); }
.fl-auth-field input.is-valid { border-color: var(--fl-auth-success); }

.fl-auth-username-status {
  align-items: center;
  color: var(--fl-auth-slate);
  display: flex;
  font-size: 11px;
  gap: 8px;
  line-height: 1.5;
  min-height: 20px;
}
.fl-auth-username-status[data-state="checking"]::before {
  animation: fl-auth-spin .8s linear infinite;
  border: 2px solid var(--fl-auth-border);
  border-radius: 50%;
  border-top-color: var(--fl-auth-cyan-700);
  content: "";
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}
.fl-auth-username-status[data-state="available"] { color: var(--fl-auth-success); font-weight: 600; }
.fl-auth-username-status[data-state="taken"],
.fl-auth-username-status[data-state="invalid"],
.fl-auth-username-status[data-state="error"] { color: var(--fl-auth-danger); }
.fl-auth-username-status button {
  background: transparent;
  border: 0;
  color: var(--fl-auth-cyan-700);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fl-auth-profile-preview {
  background: linear-gradient(120deg, var(--fl-auth-cyan-50), rgba(99, 219, 235, .16));
  border: 1px solid rgba(0, 127, 145, .18);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}
.fl-auth-profile-preview[hidden] { display: none; }
.fl-auth-profile-preview span { color: var(--fl-auth-slate); font-size: 10px; }
.fl-auth-profile-preview strong { color: var(--fl-auth-cyan-800); font-size: 11px; overflow-wrap: anywhere; }
.fl-auth-field-error { color: var(--fl-auth-danger); font-size: 11px; line-height: 1.5; }
.fl-auth-field-error[hidden] { display: none; }

@keyframes fl-auth-spin { to { transform: rotate(360deg); } }

.fl-auth-password { position: relative; }
.fl-auth-password input { padding-right: 92px; }
.fl-auth-password button {
  background: transparent;
  border: 0;
  color: var(--fl-auth-cyan-700);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  position: absolute;
  right: 8px;
  top: 7px;
}
.fl-auth-options { align-items: center; display: flex; font-size: 12px; gap: 16px; justify-content: space-between; }
.fl-auth-options label { align-items: center; display: flex; gap: 8px; }
.fl-auth-options input,
.fl-auth-check input { accent-color: var(--fl-auth-cyan-700); height: 20px; width: 20px; }

.fl-auth-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  min-height: 56px;
  padding: 12px 22px;
  text-decoration: none;
}
.fl-auth-button--primary { background: var(--fl-auth-cyan-700); color: var(--fl-auth-white) !important; }
.fl-auth-button--primary:hover { background: var(--fl-auth-cyan-800); }
.fl-auth-button:disabled,
.fl-auth-button[aria-disabled="true"] { cursor: not-allowed; opacity: .52; }
.fl-auth-button--primary:disabled:hover { background: var(--fl-auth-cyan-700); }
.fl-auth-button--secondary { background: var(--fl-auth-white); border-color: var(--fl-auth-border); color: var(--fl-auth-ink) !important; }
.fl-auth-button--secondary:hover { background: var(--fl-auth-cyan-50); }
.fl-auth-divider { align-items: center; color: var(--fl-auth-slate); display: flex; font-size: 11px; gap: 12px; margin: 22px 0; text-transform: uppercase; }
.fl-auth-divider::before,
.fl-auth-divider::after { background: var(--fl-auth-border); content: ""; flex: 1; height: 1px; }
.fl-auth-legal,
.fl-auth-switch { color: var(--fl-auth-slate); font-size: 10px; line-height: 1.6; margin: 14px 0 0; }
.fl-auth-switch { font-size: 12px; text-align: center; }
.fl-auth-social { margin-top: 20px; }
.fl-auth-notice,
.fl-auth-info {
  background: var(--fl-auth-cyan-50);
  border-radius: 12px;
  color: var(--fl-auth-ink);
  font-size: 11px;
  line-height: 1.6;
  padding: 14px 16px;
}
.fl-auth-error { border-radius: 12px; font-size: 12px; margin: 0; }
.fl-auth-honeypot { display: none !important; }

.fl-auth-signup { display: grid; gap: 18px; width: min(800px, 100%); }
.fl-auth-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.fl-auth-stepper::before { background: var(--fl-auth-border); content: ""; height: 2px; left: 7%; position: absolute; right: 7%; top: 14px; }
.fl-auth-stepper li { align-items: center; color: var(--fl-auth-slate); display: flex; flex-direction: column; font-size: 12px; gap: 8px; position: relative; text-align: center; }
.fl-auth-stepper span { align-items: center; background: var(--fl-auth-white); border: 1px solid var(--fl-auth-border); border-radius: 50%; display: flex; height: 28px; justify-content: center; width: 28px; }
.fl-auth-stepper li[aria-current="step"] { color: var(--fl-auth-ink); }
.fl-auth-stepper li[aria-current="step"] span,
.fl-auth-stepper li.is-complete span { background: var(--fl-auth-cyan-700); border-color: var(--fl-auth-cyan-700); color: #fff; }
.fl-auth-stepper strong { font-weight: 500; }
.fl-auth-stepper li[aria-current="step"] strong { font-weight: 600; }
.fl-auth-card--signup { border-radius: 24px; margin: 0 auto; padding: 32px 40px; }
.fl-auth-step { display: grid; gap: 20px; }
.fl-auth-step[hidden] { display: none; }
.fl-auth-field-row { align-items: start; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fl-auth-field-row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fl-auth-fieldset { border: 0; display: grid; gap: 8px; margin: 0; padding: 0; }
.fl-auth-step__actions { display: flex; justify-content: flex-end; }
.fl-auth-step__actions .fl-auth-button { min-width: 180px; }
.fl-auth-step__actions--split { justify-content: space-between; }
.fl-auth-summary { background: var(--fl-auth-cyan-50); border-radius: 14px; display: grid; gap: 0; margin: 0; padding: 4px 16px; }
.fl-auth-summary div { align-items: baseline; border-bottom: 1px solid var(--fl-auth-border); display: flex; gap: 12px; justify-content: space-between; padding: 11px 0; }
.fl-auth-summary div:last-child { border-bottom: 0; }
.fl-auth-summary dt { color: var(--fl-auth-slate); font-size: 11px; }
.fl-auth-summary dd { font-size: 12px; font-weight: 600; margin: 0; text-align: right; }
.fl-auth-summary__url { color: var(--fl-auth-cyan-800); overflow-wrap: anywhere; }
.fl-auth-check { align-items: flex-start; color: var(--fl-auth-ink); display: flex; font-size: 11px; gap: 10px; line-height: 1.55; }
.fl-auth-check input { flex: 0 0 auto; margin-top: 1px; }
.fl-auth-custom-fields .form-group { margin-bottom: 16px; }
.fl-auth-custom-fields .form-label { color: var(--fl-auth-ink); font-size: 13px; font-weight: 600; }

/* Les étapes reset 2/3, 3/3 et la 2FA restent fournies par les modales
   métier historiques ; ce skin les maintient dans le même parcours visuel. */
.fl-auth-shell .modal-content {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 64px -8px rgba(7, 29, 43, .18);
  overflow: hidden;
}
.fl-auth-shell .modal-header { border-bottom: 1px solid var(--fl-auth-border); padding: 24px 28px 18px; }
.fl-auth-shell .modal-title { color: var(--fl-auth-ink); font-family: "Plus Jakarta Sans", sans-serif; font-size: 22px; font-weight: 800; }
.fl-auth-shell .modal-body { color: var(--fl-auth-slate); font-size: 13px; line-height: 1.6; padding: 24px 28px; }
.fl-auth-shell .modal-footer { border-top: 1px solid var(--fl-auth-border); gap: 10px; padding: 18px 28px 24px; }
.fl-auth-shell .modal .form-control {
  border: 1px solid var(--fl-auth-border);
  border-radius: 12px;
  min-height: 52px;
  padding: 12px 16px;
}
.fl-auth-shell .modal .form-control:focus { border-color: var(--fl-auth-cyan-700); box-shadow: 0 0 0 4px rgba(99, 219, 235, .24); }
.fl-auth-shell .modal .btn-primary {
  background: var(--fl-auth-cyan-700);
  border-color: var(--fl-auth-cyan-700);
  border-radius: 12px;
  font-weight: 600;
  min-height: 48px;
  padding-inline: 22px;
}

@media (max-width: 1099px) {
  .fl-auth-layout { display: block; }
  .fl-auth-brand { min-height: 0; padding: 24px clamp(20px, 6vw, 56px); }
  .fl-auth-brand__logo { height: auto; padding: 12px 16px; }
  .fl-auth-brand__logo img { width: 190px; }
  .fl-auth-brand__content { margin-top: 26px; max-width: none; }
  .fl-auth-brand h2 { font-size: 30px; margin: 14px 0; }
  .fl-auth-brand__content > p:last-of-type { font-size: 14px; }
  .fl-auth-roadmap { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
  .fl-auth-roadmap strong { grid-column: 1 / -1; }
  .fl-auth-main { padding: 36px 24px 56px; }
}

@media (max-width: 639px) {
  .fl-auth-brand { padding: 18px 20px 22px; }
  .fl-auth-brand__logo img { width: 158px; }
  .fl-auth-brand__content { margin-top: 18px; }
  .fl-auth-eyebrow { font-size: 9px; }
  .fl-auth-brand h2 { font-size: 25px; line-height: 1.22; }
  .fl-auth-brand__content > p:last-of-type { font-size: 12px; line-height: 1.55; }
  .fl-auth-roadmap { display: grid; font-size: 10px; grid-template-columns: 1fr; margin-top: 18px; padding: 14px 16px; }
  .fl-auth-main { align-items: flex-start; padding: 20px 14px 40px; }
  .fl-auth-card { border-radius: 20px; padding: 24px 20px; }
  .fl-auth-card__logo { display: none; }
  .fl-auth-card h1 { font-size: 25px; }
  .fl-auth-lead { margin-bottom: 22px; }
  .fl-auth-options { align-items: flex-start; flex-direction: column; }
  .fl-auth-stepper strong { font-size: 9px; }
  .fl-auth-card--signup { padding: 24px 18px; }
  .fl-auth-field-row { grid-template-columns: 1fr; }
  .fl-auth-field-row--three { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fl-auth-fieldset select { font-size: 12px; padding: 8px; }
  .fl-auth-step__actions { gap: 10px; }
  .fl-auth-step__actions .fl-auth-button { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fl-auth-shell *, .fl-auth-shell *::before, .fl-auth-shell *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .fl-auth-username-status[data-state="checking"]::before { animation: none; }
}
