/* الإعدادات العامة والتصفير */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #f4f7f6;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* حاوية النظام بالكامل */
.auth-container {
    display: flex;
    width: 900px;
    max-width: 95%;
    height: 550px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* القسم الجانبي الجمالي (Branding) */
.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, #1e5f44 0%, #0d3826 100%);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    position: relative;
}

/* شاشة الموبايل تخفي هذا الجزء لراحة المستخدم */
@media (max-width: 768px) {
    .auth-branding {
        display: none;
    }
}

.branding-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.branding-content p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    font-style: italic;
}

.decor-line {
    width: 60px;
    height: 3px;
    background: #c99a4e; /* لون ذهبي إسلامي متناسق */
    margin: 20px auto 0;
    border-radius: 2px;
}

/* قسم الفورم والمدخلات */
.auth-form-box {
    flex: 1;
    padding: 40px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-wrapper {
    display: none;
    width: 100%;
}

.form-wrapper.id-active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form-box h3 {
    font-size: 1.5rem;
    color: #1e5f44;
    margin-bottom: 5px;
}

.form-subtitle {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 25px;
}

/* تنسيق المدخلات */
.input-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #555;
    font-weight: 600;
}

.input-group input, .input-group select {
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus, .input-group select:focus {
    border-color: #1e5f44;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(30, 95, 68, 0.1);
}

/* الأزرار */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: #1e5f44;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #154430;
}

.toggle-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.toggle-text a {
    color: #c99a4e;
    text-decoration: none;
    font-weight: 600;
}

.toggle-text a:hover {
    text-decoration: underline;
}