/* ===================== FONTS ===================== */
@font-face { font-family:'GSF Display'; src:url('../fonts/GoogleSansFlex_120pt-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'GSF Display'; src:url('../fonts/GoogleSansFlex_120pt-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'GSF Display'; src:url('../fonts/GoogleSansFlex_120pt-SemiBold.ttf') format('truetype'); font-weight:600; font-display:swap; }
@font-face { font-family:'GSF Display'; src:url('../fonts/GoogleSansFlex_120pt-Bold.ttf') format('truetype'); font-weight:700; font-display:swap; }
@font-face { font-family:'GSF Heading'; src:url('../fonts/GoogleSansFlex_24pt-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'GSF Heading'; src:url('../fonts/GoogleSansFlex_24pt-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'GSF Heading'; src:url('../fonts/GoogleSansFlex_24pt-SemiBold.ttf') format('truetype'); font-weight:600; font-display:swap; }
@font-face { font-family:'GSF Body'; src:url('../fonts/GoogleSansFlex_9pt-Light.ttf') format('truetype'); font-weight:300; font-display:swap; }
@font-face { font-family:'GSF Body'; src:url('../fonts/GoogleSansFlex_9pt-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'GSF Body'; src:url('../fonts/GoogleSansFlex_9pt-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'GSF Body'; src:url('../fonts/GoogleSansFlex_9pt-SemiBold.ttf') format('truetype'); font-weight:600; font-display:swap; }
@font-face { font-family:'GSF Body'; src:url('../fonts/GoogleSansFlex_9pt-Bold.ttf') format('truetype'); font-weight:700; font-display:swap; }

@font-face { font-family:'Quicksand-Bold'; src:url('../fonts/Quicksand-Bold.ttf') format('truetype'); font-weight:700; font-display:swap; }
@font-face { font-family:'Quicksand-Regular'; src:url('../fonts/Quicksand-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'Quicksand-Medium'; src:url('../fonts/Quicksand-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }

/* ===================== TOKENS ===================== */
:root {
  --bz-base-black: #242636;
  --bz-pure-white: #FFFFFF;
  --bz-base-white: #FAFCFF;
  --bz-bluegray-50:  #F9F9FB;
  --bz-bluegray-100: #F3F3F7;
  --bz-bluegray-200: #E9EAF7;
  --bz-bluegray-300: #CBD5E1;
  --bz-bluegray-400: #C1C4D8;
  --bz-bluegray-500: #8F94B7;
  --bz-bluegray-600: #71769B;
  --bz-bluegray-700: #494E71;
  --bz-bluegray-900: #242636;
  --bz-blue-50:  #EEEFF8;
  --bz-blue-100: #DDE0F1;
  --bz-blue-500: #5865BB;
  --bz-blue-600: #465095;
  --bz-blue-700: #343C70;
  --bz-yellow-50:  #FCF9ED;
  --bz-yellow-100: #FDF3D8;
  --bz-yellow-400: #F8D070;
  --bz-yellow-500: #F7AB1F;
  --bz-yellow-600: #DE9208;
  --bz-yellow-700: #94762E;
  --bz-red-50:  #F8EEEE;
  --bz-red-100: #F1DDDD;
  --bz-red-500: #BB5858;
  --bz-red-600: #954646;
  --bz-red-700: #703434;
  --bz-green-50:  #F1F8EE;
  --bz-green-100: #E4F1DD;
  --bz-green-500: #79BB58;
  --bz-green-600: #609546;
  --bz-green-700: #487034;
  --bz-orange-50:  #FBF7F1;
  --bz-orange-100: #F0F0D0;
  --bz-orange-500: #C78557;
  --bz-orange-600: #B66840;
  --bz-orange-700: #9A5134;
  --bz-font-display-regular: 'Quicksand-Regular', system-ui, sans-serif;
  --bz-font-display-medium: 'Quicksand-Medium', system-ui, sans-serif;
  --bz-font-display-bold: 'Quicksand-Bold', system-ui, sans-serif;
  --bz-font-display: 'GSF Display', 'Comfortaa', system-ui, sans-serif;
  --bz-font-heading: 'GSF Heading', 'Comfortaa', system-ui, sans-serif;
  --bz-font-body:    'GSF Body', 'Montserrat', system-ui, sans-serif;
  --bz-ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* fond du panneau de présentation (repris de la maquette doc/6.png) */
  --bz-panel-bg: #2B2F49;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: var(--bz-font-body); background: var(--bz-pure-white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; }

/* ===================== LAYOUT ===================== */
.bz-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--bz-pure-white);
}

/* ---- Left brand panel ---- */
.bz-panel {
  position: relative;
  overflow: hidden;
  background: var(--bz-panel-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 50%;
}

.bz-panel-img {
  display: block;
  width: 100%;
  height: auto;
  /* la photo ne doit jamais pousser le bloc de texte hors de l'écran */
  max-height: 46vh;
  object-fit: cover;
  object-position: 50% 22%;
}

.bz-panel-mid {
  position: relative;
  width: 100%;
  max-width: none !important;
  padding: 26px 24px;
  /* occupe toute la zone bleue sous la photo et y centre le texte verticalement */
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bz-panel-headline {
  font-family: var(--bz-font-display-regular);
  font-size: clamp(18px, min(2.1vw, 3.3vh), 32px);
  line-height: 1.28;
  letter-spacing: -.015em;
  color: #fff;
  margin-bottom: 26px;
  text-align: center;
  padding: 5px 10px;
}

.bz-features {
  flex-direction: row;
  text-decoration: none;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  grid-template-rows:auto auto;   /* ligne titre + ligne description */
  gap: clamp(14px, min(1.7vw, 2.6vh), 28px);
  font-size: clamp(12.5px, min(1.45vw, 2.25vh), 21px);
  line-height: 1.35;
}

.bz-features > .bz-feature {
  gap: 14px;
  display:grid;
  grid-row:span 2;                /* occupe les 2 lignes du parent */
  grid-template-rows:subgrid;     /* et s'aligne dessus */
  row-gap:9px;
}
.bz-features > .bz-feature > .bz-feature-title {
  color: var(--bz-yellow-500);
  font-family: var(--bz-font-display-bold);
}
.bz-features > .bz-feature > .bz-feature-description {
  font-family: var(--bz-font-display-medium);
}

/* ---- Right form area ---- */
.bz-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px 0;
  background: var(--bz-pure-white);
}

.bz-mobile-header {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}
.bz-mobile-mark { height: 34px; width: auto; }

.bz-form-zone{
  width: 100%;
  max-width: 392px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bz-main-footer {
  width: 100%;
  max-width: 392px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 24px;
  color: var(--bz-bluegray-400);
  font-size: 11px;
  font-weight: 300;
}
.bz-sep { opacity: .5; }
.bz-foot-powered { display: inline-flex; align-items: center; gap: 6px; }
.bz-bleez-logo-sm {
  height: 13px;
  width: auto;
  display: inline-block;
  opacity: .8;
  vertical-align: middle;
}

@media (max-width: 899px) {
  .bz-panel         { display: none; }
  .bz-mobile-header { display: flex; }
  .bz-main          { justify-content: flex-start; padding-top: 32px; }
}

/* ===================== FORM ELEMENTS ===================== */

.bz-page-header { display: flex; flex-direction: column; gap: 0; }
.bz-page-title {
  font-family: var(--bz-font-display);
  font-size: 27px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--bz-bluegray-900);
}
.bz-page-desc {
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--bz-bluegray-600);
  margin-top: 9px;
}

.bz-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--bz-bluegray-600);
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: var(--bz-font-body);
  text-decoration: none;
  align-self: flex-start;
}
.bz-back:hover { color: var(--bz-bluegray-900); }
.bz-back i { font-size: 11px; }

/* Field */
.bz-label { display: flex; flex-direction: column; gap: 7px; }
.bz-label-text { font-size: 12px; font-weight: 500; color: var(--bz-bluegray-700); }
/* Ligne de libellé portant un lien à droite (« Identifiant oublié ? ») */
.bz-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bz-label-row .bz-link { flex: 0 0 auto; font-size: 12px; }

.bz-field {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 48px;
  padding: 0 14px;
  background: var(--bz-pure-white);
  border: 1px solid var(--bz-bluegray-400);
  border-radius: 9px;
  transition: border-color 160ms var(--bz-ease), box-shadow 160ms var(--bz-ease);
}
.bz-field:focus-within {
  border-color: var(--bz-blue-500) !important;
  box-shadow: 0 0 0 3px rgba(88,101,187,.12);
}
/* Champs rendus par user-profile-commons.ftl : l'input n'y porte plus
   `bz-input`, ces deux états se jouent donc sur le conteneur. */
.bz-field:has(input[aria-invalid="true"]) { border-color: var(--bz-red-500); }
.bz-field:has(input[disabled]), .bz-field:has(input[readonly]) { background: var(--bz-bluegray-50); }
.bz-field > i {
  color: var(--bz-bluegray-500);
  font-size: 15px;
  width: 17px;
  text-align: center;
  flex: 0 0 auto;
}
.bz-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--bz-font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--bz-bluegray-900);
}
.bz-field input::placeholder { color: var(--bz-bluegray-500); opacity: 1; }

