       /* Add your modern login page styles here or in style.css */
        body {
            font-family: 'Vazir', sans-serif; /* Make sure Vazir font is loaded */
            background-color: #f4f7f6;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
        }
        .login-container {
            background-color: #ffffff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 400px;
            text-align: center;
        }
        .login-container h2 {
            margin-bottom: 20px;
            color: #333;
        }
        .form-group {
            margin-bottom: 20px;
            position: relative;
            text-align: right;
        }
        .form-group input {
            width: calc(100% - 20px); /* Adjust for padding */
            padding: 12px 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
        .form-group input:focus {
            border-color: #007bff;
            outline: none;
        }
        .form-group label {
            position: absolute;
            top: 12px;
            right: 15px;
            color: #999;
            pointer-events: none;
            transition: all 0.3s ease;
        }
        .form-group input:focus ~ label,
        .form-group input:not(:placeholder-shown) ~ label {
            top: -15px;
            font-size: 12px;
            background-color: #fff;
            padding: 0 5px;
            color: #007bff;
        }
         .form-group input:focus {
            border-color: #007bff;
         }
        .captcha-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        .captcha-section img {
            border: 1px solid #ccc;
            border-radius: 5px;
            cursor: pointer; /* Make it clickable to refresh */
            max-width: 120px; /* Adjust as needed */
            height: 40px;
        }
        .captcha-section input[type="text"] {
            width: 100px; /* Smaller input for captcha */
            margin-right: 10px;
        }
        button {
            background-color: #007bff;
            color: white;
            padding: 12px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
            width: 100%;
        }
        button:hover {
            background-color: #0056b3;
        }
        .error-message {
            color: #dc3545;
            margin-bottom: 15px;
            font-size: 0.9em;
            text-align: center;
        }
        .login-footer {
            margin-top: 20px;
            font-size: 0.8em;
            color: #666;
        }
        .login-footer a {
            color: #007bff;
            text-decoration: none;
        }
        .login-footer a:hover {
            text-decoration: underline;
        }

h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* برای اینکه padding و border به عرض اضافه نشوند */
}

.input-group input:focus {
    border-color: #007bff; /* رنگ آبی هنگام فوکوس */
    outline: none;
}

.input-group label {
    position: absolute;
    top: 12px;
    right: 15px; /* راست برای فارسی */
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: #ffffff; /* هم‌رنگ پس‌زمینه ورودی */
    padding: 0 5px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: #007bff; /* رنگ آبی هنگام فوکوس */
    right: 15px; /* راست برای فارسی */
}

/* استایل دهی به بخش کپچا */
.captcha-container {
    margin-bottom: 25px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.captcha-container img {
    max-width: 120px; /* اندازه تصویر کپچا */
    height: auto;
    border-radius: 3px;
    border: 1px solid #ddd; /* کادر دور تصویر کپچا */
}

.captcha-input-group {
    flex-grow: 1;
    margin-left: 15px; /* فاصله بین تصویر و فیلد ورودی */
    position: relative;
}

.captcha-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    direction: ltr; /* برای ورودی کپچا بهتر است از چپ به راست باشد */
}

.captcha-input-group label {
    position: absolute;
    top: 10px;
    right: 10px; /* راست برای فارسی */
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: #f9f9f9; /* هم‌رنگ پس‌زمینه */
    padding: 0 5px;
}

.captcha-input-group input:focus + label,
.captcha-input-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 11px;
    color: #007bff;
    right: 10px;
}


.captcha-container .refresh-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #007bff;
    font-size: 20px;
    padding: 5px;
}

.captcha-container .refresh-button:hover {
    color: #0056b3;
}


button {
    background-color: #007bff; /* رنگ دکمه */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3; /* رنگ تیره‌تر هنگام هاور */
}

