/* تنظیمات پایه و ریست کارت */
@font-face {
    font-family:'IRANSans';
    src: url(../fonts/IRANSansXFaNum-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'IRANSans' !important;
}

body {
    background-color: #f3f4f6;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* کانتینر اصلی کارت لاگین */
.login-container {
    background-color: #ffffff;
    display: flex;
    flex-direction: row; /* در حالت RTL بخش برند ابتدا (راست) قرار می‌گیرد */
    width: 850px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* بخش برند (رنگ سرمه‌ای تیره مشابه تصویر) */
.brand-section {
    background-color: #0d1b2a;
    color: #ffffff;
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.logo-placeholder {
    align-self: center;
    margin-top: 20px;
    color: #00b4d8; /* رنگ سبز/آبی المان وسط */
}

/* بخش فرم ورود */
.form-section {
    width: 55%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-section h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 8px;
}

.subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.subtitle a {
    color: #00b4d8;
    text-decoration: none;
    font-weight: bold;
}

/* استایل فیلدهای ورودی */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 45px 14px 40px; /* فضای کافی برای آیکون‌های راست و چپ */
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #00b4d8;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.2rem;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
}

/* بخش گزینه‌های پایین فیلد */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #4b5563;
}

.remember-me input {
    margin-left: 8px; /* فاصله چک‌باکس در سیستم RTL */
}

.forgot-password {
    color: #6b7280;
    text-decoration: none;
}

.forgot-password:hover {
    color: #00b4d8;
}

/* دکمه اصلی ورود */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #00c4a0; /* رنگ سبز دکمه تصویر */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #00a889;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 90%;
    }
    .brand-section, .form-section {
        width: 100%;
        padding: 30px;
    }
    .brand-section {
        align-items: center;
    }
}