/* --- 1. أساسيات الصفحة --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

/* --- 2. خلفية النقاط (مضافة مباشرة للحاويات لضمان الظهور) --- */
.auth-container, .login-page-bg {
    background-color: #ffffff !important;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px) !important;
    background-size: 30px 30px !important;
    background-attachment: fixed !important;
}

/* --- 3. صفحة إنشاء الحساب (SIGN UP) --- */
.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-image-side {
    flex: 1.2;
    background-color: rgba(248, 250, 252, 0.4); /* تخفيف الخلفية لتبرز النقاط */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-image-side img {
    max-width: 100%; /* تكبير الصورة لأقصى حد مسموح */
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.1));
    /* ✅ الصورة الجانبية: الحركة موجودة */
    animation: floating 4s ease-in-out infinite;
}

.auth-form-side {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9); /* شفافية لإظهار النقاط تحت الفورم */
    backdrop-filter: blur(10px);
}

/* --- 4. صفحة تسجيل الدخول (LOG IN) --- */
.login-page-bg {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* --- 5. تنسيق العناصر الداخلية (توسيط اللوغو) --- */
.auth-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 25px;
}

.auth-logo img {
    width: 95px; /* تكبير اللوغو */
    /* ✅ الشعار: تم حذف الـ Animation ليصبح ثابتاً */
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.role-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 25px;
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

.toggle-btn.active {
    background: white;
    color: #1a4f8b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.input-group {
    text-align: left;
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fdfdfd;
    box-sizing: border-box;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #1a4f8b;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

/* تعريف الحركة (يستخدم للصورة فقط الآن) */
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 850px) {
    .auth-image-side { display: none; }
    .auth-form-side { flex: 1; background: white; }
}