/* ======== تصميم جسم صفحة الدخول ======== */
.login-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* لإخفاء أي عناصر تخرج عن الشاشة */
}

/* ======== خلفية الجزيئات المتحركة ======== */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-color);
    background-image: 
        radial-gradient(circle at 25% 30%, rgba(138, 43, 226, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 75% 70%, rgba(30, 144, 255, 0.3) 0%, transparent 40%);
    animation: move-glow 15s ease-in-out infinite alternate;
}

@keyframes move-glow {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 100%;
    }
}

/* ======== صندوق تسجيل الدخول ======== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-box {
    width: 400px;
    padding: 40px;
    background: rgba(28, 28, 46, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    animation: fade-in 1s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo .logo {
    font-size: 36px;
}

/* ======== حقول الإدخال ======== */
.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--secondary-color);
    outline: none;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 16px;
    color: var(--text-color-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* حركة الليبل عند الكتابة أو التركيز */
.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -15px;
    font-size: 12px;
    color: var(--primary-color);
}

.input-group input:focus {
    border-bottom-color: var(--primary-color);
}

.input-group i {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--text-color-muted);
}

/* ======== خيارات إضافية ======== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-color-muted);
}

.remember-me input {
    margin-left: 5px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}
.forgot-password:hover {
    text-decoration: underline;
}

/* ======== زر الدخول ورابط إنشاء حساب ======== */
.login-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.login-form .btn:hover {
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.8);
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-color-muted);
}
.signup-link a {
    color: var(--primary-color);
    font-weight: 700;
}