/* Password reveal toggle (password-reveal.js) — one in-field overlay everywhere */

.password-reveal-field {
    position: relative;
}

.password-reveal-field > .form-control {
    padding-right: 2.75rem;
}

.password-reveal-field .password-reveal-toggle {
    position: absolute;
    top: 0;
    right: 0;
    /* height/top refined in JS to match the input, not extra help text below */
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--bs-secondary-color);
    line-height: 1;
}

.password-reveal-field .password-reveal-toggle:hover,
.password-reveal-field .password-reveal-toggle:focus {
    color: var(--bs-body-color);
    background: transparent;
    box-shadow: none;
}

.password-reveal-field .password-reveal-toggle:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
    border-radius: 0.25rem;
}

.password-reveal-field .password-reveal-toggle .bi {
    font-size: 1.125rem;
    line-height: 1;
    pointer-events: none;
}

/* Keep icon clear of the floating label when it sits in the field */
.password-reveal-field.form-floating > label {
    padding-right: 2.25rem;
}