.bz-pw-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--bz-bluegray-500);
  cursor: pointer;
  border-radius: 9px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.bz-pw-toggle:hover { color: var(--bz-bluegray-700); }

/* Buttons */
.bz-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 9px;
  font-family: var(--bz-font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms var(--bz-ease);
  text-decoration: none;
}
.bz-btn-primary { background: var(--bz-yellow-500); color: var(--bz-bluegray-900); }
.bz-btn-primary:hover { background: var(--bz-yellow-600); }
.bz-btn-ghost {
  background: transparent;
  color: var(--bz-bluegray-700);
  border: 1px solid var(--bz-bluegray-300);
  flex: 0 0 auto;
  width: auto;
  padding: 0 18px;
}
.bz-btn-ghost:hover { background: var(--bz-bluegray-100); }

.bz-btn-row { display: flex; gap: 12px; }
.bz-btn-row .bz-btn-primary { flex: 1; }

/* Identity provider (social login) buttons */
.bz-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bz-bluegray-500);
  font-size: 12px;
  font-weight: 300;
}
.bz-divider::before,
.bz-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bz-bluegray-200);
}
.bz-idp-list { display: flex; flex-direction: column; gap: 10px; }
.bz-idp-btn { width: 100%; }

/* Remember me row */
.bz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Custom checkbox */
.bz-check-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}
.bz-check-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.bz-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--bz-bluegray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 140ms var(--bz-ease);
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--bz-bluegray-900);
}
.bz-check-wrap input[type="checkbox"]:checked ~ .bz-check-box {
  background: var(--bz-yellow-500);
  border-color: var(--bz-yellow-500);
}
.bz-check-box .fa-check { opacity: 0; transition: opacity 140ms; }
.bz-check-wrap input[type="checkbox"]:checked ~ .bz-check-box .fa-check { opacity: 1; }
.bz-check-label { font-size: 13px; color: var(--bz-bluegray-700); font-weight: 300; }

