﻿/* ============================================================
   login-split.css - استایل دو تکه و مدرن صفحه ورود
   ============================================================ */

.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    direction: rtl;
}

.split-box {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ========== سمت راست: فرم ورود ========== */
.form-side {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.form-content {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.auth-title {
    color: #C2185B;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    right: 15px; /* آیکون سمت راست است */
    top: 50%;
    transform: translateY(-50%);
    color: #C2185B;
    opacity: 0.8;
    font-size: 18px;
    z-index: 2;
}

.split-input {
    width: 100%;
    /* اصلاح تداخل: فضای 45 پیکسلی به سمت راست داده شد تا زیر آیکون نرود */
    padding: 15px 45px 15px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #fcfcfc;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box; /* برای جلوگیری از به هم ریختن عرض فیلد */
}

    .split-input:focus {
        border-color: #C2185B;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.1);
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    cursor: pointer;
}

    .checkbox-group input[type="checkbox"] {
        accent-color: #C2185B;
        transform: scale(1.2);
        cursor: pointer;
    }

.forgot-link {
    color: #2196f3;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

    .forgot-link:hover {
        color: #1565c0;
        text-decoration: underline;
    }

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #C2185B, #E91E63);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(194, 24, 91, 0.3);
    }

.register-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

    .register-prompt a {
        color: #C2185B;
        font-weight: bold;
        text-decoration: none;
    }

/* ========== سمت چپ: اطلاعات و لوگو ========== */
.info-side {
    flex: 1;
    background: linear-gradient(135deg, #C2185B, #8E0E3E);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.info-content {
    max-width: 350px;
}

.info-logo {
    width: 120px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.info-side h3 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
}

.info-side p {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 30px;
}

.info-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    display: inline-block;
}

    .info-features li {
        font-size: 15px;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(255, 255, 255, 0.1);
        padding: 10px 15px;
        border-radius: 10px;
    }

        .info-features li i {
            color: #4CAF50;
            font-size: 18px;
        }

.error-message {
    display: block;
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #ffcdd2;
    text-align: center;
}

/* ========== ریسپانسیو (موبایل و تبلت) ========== */
@media (max-width: 850px) {
    .split-box {
        flex-direction: column;
    }

    .form-side {
        padding: 40px 20px;
        order: 1;
    }

    .info-side {
        padding: 40px 20px;
        order: 2;
    }

    .info-features {
        text-align: center;
    }
}