.options {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.options a {
    color: #007bff;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

/* مثال برای ایجاد ظاهر آرایه‌ای یا الگو با CSS */
.captcha-image-placeholder {
    width: 120px;
    height: 40px; /* ارتفاع مشخص برای کپچا */
    border-radius: 3px;
    border: 1px solid #ddd;
    background-color: #f0f0f0; /* رنگ پایه */
    position: relative; /* برای قرار دادن عناصر داخلی */
    overflow: hidden; /* برای جلوگیری از بیرون زدن عناصر */
}

/* ایجاد مربع‌های رنگی با ::before و ::after */
.captcha-image-placeholder::before,
.captcha-image-placeholder::after {
    content: '';
    position: absolute;
    width: 30px; /* اندازه مربع‌ها */
    height: 30px;
    border-radius: 4px;
    opacity: 0.6; /* شفافیت */
}

.captcha-image-placeholder::before {
    background-color: #28a745; /* سبز */
    top: 5px;
    left: 5px;
    transform: rotate(15deg); /* چرخش */
}

.captcha-image-placeholder::after {
    background-color: #ffc107; /* زرد */
    bottom: 5px;
    right: 5px;
    transform: rotate(-15deg); /* چرخش */
}

/* می‌توانید مربع‌های بیشتری با کلاس‌های جداگانه یا شبه‌کلاس‌های دیگر اضافه کنید */
.captcha-image-placeholder .extra-block {
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: #dc3545; /* قرمز */
    border-radius: 4px;
    opacity: 0.7;
    top: 15px;
    right: 30px;
}

/* برای نمایش کپچای متنی در صورت عدم وجود تصویر */
.captcha-text-placeholder {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    letter-spacing: 3px; /* فاصله بین حروف */
}

        body { font-family: 'Tahoma', sans-serif; margin: 20px; }
        .captcha-container { display: flex; align-items: center; margin-bottom: 15px; }
        .captcha-image { border: 1px solid #ccc; margin-left: 10px; cursor: pointer; height: 50px; /* تنظیم ارتفاع تصویر */ }
        .captcha-refresh { cursor: pointer; font-size: 1.2em; color: #007bff; margin-left: 10px; }
        .form-group { margin-bottom: 15px; }
        label { display: block; margin-bottom: 5px; }
        input[type="text"], input[type="password"] { width: 250px; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
        button { padding: 10px 15px; background-color: #28a745; color: white; border: none; border-radius: 4px; cursor: pointer; }
        .error-message { color: red; font-size: 0.9em; margin-top: 5px; }
		        
        .captcha-container img {
            border: 1px solid #ccc;
        }
		            margin-top: 20px;
            display: flex;
            align-items: center;
            gap: 10px; /* فاصله بین تصویر و فیلد ورودی */
        }
        .captcha-container img {
            border: 1px solid #ccc;
            cursor: pointer; /* نشانگر ماوس را به حالت کلیک تغییر می‌دهد */
            max-width: 150px; /* حداکثر عرض تصویر */
            height: auto; /* حفظ نسبت ابعاد */
        }
        .refresh-button {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 24px; /* اندازه آیکون یا متن رفرش */
            padding: 5px;
        }
        /* استایل برای آیکون فلش (اختیاری، می‌توانید از فونت یا SVG استفاده کنید) */
        .refresh-button::before {
            content: '🔄'; /* آیکون رفرش */
        }
		        .container {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        .captcha-wrapper {
            margin-top: 20px;
            display: flex;
            align-items: center;
            justify-content: center; /* وسط چین کردن عناصر کپچا */
            gap: 10px;
            flex-wrap: wrap; /* اجازه شکستن به خط بعد در صورت کمبود فضا */
        }
        .captcha-wrapper img {
            border: 1px solid #ccc;
            cursor: pointer;
            height: 50px; /* ثابت کردن ارتفاع تصویر */
            width: 180px; /* ثابت کردن عرض تصویر */
            object-fit: cover; /* اطمینان از اینکه تصویر به خوبی درون کادر قرار می‌گیرد */
        }
        .captcha-input {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            flex-grow: 1; /* اجازه رشد به فیلد ورودی */
            min-width: 150px; /* حداقل عرض برای فیلد ورودی */
        }
        .refresh-button {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 28px; /* کمی بزرگتر */
            padding: 5px 10px;
            transition: transform 0.3s ease; /* افکت چرخش */
        }
        .refresh-button:hover {
            transform: rotate(360deg); /* چرخش با هاور */
        }
 
        button[type="submit"] {
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            margin-top: 20px;
        }
        button[type="submit"]:hover {
            background-color: #0056b3;
        }
        .error-message {
            color: red;
            margin-top: 15px;
            font-weight: bold;
        }
