.password-control {
    position: relative;
}

.password-control input {
    padding-right: 43px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: var(--mint);
    color: var(--teal-dark);
    outline: 0;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.password-eye-off,
.password-control.is-visible .password-eye {
    display: none;
}

.password-control.is-visible .password-eye-off {
    display: block;
}
