/* assets/css/password_toggle.css
   Style du bouton "afficher/masquer" ajouté automatiquement par password_toggle.js
   sur tous les champs input[type="password"] du site. */

.pwd-toggle-wrap {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.pwd-toggle-wrap input {
    width: 100%;
    box-sizing: border-box;
}

/* Réserve la place de l'icône, y compris une fois le champ basculé en type="text" */
.pwd-toggle-wrap input[type="password"],
.pwd-toggle-wrap input[type="text"] {
    padding-right: 2.5rem;
}

.pwd-toggle-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.pwd-toggle-btn:hover {
    color: var(--primary, #FE1C03);
    background-color: rgba(0, 0, 0, 0.06);
}

.pwd-toggle-btn:focus-visible {
    outline: 2px solid var(--primary, #FE1C03);
    outline-offset: 1px;
}
