﻿/* Reset و تنظیمات اولیه */


/* Reset و تنظیمات اولیه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* کانتینر اصلی */
.login-container {
    display: flex;
    min-height: 100vh;
    flex-direction: row; /* جهت ردیف (چپ به راست) */
}

/* بخش تصویر (سمت چپ) */
.login-image {
    flex: 1;
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    order: 1; /* تصویر اول نمایش داده شود (سمت چپ) */
}

    .login-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.9;
    }

/* بخش فرم (سمت راست) */
.login-form {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    order: 2; /* فرم دوم نمایش داده شود (سمت راست) */
    direction: rtl; /* جهت متن فارسی */
}

/* بقیه استایل‌ها بدون تغییر می‌مانند */
/* ... */


.logo {
    text-align: center;
    margin-bottom: 30px;
}

    .logo h1 {
        color: #2c3e50;
        font-size: 28px;
        font-weight: 700;
    }

.login-form h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #555;
        font-size: 14px;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

    .form-control:focus {
        border-color: #3498db;
        outline: none;
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

    .form-options a {
        color: #3498db;
        text-decoration: none;
    }

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--blue); /* رنگ اصلی پروژه */
    color: #333 !important;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600; /* پررنگ‌تر */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

    .btn-login:hover,
    .btn-login:focus {
        background-color: #357ABD; /* کمی تیره‌تر از آبی اصلی */
        color: var(--blue); /* تضمین می‌کنیم سفید بمونه */
        font-weight: bold;
        border-color: var(--blue) !important;
        border-width: 4px;
    }

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

    .register-link a {
        color: #3498db;
        text-decoration: none;
        font-weight: 500;
    }

/* طراحی ریسپانسیو */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-image {
        display: none;
    }

    .login-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 20px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

        .form-options a {
            margin-top: 10px;
        }
}
/* استایل‌های جدید برای CAPTCHA */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    width: 120px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

    .captcha-image:hover {
        opacity: 0.8;
    }

/* استایل‌های امنیتی اضافی */
.form-control {
    position: relative;
}

    .form-control[type="password"] {
        letter-spacing: 2px;
    }

/* نمایش قدرت رمز عبور */
.password-strength {
    margin-top: 5px;
    height: 5px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}
/* استایل‌های جدید برای صفحه ثبت نام */
.text-message {
    display: block;
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.text-success {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
}

.text-danger {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.terms {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

    .terms label {
        margin-right: 5px;
    }

    .terms a {
        color: #3498db;
        text-decoration: none;
    }

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

    .login-link a {
        color: #3498db;
        text-decoration: none;
        font-weight: 500;
    }
/* موبایل: کپچا زیر هم */
@media (max-width: 768px) {
    /* کانتینر کپچا */
    .captcha-container,
    .d-flex.align-items-center.gap-3 {
        flex-direction: column !important; /* زیر هم */
        align-items: stretch !important; /* پر کردن عرض */
        gap: 8px !important; /* فاصله استاندارد */
    }

    /* TextBox کپچا */
    .captcha-input,
    #txtCaptcha {
        width: 100% !important;
        height: 42px !important;
    }

    /* تصویر کپچا */
    .captcha-image,
    #imgCaptcha {
        width: 100% !important;
        height: 42px !important;
    }
}
