/* ═══════════════════════════════════════════════════════════
   تاجر تيك | TAJER TECH - Split Layout Login Panel
   ═══════════════════════════════════════════════════════════ */

.login-page {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background-color: var(--color-bg-main);
    overflow: hidden;
}

/* ─── الجانب الأيمن (RTL): نموذج إدخال البيانات ─── */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    max-width: 540px;
    z-index: 10;
    position: relative;
    background-color: var(--color-bg-main);
    border-left: 1px solid var(--color-border);
}

.login-card {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    margin-bottom: 16px;
    display: inline-flex;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.25));
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

.login-form .form-group {
    margin-bottom: 22px;
}

/* تنسيق شريط خطأ تسجيل الدخول */
.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--color-red);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 20px;
    animation: fadeIn 0.3s;
}

.login-error svg {
    flex-shrink: 0;
}

.forgot-password {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.login-demo-info {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

.login-demo-info code {
    background-color: var(--color-bg-hover);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-primary-light);
    font-family: monospace;
}

/* ─── الجانب الأيسر: الرسوم التجريدية المتوهجة ─── */
.login-decor {
    flex: 1;
    background: linear-gradient(135deg, #0d1527 0%, #0d271f 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-decor-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* سحب الدوائر المتوهجة التجريدية */
.login-shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.08);
    pointer-events: none;
}

.login-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
    animation: floatShape1 18s ease-in-out infinite;
}

.login-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    animation: floatShape2 14s ease-in-out infinite;
}

.login-shape-3 {
    width: 220px;
    height: 220px;
    top: 35%;
    left: 20%;
    animation: floatShape1 12s ease-in-out infinite alternate;
}

.login-shape-4 {
    width: 120px;
    height: 120px;
    bottom: 25%;
    right: 15%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 75%);
    animation: floatShape2 8s ease-in-out infinite alternate;
}

@keyframes floatShape1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -30px) rotate(15deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes floatShape2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, 20px) rotate(-10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.login-decor-content {
    position: relative;
    z-index: 1;
    text-align: right; /* محاذاة لليمين للـ RTL */
    padding: 40px;
    max-width: 480px;
}

.login-decor-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    line-height: 1.4;
}

.login-decor-title span {
    color: var(--color-primary-light);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.login-decor-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-top: 14px;
    font-weight: 500;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
}

.login-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-feature-icon svg {
    width: 20px;
    height: 20px;
}

/* ─── استجابة الشاشات الصغيرة (Responsive Design) ─── */
@media (max-width: 900px) {
    .login-decor {
        display: none; /* إخفاء الجانب الزخرفي في الجوالات والشاشات الصغيرة */
    }
    
    .login-form-section {
        max-width: 100%;
        width: 100%;
        border-left: none;
    }
}
