/* Show/hide button inside a password field (see password-toggle.js).
   The selectors are specific on purpose, so page-wide "button { ... }" rules don't stretch or recolour it. */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 52px;
}

.password-wrapper .pw-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 44px;   /* a full-size tap target */
    height: 44px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #4a5568; /* 7.5:1 on the white field */
    font-size: 15px;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .15s ease;
}

.password-wrapper .pw-toggle:hover {
    transform: translateY(-50%);
    background: #eef2f8;
}

.password-wrapper .pw-toggle:focus-visible {
    outline: 2px solid #1f3e8a;
    outline-offset: 1px;
}