/* Ligne de consentement (inscription : CGU, mandat, opposition à la prospection).
   Le texte contient des liens, il vit donc hors du `<label>` — un `<a>` n'est pas
   un contenu autorisé dedans. D'où cette rangée plutôt qu'un `bz-check-wrap`
   englobant, et l'alignement en haut puisque le texte court sur plusieurs lignes. */
.bz-consent { display: flex; align-items: flex-start; gap: 9px; }
.bz-consent .bz-check-wrap { flex: 0 0 auto; margin-top: 1px; }
.bz-consent-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--bz-bluegray-700);
}
.bz-consent-text a { color: var(--bz-blue-600); font-weight: 500; }

/* Link */
.bz-link {
  color: var(--bz-blue-600);
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--bz-font-body);
  padding: 0;
  text-decoration: none;
}
.bz-link:hover { text-decoration: underline; }

/* Security badge */
.bz-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--bz-bluegray-500);
  font-size: 11.5px;
  font-weight: 300;
}
.bz-security-badge i { font-size: 10px; }

/* Alert / flash message */
.bz-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.bz-alert-success { background: var(--bz-green-50);   color: var(--bz-green-700); }
.bz-alert-error   { background: var(--bz-red-50);     color: var(--bz-red-700); }
.bz-alert-warning { background: var(--bz-yellow-50);  color: var(--bz-yellow-700); }
.bz-alert-info    { background: var(--bz-blue-50);    color: var(--bz-blue-700); }

