:root {
    --primary: #006633;
    --secondary: #d11a2a;
    --dark: #1a2a1f;
    --light: #f8fbf9;
    --text: #444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; }

.split-screen {
    display: flex;
    min-height: 100vh;
}
/* 1. تنظيف جهة الهوية البصرية من أي صور خلفية متداخلة */
/* 1. استخدام خلفية هندسية نظيفة (بدون شعار مدمج) */
.left-side {
    flex: 1.2;
    /* استخدمنا رابط صورة زخرفية إسلامية/هندسية نظيفة تليق بالمعهد */
    background: url('https://www.transparenttextures.com/patterns/arabesque.png'), linear-gradient(135deg, #004d26 0%, #1a2a1f 100%) !important;
    background-color: #004d26 !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    min-height: 100vh;
}

/* 2. الطبقة العلوية لضمان عدم ظهور أي بقايا للصورة القديمة */
.left-side .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 77, 38, 0.8) !important; /* لون أخضر شفاف */
    z-index: 1;
}

/* 3. حاوية المحتوى */
.left-side .content {
    position: relative;
    z-index: 5;
    padding: 20px;
    width: 100%;
}

/* 4. الشعار: الحجم الكبير والمطلوب */
.brand-logo {
    width: 320px !important; /* حجم كبير وواضح */
    max-width: 80% !important;
    height: auto !important;
    margin-bottom: 25px !important;
    /* ظل أبيض خفيف لجعل الشعار "ينطق" من الخلفية */
    filter: drop-shadow(0 10px 25px rgba(255,255,255,0.2)) !important;
    display: inline-block !important;
}

/* 5. تحسين العناوين */
.left-side h1 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

.left-side p {
    font-size: 1.3rem !important;
    opacity: 0.9;
}
.brand-logo:hover {
    transform: scale(1.05) translateY(-5px); /* تكبير طفيف وتحريك للأعلى */
}

/* الجهة اليسرى - النماذج */
.right-side {
    flex: 1;
    background: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-wrapper { width: 100%; max-width: 450px; }

.form-header { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.tab-btn { background: none; border: none; font-size: 1.1rem; font-weight: 700; color: #aaa; cursor: pointer; padding: 5px 15px; transition: 0.3s; }
.tab-btn.active { color: var(--primary); border-bottom: 3px solid var(--primary); }

.auth-form { display: none; }
.auth-form.active { display: block; animation: slideUp 0.4s ease; }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

h2 { font-size: 1.8rem; color: var(--dark); margin-bottom: 25px; }

.section-title { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin: 20px 0 10px; border-right: 4px solid var(--primary); padding-right: 10px; }

.input-box { margin-bottom: 15px; }
.input-box label { display: block; font-size: 0.85rem; color: #666; margin-bottom: 6px; }
.input-box input, .input-box select {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; outline: none; font-size: 1rem; transition: 0.3s; background: white;
}
.input-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.05); }

.row { display: flex; gap: 15px; }
.row .input-box { flex: 1; }

.submit-btn {
    width: 100%; padding: 14px; background: var(--dark); color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; margin-top: 20px; transition: 0.3s;
}
.submit-btn:hover { background: var(--primary); transform: translateY(-2px); }
.register-btn { background: var(--primary); }

/* للموبايل */
@media (max-width: 900px) {
    .split-screen { flex-direction: column; }
    .left-side { padding: 60px 20px; }
    .right-side { padding: 40px 20px; }
}