.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Composant : champ mot de passe avec bascule + force
   ============================================================ */
.password-field-wrapper { margin-bottom: 1.125rem; }

.password-wrapper {
  position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  padding-right: 3rem;
  width: 100%;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-navy-soft, #5D7080);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
  line-height: 0;
}
.password-toggle-btn:hover       { color: var(--action-primary, #149FDE); }
.password-toggle-btn:focus-visible {
  outline: 2px solid var(--action-primary, #149FDE);
  outline-offset: 2px;
}

/* Barre de force */
.strength-bar-track {
  height: 4px;
  background: var(--ui-border, #D8E2EA);
  border-radius: 2px;
  overflow: hidden;
  margin: 0.5rem 0 0.625rem;
}
.strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--state-danger, #C94B57);
  transition: width 0.35s ease, background-color 0.35s ease;
}

/* Liste de règles */
.strength-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
}
.strength-rules li {
  font-size: 0.8rem;
  color: var(--ui-text-muted, #5D7080);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s;
}
.strength-rules li::before {
  content: '';
  width: 14px;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ui-border, #D8E2EA);
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.strength-rules li.rule-pass { color: var(--state-success, #2EAD66); }
.strength-rules li.rule-pass::before {
  border-color: var(--state-success, #2EAD66);
  background: var(--state-success, #2EAD66)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 9px no-repeat;
}