/* Info note */
.bz-info-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  background: var(--bz-bluegray-50);
  border-radius: 9px;
  color: var(--bz-bluegray-600);
  font-size: 12px;
  font-weight: 300;
}
.bz-info-note i { color: var(--bz-blue-500); font-size: 12px; flex: 0 0 auto; }

/* Status icon */
.bz-status-icon {
  width: 68px;
  height: 68px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto;
}
.bz-status-success { background: var(--bz-green-50);    color: var(--bz-green-600); }
.bz-status-error   { background: var(--bz-red-50);      color: var(--bz-red-600); }
.bz-status-warning { background: var(--bz-orange-50);   color: var(--bz-orange-600); }
.bz-status-info    { background: var(--bz-blue-50);     color: var(--bz-blue-600); }
.bz-status-neutral { background: var(--bz-bluegray-100); color: var(--bz-bluegray-700); }
.bz-status-email   { background: var(--bz-yellow-50);   color: var(--bz-yellow-600); }

/* Status card (centered layout for info/logout/error pages) */
.bz-status-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.bz-status-card h1 {
  font-family: var(--bz-font-display);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--bz-bluegray-900);
}
.bz-status-card p {
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--bz-bluegray-600);
  margin-top: 11px;
}
.bz-status-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }

/* OTP boxes */
.bz-otp-row { display: flex; gap: 10px; justify-content: space-between; }
.bz-otp-input {
  flex: 1;
  min-width: 0;
  height: 58px;
  text-align: center;
  font-family: var(--bz-font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--bz-bluegray-900);
  border: 1px solid var(--bz-bluegray-400);
  border-radius: 9px;
  background: var(--bz-pure-white);
  outline: none;
  transition: border-color 160ms var(--bz-ease), box-shadow 160ms var(--bz-ease);
}
.bz-otp-input:focus {
  border-color: var(--bz-blue-500);
  box-shadow: 0 0 0 3px rgba(88,101,187,.12);
}
.bz-otp-expire {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--bz-bluegray-500);
  font-size: 12px;
  font-weight: 300;
}

/* Password strength */
.bz-strength-wrap { display: flex; flex-direction: column; gap: 7px; margin-top: -6px; }
.bz-strength-bar { height: 6px; border-radius: 9999px; background: var(--bz-bluegray-100); overflow: hidden; }
.bz-strength-fill { height: 100%; border-radius: 9999px; transition: width 200ms var(--bz-ease), background 200ms var(--bz-ease); }
.bz-strength-row { display: flex; align-items: center; justify-content: space-between; }
.bz-strength-hint { font-size: 11px; font-weight: 300; color: var(--bz-bluegray-500); }
.bz-strength-label { font-size: 11px; font-weight: 600; }

