/**
 * Password visibility toggle — liquid glass, minimal.
 * Paired with public/shared-assets/js/password-toggle.js.
 */

.pw-field {
    position: relative;
    width: 100%;
}

.pw-field .pw-input {
    width: 100%;
    padding-inline-end: 2.75rem;
}

.pw-toggle {
    position: absolute;
    inset-inline-end: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0;
    line-height: 0;
    border: 1px solid rgba(127, 127, 127, 0.28);
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    transition: background 160ms ease, opacity 160ms ease, transform 120ms ease, border-color 160ms ease;
}

.pw-toggle:hover {
    background: rgba(127, 127, 127, 0.24);
    opacity: 1;
}

.pw-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    opacity: 1;
}

.pw-toggle:active {
    transform: translateY(-50%) scale(0.92);
}

.pw-toggle.is-active {
    background: rgba(127, 127, 127, 0.32);
    border-color: rgba(127, 127, 127, 0.5);
    opacity: 1;
}

.pw-toggle svg {
    display: block;
    pointer-events: none;
}
