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

body {
    font-family: 'Cairo', sans-serif;
    font-family: 'Cairo', sans-serif;
    background-color: #18191a;
    color: #e4e6eb;
    display: flex;
    flex-direction: column;
    /* Change to column to stack header and content */
    align-items: normal;
    /* Reset alignment */
    justify-content: flex-start;
    /* Start from top */
    direction: rtl;
}

.content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

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



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

.login-form {
    background: #242526;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

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

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

.login-header h2 {
    color: #e4e6eb;
    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: #b0b3b8;
}

.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: #b0b3b8;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #4b5563;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: #3a3b3c;
    color: #e4e6eb;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #4b4d50;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.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);
}