/* 2026-10-19 | Shared show / hide password eye (PHF_PasswordToggle.js). Same look as the Login card eye: icon-size button,
   no border / background / shadow, site icon colour, darker on hover. Loaded by Login.ascx and the User Profile page
   (_Directory_UserProfile.ascx, Change Password popup). */

/* 2026-10-19 | Button look. Only properties the Login card's own .ph-login-password-toggle rules also set (with higher
   specificity), so the Login eye renders exactly as before; the Login grid placement stays in phf-login-card.css. */
.phf-password-toggle,
.phf-password-toggle:hover,
.phf-password-toggle:focus,
.phf-password-toggle:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    padding: 0;
    border: none !important;
    border-width: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    color: var(--site-icon-color, var(--primary-text-color-light, #6D6B77));
    font-size: 1.125rem;
    cursor: pointer;
    line-height: 1;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.phf-password-toggle:hover,
.phf-password-toggle:focus-visible {
    color: var(--primary-text-color, #444050);
}

.phf-password-toggle .fa {
    font-size: inherit;
    line-height: 1;
    color: inherit;
}

/* 2026-10-19 | Eye inside a standard form input (.form-control keeps its own border, focus ring and the form's invalid
   border: .phf-field.phf-subs-field-invalid .form-control). The wrapper holds only the input + eye, so the field error
   label that phfSubsRelocateFieldErrorBelowControl appends to .phf-field lands below the wrapper. */
.phf-password-field {
    position: relative;
    display: block;
    width: 100%;
}

.phf-password-field > input[type="password"],
.phf-password-field > input[type="text"] {
    width: 100%;
    padding-right: calc(var(--input-padding-x, 0.75rem) * 2 + 1.125rem) !important;
    box-sizing: border-box;
}

.phf-password-field > .phf-password-toggle {
    position: absolute;
    top: 50%;
    right: var(--input-padding-x, 0.75rem);
    z-index: 2;
    min-width: 0;
    min-height: 0;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