/* TOTP setup */
.bz-totp-row { display: flex; align-items: flex-start; gap: 18px; }
.bz-qr-box {
  flex: 0 0 auto;
  width: 128px;
  height: 128px;
  border-radius: 9px;
  border: 1px solid var(--bz-bluegray-300);
  background: var(--bz-pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(36,38,54,.10);
  overflow: hidden;
}
.bz-qr-box img { width: 100%; height: 100%; object-fit: contain; }
.bz-secret-label { font-size: 12px; font-weight: 500; color: var(--bz-bluegray-700); margin-bottom: 6px; }
.bz-secret-key {
  font-family: monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--bz-bluegray-900);
  background: var(--bz-bluegray-50);
  border: 1px solid var(--bz-bluegray-200);
  border-radius: 9px;
  padding: 10px 12px;
  word-break: break-all;
}
.bz-secret-hint { font-size: 11.5px; font-weight: 300; color: var(--bz-bluegray-500); margin-top: 8px; line-height: 1.5; }

/* Terms */
.bz-terms-scroll {
  max-height: 228px;
  overflow-y: auto;
  padding: 16px 18px;
  background: var(--bz-bluegray-50);
  border: 1px solid var(--bz-bluegray-200);
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--bz-bluegray-700);
}
.bz-terms-scroll::-webkit-scrollbar { width: 8px; }
.bz-terms-scroll::-webkit-scrollbar-thumb { background: var(--bz-bluegray-300); border-radius: 9px; }
.bz-terms-h { font-size: 12.5px; font-weight: 600; color: var(--bz-bluegray-900); margin-bottom: 8px; margin-top: 16px; }
.bz-terms-h:first-child { margin-top: 0; }
.bz-terms-p { margin-bottom: 0; }

/* Terms checkbox row */
.bz-terms-accept { align-items: flex-start; }
.bz-terms-accept .bz-check-box { margin-top: 1px; }
.bz-terms-accept .bz-check-label { font-size: 13px; line-height: 1.4; }

/* Profile row */
.bz-row-half { display: flex; gap: 12px; }
.bz-row-half .bz-label { flex: 1; min-width: 0; }

/* Autofill fix */
input:-webkit-autofill {
  -webkit-text-fill-color: var(--bz-bluegray-900);
  transition: background-color 9999s;
}

/* Visually hidden but present in the layout so browsers still associate it
   with password-manager save prompts (type="hidden" fields are ignored). */
.bz-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Match indicator */
.bz-match { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; margin-top: -8px; }

/* OTP credential selector */
.bz-otp-creds { display: flex; flex-direction: column; gap: 8px; }
.bz-otp-cred {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--bz-bluegray-300);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 140ms;
}
.bz-otp-cred:has(input:checked) { border-color: var(--bz-blue-500); background: var(--bz-blue-50); }
.bz-otp-cred input[type="radio"] { accent-color: var(--bz-blue-500); }
.bz-otp-cred-label { font-size: 13px; font-weight: 400; color: var(--bz-bluegray-700); }

/* =========================================================================
   PAGES HÉRITÉES DU THÈME `base`
   Ces pages (register, select-authenticator, webauthn, update-email,
   oauth-grant, idp-link, recovery-codes, x509, device-verify…) ne sont pas
   surchargées par ce thème : leur markup vient de Keycloak et n'est stylé que
   par les classes déclarées dans theme.properties. Les règles ci-dessous
   habillent ce markup avec le même vocabulaire visuel que les pages propres.
   ========================================================================= */

/* ---- Structure de formulaire ---- */
.bz-kc-form { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.bz-kc-group { display: flex; flex-direction: column; gap: 7px; }
.bz-kc-label-wrap { display: block; }
.bz-kc-input-wrap { display: block; position: relative; }
.bz-kc-content { display: flex; flex-direction: column; gap: 14px; }
.bz-mt { margin-top: 14px; }

/* ---- Champs ---- */
.bz-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--bz-pure-white);
  border: 1px solid var(--bz-bluegray-400);
  border-radius: 9px;
  outline: none;
  font-family: var(--bz-font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--bz-bluegray-900);
  transition: border-color 160ms var(--bz-ease), box-shadow 160ms var(--bz-ease);
}
.bz-input::placeholder { color: var(--bz-bluegray-500); opacity: 1; }
.bz-input:focus {
  border-color: var(--bz-blue-500);
  box-shadow: 0 0 0 3px rgba(88,101,187,.12);
}
.bz-input[aria-invalid="true"] { border-color: var(--bz-red-500); }
.bz-input[disabled], .bz-input[readonly] { background: var(--bz-bluegray-50); color: var(--bz-bluegray-600); }
select.bz-input { appearance: none; background-image: none; cursor: pointer; }
.bz-textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }

