/* تحسينات شعار صفحة تسجيل الدخول - نظام ERP */

.login-logo {
    max-width: 100%;
    height: auto;
    width: 400px;
    max-height: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    border-radius: 10px;
    background: transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.login-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.login-logo.loaded {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out;
}

.login-logo.clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.desImage {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}


/* تحسينات للأجهزة المحمولة */
@media screen and (max-width: 768px) {
    .login-logo {
        width: 300px;
        max-height: 150px;
    }
    
    .desImage {
        min-height: 180px;
    }
}

@media screen and (max-width: 480px) {
    .login-logo {
        width: 250px;
        max-height: 120px;
    }
    
    .desImage {
        min-height: 150px;
    }
}

/* تحسينات للشاشات الكبيرة */
@media screen and (min-width: 1200px) {
    .login-logo {
        width: 450px;
        max-height: 220px;
    }
    
    .desImage {
        min-height: 250px;
    }
}

/* تحسينات للطباعة */
@media print {
    .login-logo {
        filter: none;
        box-shadow: none;
        background: none;
        width: 200px;
        max-height: 100px;
    }
    
    .desImage::before {
        display: none;
    }
}

/* تحسينات إضافية للأداء */
.login-logo {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* تأثيرات إضافية */
.login-logo:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 4px;
}

/* تحسينات للقارئات الصوتية */
.login-logo[alt] {
    /* التأكد من أن النص البديل واضح */
}

/* تحسينات للوضع المظلم */
@media (prefers-color-scheme: dark) {
    .login-logo {
        filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.1));
        background: rgba(0, 0, 0, 0.2);
    }
    
    .login-logo:hover {
        filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.2));
    }
}
