/* --- Password toggle (RTL/LTR safe) --- */
.password-wrapper{
    position: relative;
    display: block;
}

/* فضای کافی برای دکمه چشم داخل input */
.password-wrapper input{
    width: 100%;
    padding-inline-end: 40px; /* بجای padding-right؛ سازگار با RTL/LTR */
    box-sizing: border-box;
}

/* دکمه چشم روی لبه راست/چپ بر اساس جهت صفحه */
.toggle-pass{
    position: absolute;
    inset-inline-end: 10px;     /* بجای right؛ سازگار با RTL/LTR */
    top: 50%;
    transform: translateY(-50%);
    display: flex;              /* جلوگیری از افتادن به خط بعد */
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    font-size: 16px;
    color: #6b7280;
    padding: 0;                 /* بعضی مرورگرها padding پیشفرض دارند */
}

/* لمس آسان‌تر روی موبایل */
@media (max-width: 768px){
    .toggle-pass{
        width: 32px;
        height: 32px;
    }
}

.toggle-pass:hover{ color:#2563eb; }