/* Pages d'authentification : logo centré lisible, bouton « œil » des mots de passe, contrôle de complexité en direct. */
.auth-brand.auth-brand-centre{ justify-content:center; margin-bottom:24px; }
.auth-brand-centre .logo-auth{ height:auto; max-height:130px; width:auto; max-width:100%; object-fit:contain; }
.auth-card .logo-auth{ background:transparent; }

.champ-mdp{ position:relative; display:block; }
.champ-mdp input{ width:100%; padding-right:46px; }
.champ-mdp .oeil{
  position:absolute; top:0; right:0; bottom:0; width:44px; display:flex; align-items:center; justify-content:center;
  background:none; border:0; border-radius:0 6px 6px 0; cursor:pointer; color:var(--muted,#667085); padding:0;
}
.champ-mdp .oeil:hover, .champ-mdp .oeil:focus-visible{ color:var(--text,#101828); }
.champ-mdp .oeil:focus-visible{ outline:2px solid currentColor; outline-offset:-2px; }
.champ-mdp .oeil svg{ width:20px; height:20px; display:block; }
.champ-mdp .oeil .oeil-ferme{ display:none; }
.champ-mdp .oeil[aria-pressed="true"] .oeil-ouvert{ display:none; }
.champ-mdp .oeil[aria-pressed="true"] .oeil-ferme{ display:block; }

.mdp-controle{ list-style:none; margin:2px 0 14px; padding:0; font-size:.82rem; }
.mdp-controle li{ display:flex; gap:8px; align-items:center; padding:2px 0; color:var(--muted,#667085); }
.mdp-controle li::before{ content:"○"; width:1.1em; text-align:center; flex:0 0 auto; }
.mdp-controle li.ok{ color:#1E7B3A; }
.mdp-controle li.ok::before{ content:"✓"; font-weight:700; }
.mdp-force{ height:6px; border-radius:3px; background:var(--border,#E4E7EC); margin:6px 0 10px; overflow:hidden; }
.mdp-force > span{ display:block; height:100%; width:0; border-radius:3px; background:#C0392B; transition:width .2s, background .2s; }
.mdp-force-texte{ font-size:.78rem; color:var(--muted,#667085); margin:0 0 6px; }
@media (prefers-color-scheme: dark){ .mdp-controle li.ok{ color:#5FCB86; } }

/* Thème « connexion » pour les autres écrans d'authentification (changement de mot de passe) :
   même fond d'écran que la page de connexion, simplement flouté, et carte sombre translucide. */
.auth-fond{ position:relative; isolation:isolate; }
.auth-fond::before{
  content:""; position:fixed; inset:0; z-index:-1;
  background:url('/fond_ecran.php') center center / cover no-repeat;
  filter:blur(9px); transform:scale(1.06);
}
.auth-fond .auth-card{
  background:rgba(16,24,43,.72); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-color:rgba(255,255,255,.12); box-shadow:0 8px 32px rgba(0,0,0,.25);
}
.auth-fond .auth-title{ color:#fff; }
.auth-fond .auth-desc, .auth-fond .auth-links{ color:rgba(255,255,255,.75); }
.auth-fond .auth-links a, .auth-fond .field label{ color:#fff; }
.auth-fond .btn-primary{ background:var(--brass); color:#1B1400; }
.auth-fond .btn-primary:hover:not(:disabled){ background:#A8791F; }
.auth-fond .btn-primary:disabled{ opacity:.55; cursor:not-allowed; }
.auth-fond .mdp-controle li, .auth-fond .mdp-force-texte{ color:rgba(255,255,255,.78); }
.auth-fond .mdp-controle li.ok{ color:#7BE0A0; }
.auth-fond .mdp-force{ background:rgba(255,255,255,.2); }
.auth-fond .champ-mdp .oeil{ color:#5A6472; }
.auth-fond .champ-mdp .oeil:hover{ color:#101828; }

/* Pages « mot de passe oublié », « demande d'accès », activation : textes secondaires, alertes et boutons lisibles sur la carte sombre. */
.auth-fond .auth-card{ color:#fff; }
.auth-fond .field span, .auth-fond .auth-card p{ color:rgba(255,255,255,.8); }
.auth-fond .auth-card .alert a{ color:inherit; text-decoration:underline; }
.auth-fond .alert-info{ background:rgba(59,130,246,.2); border-color:rgba(147,197,253,.45); color:#fff; }
.auth-fond .alert-error{ background:rgba(220,38,38,.22); border-color:rgba(252,165,165,.5); color:#fff; }
.auth-fond a.btn-primary{ display:block; text-align:center; }
.auth-fond .captcha-ligne img{ background:#fff; }
.auth-fond .captcha-ligne .btn{ background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.3); width:auto; }
