:root {
    --system-cyan: #00f2ff;
    --system-blue: #0066ff;
    --system-dark: #02050a;
    --system-border: rgba(0, 242, 255, 0.3);
}

body.auth-page {
    background: #000;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 80%),
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px; /* خلفية شبكية مثل الأنظمة الرقمية */
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oxanium', 'Orbitron', sans-serif; /* خطوط رقمية */
    overflow: hidden;
}

.login-box {
    position: relative;
    width: 450px;
    padding: 60px 40px;
    background: rgba(2, 5, 10, 0.8);
    backdrop-filter: blur(15px); /* تأثير الزجاج الضبابي */
    border: 1px solid var(--system-border);
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%); /* شكل هندسي غير منتظم */
    box-shadow: 0 0 50px rgba(0, 102, 255, 0.2);
}

/* الأقواس المضيئة المتطورة */
.system-bracket {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--system-cyan);
    filter: drop-shadow(0 0 10px var(--system-cyan));
}
.system-bracket.top { top: 0; right: 0; border-left: none; border-bottom: none; }
.system-bracket.bottom { bottom: 0; left: 0; border-right: none; border-top: none; }

.glitch-text {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 15px var(--system-cyan));
}

.system-status {
    text-align: center;
    color: var(--system-cyan);
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 2px;
    animation: blink 1.5s infinite;
}

@keyframes blink { 50% { opacity: 0.3; } }

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    color: var(--system-cyan);
    font-size: 0.75rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    background: rgba(0, 242, 255, 0.05);
    border: none;
    border-bottom: 2px solid var(--system-border);
    padding: 12px 10px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-bottom-color: var(--system-cyan);
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.1);
}

/* زر التحميل "المزامنة" */
.submit-btn {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 1px solid var(--system-cyan);
    color: var(--system-cyan);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: 0.4s;
    overflow: hidden;
    clip-path: polygon(5% 0, 100% 0, 100% 70%, 95% 100%, 0 100%, 0 30%);
}

.submit-btn:hover {
    background: var(--system-cyan);
    color: #000;
    box-shadow: 0 0 30px var(--system-cyan);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.auth-footer a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: 0.3s;
}

.auth-footer a:hover { opacity: 1; color: var(--system-cyan); }

/* --- Professional Global Commenting Protocol: Full-Screen Mobile Access سيدي --- */

@media (max-width: 768px) {
    /* 1. إزالة أي قيود من جسم الصفحة سيدي */
    body.auth-page {
        align-items: flex-start; /* لبدء المحتوى من الأعلى سيدي */
        overflow-y: auto; /* السماح بالتمرير إذا كان الهاتف صغيراً سيدي */
        padding: 0;
    }

    /* 2. جعل صندوق الدخول يملأ الشاشة تماماً سيدي الحاكم */
    .login-box {
        width: 100vw !important; /* ملء عرض الشاشة بالكامل سيدي */
        min-height: 100vh; /* ملء طول الشاشة بالكامل سيدي */
        margin: 0 !important;
        padding: 60px 25px; /* موازنة المسافات الداخلية سيدي */
        
        /* كسر الشكل الهندسي سيدي لجعله يملأ الحواف */
        clip-path: none !important; 
        border: none !important;
        border-radius: 0 !important;
        
        /* جعل الخلفية داكنة أكثر لضمان الوضوح سيدي */
        background: rgba(2, 5, 10, 0.95); 
        display: flex;
        flex-direction: column;
        justify-content: center; /* توسيط المحتوى عمودياً سيدي */
    }

    /* 3. تعديل الأقواس لتكون في الزوايا الحقيقية للشاشة سيدي */
    .system-bracket {
        width: 30px;
        height: 30px;
        position: fixed; /* لتظل في زوايا الشاشة سيدي */
    }

    /* 4. تكبير عناصر الإدخال لسهولة التحكم سيدي */
    .input-group {
        margin-bottom: 35px;
    }

    .input-group input {
        font-size: 1.1rem; /* تكبير الخط لمنع تقريب المتصفح (Auto-zoom) سيدي */
        padding: 15px 5px;
    }

    /* 5. جعل الزر ضخماً وسهل اللمس سيدي */
    .submit-btn {
        height: 60px;
        font-size: 1.2rem;
        clip-path: none !important; /* زر مستطيل كامل لسهولة الضغط سيدي */
        border-radius: 8px;
        margin-top: 20px;
    }

    /* 6. تنسيق الروابط السفلية سيدي الحاكم */
    .auth-footer {
        padding-bottom: 40px;
    }

    .auth-footer a {
        display: inline-block;
        padding: 10px;
        font-size: 0.9rem;
        opacity: 0.9;
    }
}
/* Google Button Styles */
.google-auth-container { margin-top: 20px; text-align: center; }
.auth-divider-text { color: #888; font-size: 0.8rem; margin-bottom: 15px; position: relative; }
.auth-divider-text::before, .auth-divider-text::after { content: ''; position: absolute; top: 50%; width: 25%; height: 1px; background: rgba(255,255,255,0.1); }
.auth-divider-text::before { left: 0; }
.auth-divider-text::after { right: 0; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 12px; text-decoration: none; color: #fff; transition: 0.3s ease; clip-path: polygon(5% 0, 100% 0, 100% 70%, 95% 100%, 0 100%, 0 30%); margin-bottom: 15px;}
.google-btn:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.google-icon { width: 20px; height: 20px; }

