﻿/* ==========================================================================
   CIRCLE K - TICKET SYSTEM PREMIUM LOGIN STYLE (Compatible with your HTML)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

/* إعدادات الحاوية الكبرى */
.ck-hero {
    background: radial-gradient(circle at center, #1e1e2f 0%, #0f0f16 100%);
    color: #f8fafc;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    direction: ltr; /* لضمان ضبط العناصر في الشاشة الثنائية */
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* الخلفية المتحركة/الجمالية */
.ck-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: #f1173a; /* أحمر سيركل كي الرسمي */
    filter: blur(150px);
    opacity: 0.15;
    top: 25%;
    left: 25%;
    z-index: 0;
}

/* لوحة المعلومات الجانبية (Left Panel) */
.ck-info {
    flex: 1;
    max-width: 450px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 1;
    text-align: left;
}

@media (max-width: 991px) {
    .ck-info {
        display: none;
    }
    /* تختفي في الشاشات الصغيرة للتركيز على كارت الدخول */
}

.ck-badge {
    background: rgba(241, 23, 58, 0.15);
    color: #f1173a;
    border: 1px solid rgba(241, 23, 58, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(241, 23, 58, 0.2);
}

/* الملصقات الـ Stickers */
.sticker {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.st1 {
    border-right: 4px solid #f1173a;
}

.st2 {
    border-right: 4px solid #ff9f1c;
}

.st3 {
    border-right: 4px solid #22c55e;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 20px;
    margin-bottom: 30px;
}

    .status .dot {
        width: 8px;
        height: 8px;
        background-color: #22c55e;
        border-radius: 50%;
        box-shadow: 0 0 12px #22c55e;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.ck-icons {
    display: flex;
    gap: 15px;
}

.ck-icon-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    min-width: 90px;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .ck-icon-card span {
        font-size: 12px;
        color: #64748b;
        font-weight: 500;
    }

/* حاوية الجزء الأيمن لتسجيل الدخول */
.ck-login {
    flex: 1;
    max-width: 450px;
    padding: 20px;
    z-index: 1;
}

/* الكارت الزجاجي الفاخر (Glass Card) */
.glass-card {
    background: rgba(30, 30, 45, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 45px 35px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

    .glass-card:hover {
        transform: translateY(-5px);
        border-color: rgba(241, 23, 58, 0.25);
        box-shadow: 0 30px 60px rgba(241, 23, 58, 0.1), 0 20px 40px rgba(0, 0, 0, 0.5);
    }

.ck-login-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 35px;
    letter-spacing: 0.5px;
}

/* مربعات الإدخال (Input Boxes) */
.input-box {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

    .input-box i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 18px;
        transition: color 0.3s;
    }

    .input-box input {
        width: 100%;
        background: #12121a;
        border: 1px solid #27273a;
        color: #ffffff;
        border-radius: 12px;
        padding: 14px 15px 14px 45px; /* مسافة للأيقونة على اليسار */
        font-size: 14px;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

        .input-box input:focus {
            border-color: #f1173a;
            outline: none;
            background: #161622;
            box-shadow: 0 0 0 4px rgba(241, 23, 58, 0.15);
        }

            .input-box input:focus + i {
                color: #f1173a;
            }

    /* أيقونة العين لكلمة المرور */
    .input-box.password span {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #64748b;
        font-size: 16px;
        user-select: none;
    }

        .input-box.password span:hover {
            color: #f1173a;
        }

/* الخيارات (Remember & Forgot) */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 13px;
}

    .options label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #94a3b8;
        cursor: pointer;
    }

    .options input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #f1173a;
        cursor: pointer;
    }

    .options a {
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s;
    }

        .options a:hover {
            text-decoration: underline !important;
        }

/* زر الدخول الأساسي (Login Button) */
.login-btn {
    background: linear-gradient(135deg, #f1173a 0%, #ff4d00 100%);
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(241, 23, 58, 0.25);
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(241, 23, 58, 0.45);
        filter: brightness(1.1);
    }

.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #4e4e6a;
}

/* ==========================================================================
   STYLING THE FORGOT PASSWORD MODAL (تنسيق المودال)
   ========================================================================== */
.forgot-box {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 20px !important;
    color: #f8fafc !important;
    font-family: 'Cairo', sans-serif;
}

    .forgot-box .modal-header {
        border-bottom: 1px solid #334155;
        direction: rtl;
    }

    .forgot-box .modal-title {
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
    }

    .forgot-box .btn-close {
        filter: invert(1); /* لجعل زر الإغلاق أبيض متناسق */
        margin: 0;
    }

    .forgot-box .form-control {
        background: #0f172a;
        border: 1px solid #334155;
        color: #ffffff;
        border-radius: 10px;
        padding: 12px;
    }

        .forgot-box .form-control:focus {
            border-color: #f1173a;
            box-shadow: 0 0 0 3px rgba(241, 23, 58, 0.2);
            outline: none;
        }

    .forgot-box .modal-footer {
        border-top: 1px solid #334155;
    }

    .forgot-box .btn-danger {
        background: #f1173a;
        border: none;
        font-weight: 600;
        padding: 8px 20px;
        border-radius: 8px;
    }

        .forgot-box .btn-danger:hover {
            background: #d61130;
        }

    .forgot-box .btn-secondary {
        background: #475569;
        border: none;
        border-radius: 8px;
    }
