/* =========C:\xampp\htdocs\assets\captcha.css
   فایل: assets/captcha.css
   استایل یکدست کپچا برای کل پروژه
   قابل استفاده در همه صفحات و مودال‌ها
   ============================================================ */

/* ===== کانتینر اصلی کپچا ===== */
.captcha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 2px auto;
    padding: 4px 8px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    height: 32px;
    background-color: #f7f7f7;
    width: fit-content;
}

/* ===== متن کپچا (اعداد رنگی) ===== */
/* ===== متن کپچا (اعداد رنگی) ===== */
.captcha .captchaText {
    font-size: 24px;
    font-weight: bold;
    background-color: transparent;
    display: inline-block;
    padding: 0 2px;
    letter-spacing: -2.5px;
    user-select: none;
    line-height: 1;
    direction: ltr;
    position: relative;
    top: 4px;
}

/* ===== دکمه تازه‌سازی ===== */
.captcha .captcha-refresh {
    padding: 2px 4px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s;
    color: #555;
    position: relative;
    top: 3px;
}

.captcha .captcha-refresh:hover {
 
    color: #3496cd;
}

/* ===== فیلد ورودی کپچا ===== */
.captcha .captchaInput {
    width: 90px;
    height: 26px;
    font-size: 18px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'VazirMatn', Arial, sans-serif;
    padding: 0 4px;
    box-sizing: border-box;
    background: #ffffff;
    transition: border-color 0.3s;
    direction: ltr;
}

.captcha .captchaInput:focus {
    border-color: #3496cd;
    outline: none;
}

/* ===== انواع مختلف کپچا (برای مواقعی که نیاز به تغییر داره) ===== */

/* کپچای کوچک (برای جاهای کم‌جا) */
.captcha-sm .captchaInput {
    width: 60px;
    height: 22px;
    font-size: 14px;
}

.captcha-sm .captchaText {
    font-size: 18px;
    letter-spacing: -1px;
}

.captcha-sm .captcha-refresh {
    font-size: 18px;
}

/* کپچای بزرگ (برای تاکید بیشتر) */
.captcha-lg .captchaInput {
    width: 120px;
    height: 32px;
    font-size: 20px;
}

.captcha-lg .captchaText {
    font-size: 28px;
}

.captcha-lg .captcha-refresh {
    font-size: 26px;
}

/* ===== ریسپانسیو موبایل ===== */
@media (max-width: 480px) {
    .captcha .captchaInput {
        width: 70px;
        height: 28px;
        font-size: 16px;
    }
    
    .captcha .captchaText {
        font-size: 20px;
    }
    
    .captcha .captcha-refresh {
        font-size: 20px;
    }
    
    .captcha-sm .captchaInput {
        width: 55px;
        height: 24px;
        font-size: 13px;
    }
    
    .captcha-lg .captchaInput {
        width: 90px;
        height: 30px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .captcha .captchaInput {
        width: 60px;
        height: 26px;
        font-size: 14px;
    }
    
    .captcha .captchaText {
        font-size: 18px;
        letter-spacing: -1px;
    }
    
    .captcha .captcha-refresh {
        font-size: 18px;
    }
}