/* ===================================================================
   ملف الأنماط الخاص بصفحة تسجيل الدخول (login_style.css)
   =================================================================== */

/* --- 1. إعدادات الصفحة الكاملة --- */
body.page-login {
    font-family: 'Cairo', sans-serif; /* تأكد من تضمين هذا الخط في الهيدر */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 1.5rem;
    background-color: #f4f7f6; /* لون احتياطي */
    background-image: linear-gradient(135deg, #74ebd5 0%, #9face6 100%); /* تدرج لوني منعش */
    overflow-y: auto; /* السماح بالتمرير على الشاشات الصغيرة */
}

/* إخفاء أي عناصر غير مرغوب فيها من الهيدر أو الفوتر العام */
body.page-login .navbar,
body.page-login .site-footer {
    display: none !important;
}

/* --- 2. بطاقة تسجيل الدخول --- */
.login-card {
    width: 100%;
    max-width: 420px; /* عرض مناسب */
    background-color: rgba(255, 255, 255, 0.95); /* خلفية بيضاء شبه شفافة */
    backdrop-filter: blur(10px); /* تأثير زجاجي (إذا دعمه المتصفح) */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px; /* حواف دائرية أكثر */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* ظل ناعم ومنتشر */
    overflow: hidden;
    animation: fadeIn 0.5s ease-out; /* تأثير ظهور */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. ترويسة البطاقة (الشعار والعنوان) --- */
.login-header {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.login-logo {
    max-width: 80px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.login-logo:hover {
    transform: scale(1.1);
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd; /* اللون الأزرق الأساسي لـ Bootstrap */
    margin: 0;
}

.login-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* --- 4. جسم البطاقة (النموذج) --- */
.login-body {
    padding: 0 2.5rem 2rem 2.5rem;
}

/* تعديل شكل حقول الإدخال */
.login-body .form-floating {
    position: relative;
}

.login-body .form-floating .form-control {
    background-color: #f8f9fa; /* لون فاتح مميز للحقل */
    border: 2px solid transparent; /* إزالة الحد الافتراضي */
    border-radius: 12px;
    padding-left: 3rem; /* مساحة للأيقونة */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-body .form-floating .form-control:focus {
    background-color: #fff;
    border-color: #86b7fe; /* لون الحد عند التركيز */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* أيقونات داخل حقول الإدخال */
.login-body .form-floating .input-icon {
    position: absolute;
    top: 50%;
    left: 1rem; /* تم تغييرها لليسار (RTL) */
    transform: translateY(-50%);
    color: #adb5bd;
    transition: color 0.2s ease;
    z-index: 3; /* لضمان ظهورها فوق الليبل */
}

.login-body .form-floating .form-control:focus + .input-icon {
    color: var(--bs-primary);
}

/* --- 5. زر الدخول وبقية العناصر --- */
.login-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.login-footer-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.login-footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}
.login-footer-links a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* تنسيق رسائل الخطأ */
.login-body .alert {
    border-radius: 10px;
    font-size: 0.9rem;
}