/* Groupe input + bouton œil (mot de passe) */
.bz-input-group { position: relative; display: block; }
.bz-input-group .bz-input { padding-right: 46px; }
.bz-input-group .bz-pw-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---- Aides et erreurs de saisie ---- */
.bz-help {
  display: block;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--bz-bluegray-600);
}
.bz-help-error { color: var(--bz-red-600); font-weight: 400; }
/* `.required` est la classe que le thème `base` met en dur sur l'astérisque des
   champs obligatoires (register, update-profile) — elle n'est pas configurable
   par theme.properties, d'où cet alias sur notre `.bz-required`. */
.bz-required, .required { color: var(--bz-red-500); }

/* ---- Cases à cocher / radios des pages héritées ---- */
.bz-kc-check { display: flex; align-items: flex-start; gap: 9px; }
.bz-kc-check-input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--bz-yellow-500);
  cursor: pointer;
}
.bz-kc-check-label { font-size: 13px; line-height: 1.45; font-weight: 300; color: var(--bz-bluegray-700); cursor: pointer; }
.bz-kc-check-label.is-disabled { color: var(--bz-bluegray-400); cursor: default; }

/* ---- Boutons et zones d'actions ---- */
.bz-btn-block { width: 100%; }
.bz-kc-actions { display: flex; flex-direction: column; gap: 10px; }
.bz-kc-actions-wrap { display: flex; flex-direction: column; gap: 10px; }
.bz-kc-actions input[type="submit"],
.bz-kc-actions button { width: 100%; }
.bz-kc-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bz-kc-options-wrap { display: flex; align-items: center; gap: 12px; }
.bz-kc-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bz-kc-options a, .bz-kc-setting a, .bz-kc-info a {
  color: var(--bz-blue-600);
  font-size: 13px;
  font-weight: 500;
}
.bz-kc-options a:hover, .bz-kc-setting a:hover, .bz-kc-info a:hover { text-decoration: underline; }

/* ---- Bandeau de message des pages héritées ---- */
.bz-alert-title { font-weight: 400; }
.bz-alert.alert-error   { background: var(--bz-red-50);    color: var(--bz-red-700); }
.bz-alert.alert-warning { background: var(--bz-yellow-50); color: var(--bz-yellow-700); }
.bz-alert.alert-success { background: var(--bz-green-50);  color: var(--bz-green-700); }
.bz-alert.alert-info    { background: var(--bz-blue-50);   color: var(--bz-blue-700); }

/* ---- Bloc d'information bas de page (« Pas encore de compte ? ») ---- */
.bz-kc-info, .bz-kc-signup {
  font-size: 13px;
  font-weight: 300;
  color: var(--bz-bluegray-600);
  text-align: center;
  line-height: 1.6;
}
.bz-kc-info-wrap { display: flex; flex-direction: column; gap: 6px; }

/* ---- Identité en cours d'authentification (« Ce n'est pas vous ? ») ---- */
.bz-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bz-bluegray-50);
  border: 1px solid var(--bz-bluegray-200);
  border-radius: 9px;
  font-size: 13px;
  color: var(--bz-bluegray-700);
}
.bz-user-chip i { color: var(--bz-bluegray-500); }
.bz-user-chip label { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.bz-user-chip .bz-link { flex: 0 0 auto; font-size: 12px; }

.bz-try-another-way { display: block; text-align: center; font-size: 13px; }

/* ---- Sélecteur de langue ---- */
.bz-locale { align-self: flex-end; position: relative; }
.bz-locale-dd { position: relative; }
.bz-locale-dd > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  background: var(--bz-pure-white);
  border: 1px solid var(--bz-bluegray-300);
  border-radius: 9999px;
  font-family: var(--bz-font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--bz-bluegray-700);
  cursor: pointer;
}
.bz-locale-dd > button:hover { background: var(--bz-bluegray-50); }
.bz-locale-dd > button i { font-size: 11px; color: var(--bz-bluegray-500); }
.bz-locale-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 132px;
  margin: 0;
  padding: 6px;
  background: var(--bz-pure-white);
  border: 1px solid var(--bz-bluegray-200);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(36,38,54,.12);
  z-index: 20;
  display: none;
}
.bz-locale-dd > button[aria-expanded="true"] + .bz-locale-list { display: block; }
.bz-locale-item {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--bz-bluegray-700);
}
.bz-locale-item:hover, .bz-locale-item:focus { background: var(--bz-bluegray-50); }

