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

html, body {
    height: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* منع جميع الانيميشن والحركات */
*, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: #0f0f23 !important;
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    overflow: hidden !important;
}

/* لفية ثابتة بدون حركة */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* إزالة تأثي الضوء المتحرك */
.clp-light-highlight {
    display: none !important;
}

/* إزالة الجسيمات المتحركة */
.clp-particle {
    display: none !important;
}

.clp-container {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 450px !important;
    padding: 15px !important;
    margin: 0 auto !important;
}

.clp-login-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.clp-logo-section {
    text-align: center !important;
    padding: 35px 35px 15px !important;
    position: relative !important;
}

.clp-logo-container {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 20px !important;
    position: relative !important;
    border-radius: 50% !important;
    background: transparent !important;
    padding: 3px !important;
}

.clp-logo-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    background: white !important;
}

.clp-welcome-text {
    color: white !important;
    text-align: center !important;
}

.clp-welcome-text h1 {
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
    background: linear-gradient(135deg, #fff, #a0a0a0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.clp-welcome-text p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.clp-form-section {
    padding: 20px 35px 35px !important;
}

.clp-form-title {
    color: white !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 28px !important;
    text-align: center !important;
}

.clp-input-group {
    position: relative !important;
    margin-bottom: 20px !important;
}

.clp-input-group label {
    display: block !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    margin-left: 4px !important;
}

.clp-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.clp-input-group input {
    width: 100% !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 0 60px 0 20px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    box-sizing: border-box !important;
}

.clp-input-group input:focus {
    outline: none !important;
    border-color: rgba(102, 126, 234, 0.7) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.clp-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* حل شكلة الخلفية البضاء عند الحفظ التلقائي */
.clp-input-group input:-webkit-autofill,
.clp-input-group input:-webkit-autofill:hover,
.clp-input-group input:-webkit-autofill:focus,
.clp-input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
    -webkit-text-fill-color: white !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.clp-input-icon {
    position: absolute !important;
    right: 20px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 20px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.clp-input-group input:focus + .clp-input-icon {
    color: #667eea !important;
}

.clp-input-group input:-webkit-autofill + .clp-input-icon {
    color: rgba(255, 255, 255, 0.4) !important;
    display: block !important;
    visibility: visible !important;
}

.clp-input-group input.clp-input-focused {
    border-color: rgba(102, 126, 234, 0.8) !important;
}

.clp-input-group input.clp-input-focused + .clp-input-icon {
    color: #667eea !important;
}

.clp-eye-icon {
    cursor: pointer !important;
    user-select: none !important;
}

.clp-eye-icon:hover {
    color: #667eea !important;
}

.clp-form-options {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 28px !important;
}

.clp-remember-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
}

.clp-custom-checkbox {
    position: relative !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.clp-custom-checkbox input {
    opacity: 0 !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
    margin: 0 !important;
    z-index: 10 !important;
}

.clp-checkmark {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 20px !important;
    height: 20px !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    pointer-events: none !important;
}

.clp-custom-checkbox input:checked + .clp-checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-color: #667eea !important;
}

.clp-checkmark::after {
    content: '' !important;
    position: absolute !important;
    display: none !important;
    left: 6px !important;
    top: 2px !important;
    width: 6px !important;
    height: 10px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

.clp-custom-checkbox input:checked + .clp-checkmark::after {
    display: block !important;
}

.clp-remember-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    user-select: none !important;
    margin: 0 !important;
}

.clp-forgot-link {
    color: #667eea !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    position: relative !important;
}

.clp-forgot-link:hover {
    text-decoration: underline !important;
}

.clp-login-button {
    width: 100% !important;
    height: 60px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

.clp-login-button:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190) !important;
}

.clp-login-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.clp-loading-spinner {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: white !important;
    display: none !important;
}

.clp-message {
    padding: 12px !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    font-size: 14px !important;
    text-align: center !important;
}

.clp-success {
    background: rgba(40, 167, 69, 0.2) !important;
    color: #28a745 !important;
    border: 1px solid rgba(40, 167, 69, 0.3) !important;
}

.clp-error {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.clp-back-link {
    text-align: center !important;
    margin-top: 15px !important;
}

.clp-back-link a {
    color: #667eea !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    position: relative !important;
}

.clp-back-link a:hover {
    color: #667eea !important;
    text-decoration: underline !important;
}

/* Desktop/Tablet - Wide Layout */
@media (min-width: 768px) {
    .clp-container {
        max-width: 1080px !important;
        padding: 20px !important;
    }
    
    .clp-login-card {
        display: flex !important;
        flex-direction: row !important;
        min-height: 500px !important;
    }
    
    .clp-logo-section {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px !important;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)) !important;
    }
    
    .clp-form-section {
        flex: 1 !important;
        padding: 40px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .clp-logo-container {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 30px !important;
    }
    
    .clp-welcome-text h1 {
        font-size: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .clp-welcome-text p {
        font-size: 18px !important;
    }
    
    .clp-form-title {
        font-size: 28px !important;
        margin-bottom: 35px !important;
    }
    
    .clp-input-group {
        margin-bottom: 25px !important;
    }
    
    .clp-form-options {
        margin-bottom: 35px !important;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .clp-container {
        max-width: 1200px !important;
    }
    
    .clp-logo-section {
        padding: 50px !important;
    }
    
    .clp-form-section {
        padding: 50px !important;
    }
}

/* Mobile - Compact Layout */
@media (max-width: 767px) {
    html, body {
        height: 100vh !important;
        overflow: hidden !important;
    }
    
    .clp-container {
        padding: 10px !important;
        margin: 0 !important;
        height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: none !important;
        width: 100% !important;
        transform: translateY(-3vh) !important;
    }
    
    .clp-login-card {
        margin: 0 !important;
        width: 100% !important;
        max-width: 380px !important;
    }
    
    .clp-logo-section {
        padding: 40px 40px 40px !important;
    }
    
    .clp-form-section {
        padding: 15px 25px 25px !important;
    }
    
    .clp-logo-container {
        width: 104px !important;
        height: 104px !important;
        margin-bottom: 17px !important;
    }
    
    .clp-welcome-text h1 {
        font-size: 26px !important;
        margin-bottom: 6px !important;
    }
    
    .clp-welcome-text p {
        font-size: 14px !important;
    }
    
    .clp-form-title {
        font-size: 27px !important;
        margin-top: -25px !important;
    }
    
    .clp-input-group {
        margin-bottom: 30px !important;
    }
    
    .clp-input-group label {
        margin-bottom: 13px !important;
        font-size: 13px !important;
    }
    
    .clp-input-group input {
        height: 55px !important;
        font-size: 16px !important;
    }
    
    .clp-form-options {
        margin-bottom: 20px !important;
    }
    
    .clp-remember-label,
    .clp-forgot-link {
        font-size: 13px !important;
    }
    
    .clp-login-button {
        height: 55px !important;
        margin-bottom: 18px !important;
        font-size: 15px !important;
    }
    
    .clp-back-link {
        margin-top: 10px !important;
    }
    
    .clp-back-link a {
        font-size: 13px !important;
    }
    
    .clp-message {
        padding: 10px !important;
        margin-bottom: 12px !important;
        font-size: 13px !important;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .clp-logo-section {
        padding: 20px 20px 10px !important;
    }
    
    .clp-form-section {
        padding: 10px 20px 20px !important;
    }
    
    .clp-logo-container {
        width: 91px !important;
        height: 91px !important;
    }
    
    .clp-welcome-text h1 {
        font-size: 24px !important;
    }
}

/* Popup Notification System - محسن للسرعة والأداء */
.clp-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    /* تسريع الأداء بـ GPU */
    will-change: opacity, visibility !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    /* انتقال سريع وسلس */
    transition: opacity 0.1s ease-out, visibility 0.1s ease-out !important;
}

.clp-popup-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.clp-popup-overlay.clp-popup-hiding {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.05s ease-in, visibility 0.05s ease-in !important;
}

.clp-popup {
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    max-width: 400px !important;
    width: 90% !important;
    text-align: center !important;
    position: relative !important;
    /* تحسين الأداء */
    will-change: transform !important;
    transform: translateZ(0) scale(1) !important;
    backface-visibility: hidden !important;
    /* إزالة أي انتقالات غير ضرورية */
    transition: none !important;
    animation: none !important;
}

.clp-popup-smooth {
    /* تأثير ظهور سريع ومميز */
    animation: clp-popup-appear 0.15s ease-out forwards !important;
}

@keyframes clp-popup-appear {
    from {
        transform: translateZ(0) scale(0.9) translateY(-10px) !important;
        opacity: 0 !important;
    }
    to {
        transform: translateZ(0) scale(1) translateY(0) !important;
        opacity: 1 !important;
    }
}

.clp-popup-icon {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: white !important;
    /* تحسين الأداء */
    will-change: transform !important;
    transform: translateZ(0) !important;
}

.clp-popup-icon.error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
}

.clp-popup-icon.success {
    background: linear-gradient(135deg, #51cf66, #40c057) !important;
}

.clp-popup-icon.warning {
    background: linear-gradient(135deg, #ffd43b, #fab005) !important;
}

.clp-popup-title {
    color: white !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.clp-popup-message {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: 25px !important;
}

.clp-popup-close {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.clp-popup-close:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190) !important;
}

.clp-popup-progress {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
    border-radius: 0 0 20px 20px !important;
    width: 0% !important;
    /* تحسين الأداء */
    will-change: width !important;
    transform: translateZ(0) !important;
}

@keyframes clp-progress-bar {
    from {
        width: 0% !important;
    }
    to {
        width: 100% !important;
    }
}

/* Responsive Design للـ Popup */
@media (max-width: 768px) {
    .clp-popup {
        padding: 25px 20px !important;
        max-width: 350px !important;
        margin: 0 15px !important;
    }
    
    .clp-popup-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .clp-popup-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .clp-popup-message {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .clp-popup-close {
        padding: 10px 25px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .clp-popup {
        padding: 20px 15px !important;
        max-width: 320px !important;
    }
    
    .clp-popup-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
    
    .clp-popup-title {
        font-size: 16px !important;
    }
    
    .clp-popup-message {
        font-size: 13px !important;
    }
}

/* تحسينات خاصة بصفحات إعادة تيين كلمة المرور */
.clp-back-link {
    text-align: center !important;
    margin-top: 20px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.clp-back-link a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.clp-back-link a:hover {
    color: #667eea !important;
}

/* تحسينات للششات الصغيرة */
@media (max-width: 768px) {
    .clp-back-link {
        margin-top: 15px !important;
        padding-top: 12px !important;
    }
    
    .clp-back-link a {
        font-size: 13px !important;
    }
}

/* تحسينات خاصة لحقول كلمة المرور */
.clp-input-group input[type="password"]:focus {
    border-color: rgba(255, 193, 7, 0.5) !important;
}

/* مؤشر قوة لمة المرور */
.clp-password-strength {
    height: 3px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 2px !important;
    margin-top: 8px !important;
    overflow: hidden !important;
}

.clp-password-strength-bar {
    height: 100% !important;
    width: 0% !important;
    border-radius: 2px !important;
}

.clp-password-strength-weak {
    background: #ff6b6b !important;
    width: 25% !important;
}

.clp-password-strength-medium {
    background: #ffd93d !important;
    width: 60% !important;
}

.clp-password-strength-strong {
    background: #6bcf7f !important;
    width: 100% !important;
}


/* إصلاح مشكلة Chrome Autofill */
.clp-input-group input:-webkit-autofill,
.clp-input-group input:-webkit-autofill:hover,
.clp-input-group input:-webkit-autofill:focus,
.clp-input-group input:-webkit-autofill:active {
    /* إبقاء الخلفية الأصلية */
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
    /* إبقاء لون النص أبيض */
    -webkit-text-fill-color: white !important;
    /* منع تغيير الخلفية */
    background-color: rgba(255, 255, 255, 0.05) !important;
    /* تأخير ظهور الخلفية البيضاء */
    transition: background-color 5000s ease-in-out 0s !important;
    /* الحفاظ على الحدود */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* إصلاح مشكلة اختفاء placeholder */
.clp-input-group input:-webkit-autofill + label,
.clp-input-group input:-webkit-autofill::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

/* إصلاح مشكلة اختفاء الأيقونات */
.clp-input-group input:-webkit-autofill + .clp-input-icon {
    color: rgba(255, 255, 255, 0.6) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
