* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.background {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

/* --- التعديل هنا --- */
.login-header lottie-player {
    margin: -25px auto -20px auto !important; /* تقليل المسافة العلوية والسفلية */
}

.login-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0; /* إزالة الهوامش الافتراضية */
}

.login-header .signup-link {
    margin-top: 8px; /* إضافة مسافة بين العنوان والرابط */
}

.login-header .signup-link p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400; /* خط خفيف */
    color: #666;
}

.login-header .signup-link a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-header .signup-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.signup-link {
    text-align: center;
    margin-top: 0;
}

/* تأثيرات إضافية للشكل الاحترافي */
.login-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.1;
}

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .input-hint {
        font-size: 0.75rem;
    }
}

/* تحسينات إضافية للمظهر */
.input-group input::placeholder {
    color: #aaa;
    font-style: italic;
    opacity: 0.7;
}

.login-form {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* أنماط النصائح */
.input-hint {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
    font-style: italic;
}

/* تحسين الألوان للحقول الصحيحة والخاطئة */
.input-group input.valid {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.input-group input.invalid {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.1);
}
