body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    /* خلفية داكنة مع تدرج ناعم وموحد */
    background-color: #1A1A1A; 
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    position: relative; 
    overflow: hidden;
}

/* ------------------ تأثير الخلفية المتحركة (Brick/Pattern) ------------------ */

/* استخدام العنصر الزائف ::before كطبقة خلفية متحركة أرق */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    opacity: 0.08; /* شفافية خفيفة جداً */
    pointer-events: none;

    /* نمط خطوط قطرية ناعمة */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.04) 50px,
        transparent 50px,
        transparent 100px
    );
    background-size: 200px 200px; 
    
    /* تطبيق حركة بطيئة جداً */
    animation: build-pattern 90s linear infinite; 
}

@keyframes build-pattern {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 200px 200px;
    }
}

/* ------------------------------ Header (Back Arrow) ------------------------- */
header {
    width: 90%;
    max-width: 380px; /* زيادة العرض ليتناسب مع الحاوية الجديدة */
    position: absolute;
    top: 20px;
}
.header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #E0E0E0;
    /* شكل Neomorphic خفيف */
    background: #1A1A1A;
    border-radius: 10px; 
    box-shadow: 
        5px 5px 10px #111111,
        -5px -5px 10px #222222;
    z-index: 10;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #FF4444; 
    transition: all 0.3s ease;
    padding: 5px 8px;
    border-radius: 6px;
}

.back-btn:hover {
    color: #FFFFFF;
    background-color: #550000;
}

.back-btn:active {
    color: #0A0A0A;
    background-color: #FF5555;
    /* تأثير ضغط داخلي عند النقر */
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5);
}
.header span {
    font-weight: 500;
    font-size: 15px;
}

/* ------------------------------ Login Form (Neomorphism) ------------------------- */

.login-container {
    color: #E0E0E0;
    /* تطبيق تأثير Neomorphism الداكن على الحاوية */
    background: #1A1A1A; 
    padding: 40px;
    border-radius: 20px; /* زيادة الانحناء قليلاً */
    /* ظل عصري ثنائي الاتجاه */
    box-shadow: 
        10px 10px 20px #111111, /* ظل أغمق (لأسفل/لليمين) */
        -10px -10px 20px #222222; /* ظل أفتح (لأعلى/لليسار) */
    
    display: flex; 
    flex-direction: column;
    gap: 20px;
    width: 90%;
    max-width: 380px; 
    z-index: 1; 
}

.login-container h2 {
    text-align: center;
    margin-bottom: 5px;
    color: #FFFFFF; 
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px; 
    display: block; 
}
/*------------------------------Input Fields (Pressed Look)-------------------------*/
input {
    padding: 12px 15px;
    border-radius: 10px;
    border: none; /* إزالة الحدود التقليدية */
    background-color: #1A1A1A;
    color: #FFFFFF;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    /* تأثير "الحفر" أو الضغط (Inset Shadow) */
    box-shadow: inset 3px 3px 6px #111111, 
                inset -3px -3px 6px #222222;
}

/* Placeholder style */
input::placeholder {
    color: #5A5A5A;
}

input:focus {
    outline: none;
    /* توهج خفيف باللون الأحمر عند التركيز */
    box-shadow: inset 3px 3px 6px #111111, 
                inset -3px -3px 6px #222222,
                0 0 0 2px #FF4444; 
}

/*------------------------------Sign In Button (Raised Look)-------------------------*/
.sign-in-btn {
    padding: 12px;
    background: #9b0101; 
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    letter-spacing: 0.5px;
    /* ظل مرتفع جذاب */
    box-shadow: 5px 5px 10px #660000, 
                -5px -5px 10px #cc0000;
}

.sign-in-btn:hover {
    background: #CC0000; 
    box-shadow: 8px 8px 15px #660000, 
                -8px -8px 15px #ff6666; /* زيادة التوهج عند التحويم */
}

.sign-in-btn:active {
    background: #660000;
    /* تأثير ضغط داخلي قوي عند النقر */
    box-shadow: inset 4px 4px 8px #440000,
                inset -4px -4px 8px #880000;
    transform: translateY(1px);
}

/*------------------------------Error Message-------------------------*/
p {
    color: #FF6666; 
    text-align: center;
    font-weight: 600;
    margin-top: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 14px;
    display: none;
}

