/* =========================================================
   BDSChat — Login Page Styles
   File: css/login.css
   Description: استایل اختصاصی صفحه ورود
   ========================================================= */

/* =========================================================
   AUTH LAYOUT (Two Columns)
   ========================================================= */
.auth-container {
    background-color: var(--bg-card);
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    overflow: hidden;
    min-height: 600px;
    animation: fadeInUp 0.4s ease-out;
}

/* =========================================================
   FORM SIDE (Left in RTL)
   ========================================================= */
.form-side {
    flex: 1;
    padding: 48px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* =========================================================
   IMAGE SIDE (Right in RTL)
   ========================================================= */
.image-side {
    flex: 1;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

    .image-side::before,
    .image-side::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        background: rgba(79, 70, 229, 0.05);
    }

    .image-side::before {
        width: 300px;
        height: 300px;
        top: -80px;
        right: -80px;
    }

    .image-side::after {
        width: 220px;
        height: 220px;
        bottom: -60px;
        left: -60px;
    }

    .image-side img {
        max-width: 85%;
        height: auto;
        object-fit: contain;
        z-index: 2;
        position: relative;
    }

/* =========================================================
   LOGO
   ========================================================= */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-icon {
    background-color: var(--primary);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* =========================================================
   TITLES
   ========================================================= */
.form-side h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-align: center;
}

.form-side .subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.7;
}

/* =========================================================
   FORM — Override form-group padding for icon
   ========================================================= */
.form-side .form-input {
    padding: 14px 48px 14px 48px; /* padding for both icons */
}

/* آیکون اصلی سمت راست */
.input-icon-right {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .input-icon-right svg {
        width: 20px;
        height: 20px;
    }

/* دکمه چشم سمت چپ */
.toggle-password {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color var(--transition);
}

    .toggle-password:hover {
        color: var(--primary);
    }

    .toggle-password svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
    }

/* =========================================================
   FORM OPTIONS (Remember me + Forgot password)
   ========================================================= */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

    .form-options a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        transition: color var(--transition);
    }

        .form-options a:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }

/* =========================================================
   FORM FOOTER (Signup link)
   ========================================================= */
.form-footer {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
    margin-top: 8px;
}

    .form-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 700;
        margin-right: 4px;
        transition: color var(--transition);
    }

        .form-footer a:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    body {
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .auth-container {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }

    .image-side {
        display: none;
    }

    .form-side {
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 8px;
    }

    .auth-container {
        border-radius: var(--radius-lg);
    }

    .form-side {
        padding: 28px 20px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 10px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-section {
        margin-bottom: 18px;
        gap: 10px;
    }

    .form-side h2 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .form-side .subtitle {
        font-size: 0.85rem;
        margin-bottom: 22px;
        line-height: 1.6;
    }

    .form-side .form-input {
        padding: 11px 42px 11px 42px;
        font-size: 13px;
        border-radius: 10px;
    }

    .input-icon-right {
        right: 12px;
    }

        .input-icon-right svg,
        .toggle-password svg {
            width: 18px;
            height: 18px;
        }

    .toggle-password {
        left: 12px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-options {
        font-size: 0.78rem;
        margin-bottom: 18px;
    }

    .form-footer {
        font-size: 0.82rem;
    }
}
