/*
 * Eye button of the password boxes (js/password-toggle.js), as on emailserver.tenten.vn.
 * Shared by the login page, the reset-password page and the dashboard; the colour tokens
 * fall back to the TENTEN palette where a page does not define them.
 */
.pw-wrap {
    position: relative;
    display: block;
}

.pw-wrap > .form-control {
    padding-right: 2.9rem;
}

/* The browser's own reveal button would duplicate ours. */
.pw-wrap > .form-control::-ms-reveal,
.pw-wrap > .form-control::-ms-clear {
    display: none;
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7a8799;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.15s, color 0.15s;
}

.pw-toggle:hover,
.pw-toggle:focus-visible,
.pw-toggle[aria-pressed="true"] {
    background: var(--brand-soft, #ebf2fa);
    color: var(--brand, #1f5fad);
}

.pw-toggle:focus {
    outline: none;
}

.pw-toggle:focus-visible {
    box-shadow: 0 0 0 2px var(--brand, #1f5fad);
}

.pw-toggle svg {
    display: block;
}
