/* 禁用浏览器自带的密码显示按钮 */
input[type="password"]::-webkit-reveal-password-button {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none;
}

input[type="password"]::-ms-reveal {
    display: none;
}

input[type="password"]::-ms-clear {
    display: none;
}

/* Firefox */
input[type="password"]::-moz-reveal-password {
    display: none;
}

/* 隐藏IE/Edge的密码显示按钮 */
input[type="password"]::-webkit-reveal-password {
    display: none;
}

/* 确保自定义按钮样式 */
.togglePassword {
    outline: none;
}

.togglePassword:hover {
    opacity: 0.7;
}

.togglePassword {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    height: 20px;
    margin-top: 3px;
}

.togglePassword span {
    width: 11px;
    height: 20px;
    display: inline-block;
}

/* 为eyeOpen和eyeClosed图标设置背景图片 */
.eyeOpen {
    background-image: url('/resources/am/base/img/eye-open.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.eyeClosed {
    background-image: url('/resources/am/base/img/eye-closed.png');
    background-size: contain;
    background-repeat: no-repeat;
}