/* Reset بسيط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    height: 100vh;

    background: url("BackGround.jpg") center center / cover no-repeat;

    color: white;
    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    z-index: -1;
}


/* الحاوية الرئيسية */
#LoginOrSignPanel,
#LoginPanel,
#SignPanel {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    position: relative;  /* ✅ مهم للعناصر المطلقة داخله */
}

/* العناوين */
h1 {
    margin-bottom: 20px;
    font-size: 24px;
}

/* inputs */
input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: none;
    border-radius: 6px;
    outline: none;
    background: #334155;
    color: white;
    transition: background 0.3s ease, transform 0.2s ease;
}

input:focus {
    background: #475569;  /* ✅ يتغير لون الخلفية عند التركيز */
    transform: scale(1.02);  /* ✅ تكبير بسيط */
}

/* placeholder */
input::placeholder {
    color: #cbd5e1;
}

/* ====== الأزرار ====== */
button {
    width: 100%;
    padding: 9px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;  /* ✅ انتقال سلس لكل الخصائص */
    position: relative;  /* ✅ لاستخدام transform */
}

button:hover {
    background: #bd25eb;
    transform: translateY(-3px);  /* ✅ يرتفع قليلاً بدلاً من القفز */
    box-shadow: 0 6px 20px rgba(189, 37, 235, 0.4);  /* ✅ ظل جميل */
}

button:active {
    transform: scale(0.95);  /* ✅ تأثير الضغط */
    background: #8b1ab3;
}

/* زر مختلف (مثلاً في البداية) */
#LoginOrSignPanel button {
    background: #22c55e;
}

#LoginOrSignPanel button:hover {
    background: #16a34a;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    width: 250px;
}

/* ====== رسالة التنبيه ====== */
#Notic {
    position: fixed;  /* ✅ ثابت في الشاشة */
    bottom: 300px;     /* ✅ من الأسفل */
    left: 50%;        /* ✅ في المنتصف */
    transform: translateX(-50%);  /* ✅ توسيط */
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    z-index: 1000;  /* ✅ فوق كل العناصر */
    text-align: center;
    min-width: 100px;
    transition: all 0.3s ease;
}

/* ====== حقوق النشر ====== */
#Credits {
    position: fixed;  /* ✅ ثابت في الشاشة */
    bottom: 10px;     /* ✅ من الأسفل */
    left: 50%;        /* ✅ في المنتصف */
    transform: translateX(-50%);  /* ✅ توسيط */
    font-size: 14px;
    padding: 5px 15px;
    color: #8b5cf6;  /* ✅ لون بنفسجي فاتح */
    -webkit-text-stroke: 0.5px #d400ff;
    opacity: 0.7;  /* ✅ شفاف قليلاً */
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(212, 0, 255, 0.3);
    z-index: 999;
}

#NouhFiles img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#NouhFiles img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

#NouhFiles {
    max-height: 400px;        /* ارتفاع محدد */
    overflow-y: auto;         /* تمرير عمودي */
    flex-wrap: wrap;          /* الصور تترتب في صفوف */
    gap: 10px;
    padding: 15px;
    background: #1e293b;
    border-radius: 12px;
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
}