:root {
    --bg-color: #0b1d1e; /* dark magical forest */
    --primary: #2ecc71; /* magical green */
    --primary-dark: #27ae60;
    --secondary: #f1c40f; /* magical gold */
    --secondary-dark: #f39c12;
    --accent: #9b59b6; /* magical purple */
    --accent-dark: #8e44ad;
    --rose: #ff7675;
    --text: #ffffff; /* white text for dark background */
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(46, 204, 113, 0.4); /* glowing shadow */
    --border-dark: 2px solid rgba(46, 204, 113, 0.3);
}

body {
    margin: 0;
    font-family: 'Baloo Bhaijaan 2', cursive, sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* خلفية الغابة السحرية */
.magical-forest-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364); /* Deep magical forest */
}
.firefly {
    position: absolute;
    border-radius: 50%;
    background: #f1c40f;
    filter: blur(3px);
    box-shadow: 0 0 15px #f1c40f, 0 0 30px #f1c40f;
    opacity: 0.8;
    animation: fireflyFloat 10s infinite alternate ease-in-out;
    z-index: -1;
}
.fly-1 { width: 10px; height: 10px; top: 20%; left: 10%; animation-duration: 8s; background: #f1c40f; }
.fly-2 { width: 15px; height: 15px; bottom: 30%; right: 20%; animation-duration: 12s; background: #2ecc71; box-shadow: 0 0 15px #2ecc71; }
.fly-3 { width: 8px; height: 8px; top: 50%; left: 40%; animation-duration: 9s; }
.fly-4 { width: 12px; height: 12px; top: 80%; left: 70%; animation-duration: 11s; background: #3498db; box-shadow: 0 0 15px #3498db; }
.fly-5 { width: 14px; height: 14px; top: 10%; right: 10%; animation-duration: 15s; }
.fly-6 { width: 9px; height: 9px; top: 60%; right: 40%; animation-duration: 7s; }
.fly-7 { width: 11px; height: 11px; bottom: 10%; left: 20%; animation-duration: 10s; background: #e74c3c; box-shadow: 0 0 15px #e74c3c; }
.fly-8 { width: 16px; height: 16px; top: 40%; right: 15%; animation-duration: 14s; }
.fly-9 { width: 7px; height: 7px; top: 70%; left: 15%; animation-duration: 8s; background: #9b59b6; box-shadow: 0 0 15px #9b59b6; }
.fly-10 { width: 13px; height: 13px; top: 30%; left: 80%; animation-duration: 13s; }

@keyframes fireflyFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(60px, -80px) scale(1.5); opacity: 1; }
    100% { transform: translate(-40px, 60px) scale(0.8); opacity: 0.4; }
}

/* صندوق تسجيل الدخول */
.login-box {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 3rem 2rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    border: var(--border-dark);
    position: relative;
    z-index: 10;
}

.login-box h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.login-box p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.login-box input {
    width: 80%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1.5rem;
    font-family: inherit;
    text-align: center;
    color: #333;
    transition: 0.3s;
}

.login-box input:focus {
    border-color: var(--secondary);
    outline: none;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.3);
}

/* أزرار تفاعلية */
.action-btn { 
    background: var(--accent); 
    color: var(--white); 
    border: none; 
    padding: 15px 35px; 
    border-radius: 30px; 
    font-size: 1.5rem; 
    font-weight: bold; 
    cursor: pointer; 
    font-family: inherit; 
    transition: all 0.1s; 
    box-shadow: 0 6px 0px var(--accent-dark); 
    width: 80%;
}
.action-btn:active { 
    transform: translateY(6px); 
    box-shadow: 0 0px 0px var(--accent-dark); 
}

.error-message {
    color: var(--rose);
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    min-height: 28px;
}
