.np-password-field {
    position: relative;
    display: block;
    min-width: 0;
}

.np-password-field input.np-password-input {
    padding-right: 3rem;
}

[dir="rtl"] .np-password-field input.np-password-input {
    padding-right: 3rem;
    padding-left: 0.75rem;
}

.np-password-input::-ms-reveal {
    display: none;
}

.np-password-field .np-password-eye {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.np-password-field.is-eye-visible .np-password-eye {
    opacity: 1;
    pointer-events: auto;
}

@keyframes np-password-autofill { from { opacity: 1; } to { opacity: 1; } }
.np-password-field input:is(:-webkit-autofill, :autofill) {
    animation: np-password-autofill .01s;
}

[dir="rtl"] .np-password-field .np-password-eye {
    right: 6px;
    left: auto;
}

.np-password-field .np-password-eye:hover,
.np-password-field .np-password-eye:focus-visible {
    background: rgba(113, 135, 165, .15);
}

.np-password-eye svg {
    width: 19px;
    height: 19px;
    pointer-events: none;
}

@keyframes np-otp-autofill {
    from { opacity: 1; }
    to { opacity: 1; }
}

[data-account-otp] input:-webkit-autofill {
    animation: np-otp-autofill .01s;
}

.np-account-otp-error {
    color: #b42318;
    font-size: .875rem;
}

.np-password-field input.np-password-input {
    direction: ltr;
    text-align: left;
    font-family: Arial, sans-serif;
    font-feature-settings: normal;
}
.np-password-field .np-password-eye:active { background: rgba(113, 135, 165, .22); }

.np-float-field:has(input.np-password-input) > label {
    right: 12px;
    max-width: calc(100% - 24px);
}