/* ---- Choix du moyen d'authentification (select-authenticator) ---- */
.bz-select-auth-list { display: flex; flex-direction: column; gap: 10px; }
.bz-select-auth-item-wrap { display: block; }
.bz-select-auth-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: var(--bz-pure-white);
  border: 1px solid var(--bz-bluegray-300);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  font-family: var(--bz-font-body);
  transition: border-color 140ms var(--bz-ease), background 140ms var(--bz-ease);
}
.bz-select-auth-item:hover { border-color: var(--bz-blue-500); background: var(--bz-blue-50); }
.bz-select-auth-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--bz-yellow-50);
  color: var(--bz-yellow-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.bz-select-auth-icon-glyph { font-size: 16px; }
.bz-select-auth-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bz-select-auth-heading, .bz-select-auth-heading-text {
  font-family: var(--bz-font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--bz-bluegray-900);
}
.bz-select-auth-desc { font-size: 12.5px; font-weight: 300; line-height: 1.5; color: var(--bz-bluegray-600); }
.bz-select-auth-fill { flex: 0 0 0; }
.bz-select-auth-arrow { flex: 0 0 auto; color: var(--bz-bluegray-500); font-size: 12px; }

/* ---- Liste des OTP configurés ---- */
.bz-otp-list { display: flex; flex-direction: column; gap: 8px; }
.bz-otp-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--bz-bluegray-300);
  border-radius: 9px;
  cursor: pointer;
}
.bz-otp-list-item:has(input:checked) { border-color: var(--bz-blue-500); background: var(--bz-blue-50); }
.bz-otp-list-icon { color: var(--bz-bluegray-500); }
.bz-otp-list-title { font-size: 13px; color: var(--bz-bluegray-700); }
.bz-otp-list-input { accent-color: var(--bz-blue-500); }

/* ---- Codes de récupération ---- */
.bz-recovery-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin: 0;
  padding: 16px 18px;
  list-style: none;
  background: var(--bz-bluegray-50);
  border: 1px solid var(--bz-bluegray-200);
  border-radius: 9px;
  font-family: monospace;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--bz-bluegray-900);
  counter-reset: bz-rc;
}
.bz-recovery-list li { display: flex; gap: 8px; }
.bz-recovery-actions { display: flex; gap: 10px; justify-content: center; }
.bz-recovery-actions button, .bz-recovery-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--bz-font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bz-blue-600);
}

