﻿/* 🌟 إعدادات عامة */
body, html {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../images/bg.jpg') no-repeat center center fixed; /* 🖼️ إضافة خلفية مخصصة */

    background-size: cover;
    text-align: center;
    direction: rtl;
    margin: 0;
    padding: 0;
    height: 100vh; /* يجعل الصفحة تمتد لطول الشاشة بالكامل */
    overflow: hidden; /* إخفاء شريط التمرير */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 🏠 حاوية تسجيل الدخول */
.login_container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* 🔹 تصميم صندوق تسجيل الدخول */
.box {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 350px;
    max-width: 90%;
    text-align: center;
    position: relative;
}

/* 🏷️ أيقونة الشعار */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

    .logo-container img {
        width: 120px; /* 📌 ضبط حجم الشعار */
        height: 120px;
        border-radius: 50%; /* 🔵 لجعل الشعار دائري */
        object-fit: cover;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

/* 🔠 عنوان تسجيل الدخول */
h1 {
    color: #2572ff;
    font-size: 24px;
    margin-bottom: 20px;
}

/* 📌 حقول الإدخال */
input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #2572ff;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    text-align: right;
}

    /* 🎨 تحسين شكل الـ Placeholder */
    input::placeholder {
        color: #999;
    }

/* 🎭 زر تسجيل الدخول */
.btn_login {
    background: #2572ff;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn_login:hover {
        background: #1e5cd9;
    }

/* ⚠️ رسالة الخطأ */
.wrongLogin {
    background: #ff4d4d;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    animation: fadeIn 0.5s ease-in-out;
}

/* 💡 تأثير ظهور الرسالة */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 🔄 رابط استعادة كلمة المرور */
.forgot-password {
    margin-top: 10px;
    font-size: 14px;
}

    .forgot-password a {
        color: #2572ff;
        text-decoration: none;
    }

        .forgot-password a:hover {
            text-decoration: underline;
        }

/* 📱📏 تحسين استجابة التصميم للأجهزة المختلفة */

/* للأجهزة اللوحية (Tablet) */
@media (max-width: 768px) {
    .box {
        width: 90%;
        padding: 25px;
    }

    h1 {
        font-size: 22px;
    }

    .btn_login {
        font-size: 16px;
        padding: 10px;
    }

    .logo-container img {
        width: 90px;
        height: 90px;
    }
}

/* للهواتف المحمولة (Mobile) */
@media (max-width: 480px) {
    .box {
        width: 95%;
        padding: 20px;
    }

    h1 {
        font-size: 20px;
    }

    input {
        font-size: 14px;
        padding: 10px;
    }

    .btn_login {
        font-size: 16px;
        padding: 10px;
    }

    .logo-container img {
        width: 60px;
        height: 60px;
    }
}
