.password-visibility {
    align-items: center;
    display: flex;
    position: relative;
    width: 100%;
}

.password-visibility > input {
    padding-inline-end: 2.75rem;
    width: 100%;
}

.password-visibility-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    inset-inline-end: .45rem;
    justify-content: center;
    min-height: 32px;
    min-width: 32px;
    padding: 5px;
    position: absolute;
    transition: color .16s ease, background .16s ease;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
    background: var(--bg-2);
    color: var(--text);
}

.password-visibility-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.password-visibility-toggle svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}