/**
 * HSBR Password Visibility Toggle
 *
 * Companion styles for <x-core::password-input>. Kept in an external file rather
 * than an inline <style> so it satisfies the nonce-based CSP in
 * app/Services/CspNonceService.php without every layout having to stamp a nonce.
 *
 * The padding-right is what stops the eye button overlapping typed text — the
 * developer layout shipped the script without these rules and had exactly that bug.
 */
.password-input-wrapper {
    position: relative;
}

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

.password-input-wrapper .password-toggle-btn {
    background: transparent;
    border: none;
    color: var(--bs-gray-500);
    z-index: 5;
    padding: 0;
    width: 2rem;
    height: 2rem;
}

.password-input-wrapper .password-toggle-btn:hover {
    color: var(--bs-gray-700);
    background: transparent;
}

.password-input-wrapper .password-toggle-btn:focus {
    box-shadow: none;
}
