* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-image: url('/assets/img/Back.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(93, 95, 207, 0.616);
    z-index: -1;
}

.login-container {
    width: 800px;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 125px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.welcome-section {
    width: 40%;
    background: linear-gradient(135deg, #2980b9, #2c3e50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    text-align: center;
}

.logo {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    padding: 5px;
}

.logo-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.welcome-text {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 10px;
}

.company-name {
    font-size: 42px;
    font-weight: bold;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-section {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-title {
    font-size: 24px;
    color: #2980b9;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2980b9;
    font-size: 16px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #d8d9d9;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background: #f9f9f9;
}

.form-input:focus {
    border-color: #5e94ff;
    background: #fff;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #2980b9;
}

.login-btn {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 12px 0;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid #f5f5f5;
    margin-top: 10px;
    font-weight: bold;
}

.login-btn:hover {
    background-color: #1a5276;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #1a5276;
    text-decoration: underline;
}

.close-btn {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn:hover {
    background-color: #e74c3c;
    transform: scale(1.1);
}

/* نموذج إنشاء حساب جديد */
.register-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.register-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 450px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-register {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-register:hover {
    color: #e74c3c;
}

.register-content h2 {
    text-align: center;
    color: #2980b9;
    margin-bottom: 20px;
}

.register-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 0;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
}

.register-btn:hover {
    background-color: #219653;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* تأثيرات الحركة */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-section > * {
    animation: fadeIn 0.5s ease-out forwards;
}

.login-section .login-title { animation-delay: 0.1s; }
.login-section .form-group:first-child { animation-delay: 0.2s; }
.login-section .form-group:nth-child(2) { animation-delay: 0.3s; }
.login-section .login-btn { animation-delay: 0.4s; }
.login-section .register-link { animation-delay: 0.5s; }

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 850px) {
    .login-container {
        width: 90%;
        height: auto;
        flex-direction: column;
        border-radius: 30px;
    }
    
    .welcome-section, .login-section {
        width: 100%;
    }
    
    .welcome-section {
        padding: 30px 20px;
    }
    
    .login-section {
        padding: 30px;
    }
    
    .register-content {
        width: 90%;
    }
}

/* شريط التبويب للتبديل بين الصفحات */
.tab-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background: rgba(255, 255, 255, 0.9);
    color: #2980b9;
    font-weight: bold;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* تنسيقات لوحة إدارة المستخدمين */
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.user-item:nth-child(even) {
    background: #f9f9f9;
}

.user-item:nth-child(odd) {
    background: #fff;
}