/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif; /* استخدمنا خط "Cairo" */
    background-color: #ffffff; /* خلفية بيضاء */
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 100vh;*/
    padding: 20px;
    direction: rtl; /* تحديد الاتجاه من اليمين لليسار */
}

/* العنوان الرئيسي */
h2 {
    font-size: 24px;
    color: #1976d2; /* استخدام اللون الأزرق المناسب */
    margin-bottom: 20px;
    text-align: center;
}

/* حاوية الدخول */
.login-container {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-in-out;
}

/* النموذج */
form {
    display: flex;
    flex-direction: column;
}

/* تسميات الحقول */
label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    margin-top: 15px;
}

/* حقول الإدخال */
input {
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #1976d2; /* تحديد اللون عند التركيز باللون الأزرق */
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
}

/* زر الدخول */
button {
    background-color: #1976d2; /* اللون الأزرق */
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0d47a1; /* تغير اللون عند التمرير */
}

/* رسائل الخطأ */
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استجابة للجوال */
@media (max-width: 600px) {
    .login-container {
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    h2 {
        font-size: 20px;
    }

    input, button {
        font-size: 14px;
    }
}
