/* ============================================
   Link Call - صفحة تسجيل الدخول الجديدة
   تصميم احترافي بخلفية كول سنتر
   ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #0a1628;
}

/* ========== سلايدر خلفية الكول سنتر ========== */
.slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    animation: zoomEffect 8s ease-in-out forwards;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 22, 40, 0.92) 0%, 
        rgba(30, 58, 95, 0.85) 50%, 
        rgba(10, 22, 40, 0.92) 100%);
    z-index: 1;
}

/* ========== الحاوية الرئيسية ========== */
.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    margin: 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== قسم المعلومات ========== */
.info-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, 
        rgba(94, 196, 212, 0.15) 0%, 
        rgba(30, 58, 95, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(94, 196, 212, 0.1) 0%, transparent 60%);
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(94, 196, 212, 0.4);
    border: 3px solid rgba(94, 196, 212, 0.5);
}

.brand-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #5ec4d4, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.features-list {
    text-align: right;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(94, 196, 212, 0.2);
    transform: translateX(-5px);
    border-color: rgba(94, 196, 212, 0.3);
}

.feature-icon {
    font-size: 1.5em;
}

.feature-text {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== قسم تسجيل الدخول ========== */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    font-size: 2em;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
}

/* ========== حقول الإدخال ========== */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    margin-bottom: 10px;
    font-weight: 500;
}

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

.input-icon {
    position: absolute;
    right: 16px;
    font-size: 1.2em;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    font-size: 1em;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-wrapper input:focus {
    border-color: #5ec4d4;
    background: rgba(94, 196, 212, 0.1);
    box-shadow: 0 0 20px rgba(94, 196, 212, 0.2);
}

.toggle-password {
    position: absolute;
    left: 16px;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.toggle-password:hover {
    transform: scale(1.1);
}

/* ========== رسالة الخطأ ========== */
.error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.1));
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff6b6b;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9em;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.error-message.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== زر تسجيل الدخول ========== */
.login-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #5ec4d4, #3a9ca8);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(94, 196, 212, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

/* ========== تذييل الصفحة ========== */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

/* ========== تأثير الاهتزاز ========== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease;
}

/* ========== التصميم المتجاوب ========== */

/* الشاشات المتوسطة */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }
    
    .info-section {
        padding: 30px 25px;
    }
    
    .brand-logo {
        width: 80px;
        height: 80px;
    }
    
    .brand-title {
        font-size: 2em;
    }
    
    .features-list {
        display: none;
    }
    
    .login-section {
        padding: 30px 25px 40px;
    }
}

/* الموبايل */
@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding-top: 0;
    }
    
    .login-wrapper {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        max-width: 100%;
    }
    
    .info-section {
        padding: 30px 20px;
    }
    
    .brand-logo {
        width: 70px;
        height: 70px;
    }
    
    .brand-title {
        font-size: 1.8em;
    }
    
    .brand-subtitle {
        font-size: 0.95em;
        margin-bottom: 15px;
    }
    
    .login-section {
        padding: 25px 20px 40px;
    }
    
    .login-header {
        margin-bottom: 25px;
    }
    
    .login-header h2 {
        font-size: 1.6em;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .input-wrapper input {
        padding: 14px 45px;
        font-size: 0.95em;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 1em;
    }
}

/* شاشات صغيرة جداً */
@media (max-width: 360px) {
    .brand-title {
        font-size: 1.5em;
    }
    
    .login-header h2 {
        font-size: 1.4em;
    }
}

/* ========== تحسينات إضافية ========== */
.hidden {
    display: none !important;
}

/* تحسين التحديد */
::selection {
    background: rgba(94, 196, 212, 0.4);
    color: white;
}

/* تحسين شريط التمرير */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(94, 196, 212, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 196, 212, 0.7);
}
