/* Champ mot de passe avec bouton afficher / masquer (dashboard + formulaires publics) */

.password-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-field input[type="password"],
.password-field input[type="text"].password-field__input {
    width: 100%;
    padding-right: 2.75rem !important;
}

.password-field__toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.password-field__toggle:hover {
    color: #00953e;
    background: rgba(0, 149, 62, 0.08);
}

.password-field__toggle:focus-visible {
    outline: 2px solid rgba(0, 149, 62, 0.45);
    outline-offset: 2px;
}

.password-field__toggle .bi-eye-slash {
    display: none;
}

.password-field__toggle.is-visible .bi-eye {
    display: none;
}

.password-field__toggle.is-visible .bi-eye-slash {
    display: inline-block;
}

/* Dashboard — champs profil / formulaires admin */
.dash-profile-form .password-field input,
.dash-profile-form input.password-field__input {
    padding-right: 2.75rem !important;
}
