/**
 * تصميم حديث ومتجاوب لصفحة تسجيل الدخول
 * تاريخ الإنشاء: 2025-10-23
 * مطور: نظام محسن للهواتف والكمبيوتر
 */

/* إعدادات الخط والنصوص */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body, .form-control, .btn, .form-label, h4, p {
    font-family: 'Noto Sans Arabic', 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* الخلفية الداكنة متماشية مع النظام */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(59,130,246,.15), transparent 40%),
                radial-gradient(1000px 500px at 90% 20%, rgba(236,72,153,.15), transparent 45%),
                radial-gradient(900px 600px at 50% 100%, rgba(16,185,129,.18), transparent 50%),
                linear-gradient(135deg, #0f172a 0%, #111827 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    font-size: 16px;
}

/* تأثيرات الخلفية الثابتة */

/* الحاوية الرئيسية للتسجيل */
.modern-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
}

.login-content {
    width: 100%;
}

/* إزالة العناصر المتحركة الإضافية لتجنب التداخل مع خلفية النظام */
.bg-elements {
    display: none;
}

/* البطاقة الزجاجية متماشية مع النظام */
.login-panel {
    position: relative;
    z-index: 2;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* تأثير hover مبسط */

/* العلامة التجارية */
.app-brand {
    text-align: center;
    margin-bottom: 32px;
}

.app-brand-link {
    text-decoration: none;
    display: inline-block;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 5vw, 32px);
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

/* النصوص والعناوين متماشية مع النظام */
.glass-card h4, .glass-card p, .glass-card label {
    color: rgba(255, 255, 255, 0.9);
}

.glass-card h4 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.glass-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 32px;
}

.form-label {
    text-align: right;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    font-size: 14px;
}

/* حقول الإدخال متماشية مع النظام */
.glass-card .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.glass-card .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    color: #ffffff;
}

.glass-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.glass-card .input-group-text {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group-text:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

/* زر تسجيل الدخول البسيط */
.glass-card .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    height: 52px;
    width: 100%;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    margin: 24px 0;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* تأثير hover بسيط للزر */
.glass-card .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.glass-card .btn-primary:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

/* حذف رسائل الزر المرحة */

/* تأثير focus بسيط */
.glass-card .btn-primary:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* حالة التحميل بسيطة */
.glass-card .btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* تحسين النص داخل الزر */
.glass-card .btn-primary .btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* أيقونة تسجيل الدخول بسيطة */
.glass-card .btn-primary .login-icon {
    font-size: 20px;
    margin-left: 8px;
}

/* حذف جميع التأثيرات المتحركة */

/* حذف تأثيرات الأيقونة المتحركة */

/* تحسين للأجهزة المحمولة */
@media (max-width: 768px) {
    .glass-card .btn-primary {
        height: 48px;
        font-size: 16px;
        padding: 12px 24px;
        margin: 20px 0;
    }
    
    .glass-card .btn-primary .login-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .glass-card .btn-primary {
        height: 44px;
        font-size: 15px;
        padding: 10px 20px;
        margin: 18px 0;
    }
    
    .glass-card .btn-primary .login-icon {
        font-size: 16px;
    }
}

/* التنبيهات متماشية مع النظام */
.alert {
    border-radius: 12px;
    border: none;
    backdrop-filter: blur(10px);
    font-weight: 500;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert .bx {
    color: inherit;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* خانة الاختيار متماشية مع النظام */
.form-check {
    margin: 20px 0;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    width: 18px;
    height: 18px;
}

.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.form-check-label {
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* الروابط متماشية مع النظام */
a {
    color: rgba(59, 130, 246, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #3b82f6;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

a:focus {
    outline: 2px solid rgba(59, 130, 246, 0.3);
    outline-offset: 2px;
    border-radius: 4px;
}

/* الأيقونات متماشية مع النظام */
.bx {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.input-group-text .bx:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .modern-login-wrapper {
        padding: 15px;
    }

    .glass-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .glass-card h4 {
        font-size: 24px;
    }

    .glass-card .form-control,
    .glass-card .btn-primary {
        height: 48px;
        font-size: 15px;
    }

    .brand-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .modern-login-wrapper {
        padding: 10px;
    }

    .glass-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .glass-card h4 {
        font-size: 22px;
    }

    .glass-card .form-control,
    .glass-card .btn-primary {
        height: 44px;
        font-size: 14px;
    }
}

/* تحسينات الأداء */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/**
 * ===== نهاية الملف المحسن =====
 */