/* ---- Fournisseurs d'identité externes ---- */
.bz-social-section { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.bz-social-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bz-social-list-item { display: block; }
.bz-social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bz-social-grid-item { display: block; }
.bz-social-btn { width: 100%; gap: 10px; }
.bz-social-name { font-size: 14px; font-weight: 500; }
.bz-idp-logo { font-size: 15px; }

/* ---- Divers markup `base` non couvert par une propriété ---- */
#kc-registration, #kc-registration-container { text-align: center; font-size: 13px; font-weight: 300; color: var(--bz-bluegray-600); }
#kc-form-login, #kc-register-form, #kc-passwd-update-form, #kc-totp-settings-form,
#kc-select-credential-form, #kc-recovery-code-settings-form, #kc-webauthn-settings-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#kc-terms-text { font-size: 13px; line-height: 1.6; font-weight: 300; color: var(--bz-bluegray-700); }
#kc-totp-secret-qr-code { max-width: 160px; border-radius: 9px; border: 1px solid var(--bz-bluegray-300); }
#kc-totp-secret-key {
  display: inline-block;
  font-family: monospace;
  font-size: 13px;
  letter-spacing: .06em;
  background: var(--bz-bluegray-50);
  border: 1px solid var(--bz-bluegray-200);
  border-radius: 9px;
  padding: 10px 12px;
  word-break: break-all;
}
/* Listes du markup hérité (consentement OAuth, informations diverses) */
.bz-form-zone ul:not([class]), .bz-form-zone ol:not([class]) {
  margin: 4px 0;
  padding-left: 20px;
  list-style: disc;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--bz-bluegray-700);
}
.bz-form-zone ol:not([class]) { list-style: decimal; }
#kc-oauth { display: flex; flex-direction: column; gap: 8px; }
#kc-oauth h3 { font-size: 14px; font-weight: 600; color: var(--bz-bluegray-900); }
#kc-oauth form { margin-top: 8px; }

/* ---- Alertes au markup PatternFly des pages héritées ---- */
.bz-alert { flex-wrap: wrap; }
/* Alerte au markup simple du macro `alertBox` (icône <i> + <span>) : sans cette
   règle, le `flex-wrap: wrap` ci-dessus renvoie le <span> sur une seconde ligne
   flex, sous l'icône, et `align-items: center` désaligne alors l'icône (calée en
   haut) du texte multi-ligne. On force le <span> à partager la ligne de l'icône
   et à envelopper son texte à l'intérieur. Ne cible pas le markup PatternFly
   (title/description), qui n'a pas de <span> enfant direct après le <i>. */
.bz-alert > i + span { flex: 1 1 0; min-width: 0; }
.bz-alert .pf-c-alert__icon { flex: 0 0 auto; }
.bz-alert .pf-c-alert__icon::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f06a";
}
.bz-alert.bz-alert-warning .pf-c-alert__icon::before,
.bz-alert.alert-warning .pf-c-alert__icon::before { content: "\f071"; }
.bz-alert.bz-alert-success .pf-c-alert__icon::before,
.bz-alert.alert-success .pf-c-alert__icon::before { content: "\f058"; }
.bz-alert.bz-alert-info .pf-c-alert__icon::before,
.bz-alert.alert-info .pf-c-alert__icon::before { content: "\f05a"; }
.bz-alert .pf-c-alert__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--bz-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.bz-alert .pf-c-alert__description { flex: 1 1 100%; }
.bz-alert .pf-c-alert__description p { margin: 4px 0 0; font-weight: 300; }
.pf-screen-reader, .kc-tooltip-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   MESSAGES DE MAINTENANCE (repris de bleez-26.6.2.002)
   Bloc alimenté côté navigateur par js/bleez.js depuis l'API Bleez : il reste
   vide — donc masqué — tant qu'aucun message actif n'est renvoyé.
   ========================================================================= */
.bz-maintenance { display: flex; flex-direction: column; gap: 10px; }
.bz-maintenance:empty { display: none; }
.bz-maintenance__item {
  background: var(--bz-orange-50);
  border: 1px solid var(--bz-orange-500);
  border-left-width: 3px;
  border-radius: 9px;
  padding: 13px 16px;
  color: var(--bz-orange-700);
}
.bz-maintenance__title {
  margin: 0 0 4px;
  font-family: var(--bz-font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bz-orange-700);
}
.bz-maintenance__body { font-size: 13px; font-weight: 300; line-height: 1.55; }
.bz-maintenance__body a { color: var(--bz-blue-600); text-decoration: underline; text-underline-offset: 2px; }
.bz-maintenance__body p { margin: 6px 0; }
.bz-maintenance__body p:first-child { margin-top: 0; }
.bz-maintenance__body p:last-child { margin-bottom: 0; }
