﻿:root {
    --navy:        #182b60;
    --navy-mid:    #375a9e;
    --navy-light:  #516ca4;
    --accent:      #d3db46;
    --accent-glow: #c8d200;
    --white:       #ffffff;
    --gray-bg:     #f4f6fb;
    --text-dark:   #0e1e45;
    --text-muted:  #6b7a99;
}

/* خلفية احترافية: شبكة + إضاءة خضراء (تحت يسار) + عمق كحلي غامق (فوق يمين) */
.login-bg {
    background-image: 
        /* 1. خطوط الشبكة الأفقية */
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        /* 2. خطوط الشبكة العمودية */
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        
        /* 3. الإضاءة الخضراء من الزاوية السفلية اليسرى */
        radial-gradient(circle at 15% 90%, rgba(200, 210, 0, 0.25) 0%, transparent 60%),
        
        /* 4. تدرج كحلي غامق جداً من الزاوية العلوية اليمنى */
        radial-gradient(circle at 90% 10%, #0c1c42 0%, transparent 70%),
        
        /* 5. الخلفية الكحلية الأساسية في الوسط */
        radial-gradient(circle at 50% 50%, var(--navy-mid) 0%, var(--navy) 80%, var(--text-dark) 100%) !important;
    
    /* ضبط مقاسات الطبقات الـ 5 (أول 2 للشبكة، والباقي لتدرجات الألوان) */
    background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%, 100% 100% !important;
    
    background-color: var(--text-dark) !important;
    background-attachment: fixed !important; 
    min-height: 100vh !important;
    margin: 0 !important;
}

/* --- 1. الكرت الأبيض (نظام العمودين العريض) --- */
.login-card {
    width: 100% !important;
    max-width: 850px !important;
    background: #ffffff;
    border-radius: 22px;
    padding: 40px 50px !important;
    border: 1px solid #93be04 !important;
    box-shadow: 0 10px 25px rgba(68, 128, 0, 0.4) !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 40px;

    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}


/* تأثير الـ Hover (لما يمر الماوس على الكرت) */
.login-card:hover {
    transform: translateY(-8px) scale(1.01) !important; 
        border: 2px solid #93be04 !important; /* خليتها 4 بكسل عشان تطلع أنيقة ومودرن، لو تبغينها عريضة جداً رجعيها 10 */
    box-shadow: 0 20px 40px rgba(2, 146, 7, 0.25), 0 0 20px rgba(200, 210, 0, 0.308) !important; 
}

/* --- القسم الأيمن (الشعار والكلام) --- */
.login-right {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    gap: 2px;
}

.login-left {
    flex: 1.2; /* الفورم يأخذ مساحة أكبر قليلاً لراحة الحقول */
    width: 100%;
}

/* الخط الفاصل بين القسمين */
.login-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, #e0e4ec, transparent);
    flex-shrink: 0;
}

/* --- الشعار --- */
.login-logo {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    /* الشعار يحتوي على فراغ شفاف كبير أعلى/أسفل الصورة (~100px عند العرض الحالي)؛
       الهوامش السالبة تلغي هذا الفراغ لتقريب الشعار من النص */
    margin: -98px auto -98px auto !important;
}

/* العنوان */
.login-title {
    color: #1b4f9c;
    margin: 0 !important;
}
/* --- 4. تنسيقات الحقول والأزرار (تصميمك الأصلي) --- */
.login-input {
    border-radius: 12px;
    border: 2px solid #e8edf5;
    padding-inline-end: 44px;
    padding-inline-start: 44px;
    text-align: start;
    box-shadow: none !important;
}

.login-input:focus {
    border-color: #bcd2f1;
}

/* إخفاء أيقونة إظهار كلمة المرور المدمجة في المتصفح (Edge/IE) لتجنب ظهور عينين */
.login-input::-ms-reveal,
.login-input::-ms-clear {
    display: none;
}

/* أيقونة داخل الحقل */
.input-with-icon {
    position: relative;
}

/* الأيقونة في بداية الحقل (مغلف / قفل) — تتبع اتجاه اللغة */
.login-field-icon {
    position: absolute;
    inset-inline-start: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9db0c9;
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

/* زر إظهار/إخفاء كلمة المرور في نهاية الحقل */
.login-eye-btn {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9db0c9;
    padding: 6px 10px;
    cursor: pointer;
    z-index: 2;
}
.login-eye-btn:hover {
    color: #1b4f9c;
}

/* الروابط */
.login-link {
    color: #1b4f9c;
    text-decoration: none;
}
.login-link:hover {
    text-decoration: underline;
}

/* زر تسجيل الدخول */
.login-btn {
    border-radius: 12px;
    padding: 12px 14px;
    background: #0f4f9e;
    border: none;
    box-shadow: 0 10px 22px rgba(15, 79, 158, 0.25);
}
.login-btn:hover {
    background: #93be04;
}

.form-label {
    width: 100%;
}

/* --- 5. تجاوب الشاشات (عشان الجوالات) --- */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column !important;
        max-width: 450px !important;
        padding: 30px 20px !important;
        gap: 15px;
    }

    .login-divider {
        width: 100%;
        height: 2px;
        align-self: auto;
        background: linear-gradient(to right, transparent, #e0e4ec, transparent);
        margin: 5px 0;
    }

    .login-right {
        width: 100%;
    }
}
/* AUTH CARD */
.auth-card{width:100%;max-width:820px;background:#ffffff;border-radius:22px;padding:40px 50px;border:1px solid #93be04!important;box-shadow:0 10px 25px rgba(68,128,0,.4)!important;transition:transform .4s cubic-bezier(.175,.885,.32,1.275),box-shadow .4s ease}
.auth-card-header{text-align:center;padding-bottom:24px;margin-bottom:28px;border-bottom:2px solid #f0f4fb}
.auth-icon-circle{width:70px;height:70px;background:#f0f7ff;color:#182b60;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:2rem;margin:0 auto 12px}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="date"],
.auth-form input[type="number"],
.auth-form input[type="tel"],
.auth-form select,
.auth-form textarea {
    display: block;
    width: 100%;
    border-radius: 12px !important;
    border: 2px solid #e8edf5 !important;
    padding: 10px 16px !important;
    font-size: 1rem !important;
    color: #0e1e45 !important;
    background: #fff !important;
    outline: none;
    transition: border-color 0.2s;
}
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus { border-color: #bcd2f1 !important; box-shadow: none !important; }
.auth-form .form-label { font-size: .85rem; font-weight: 600; color: #0e1e45; margin-bottom: 6px; }

.signup-option-card {
    background: #f8f9ff; border: 2px solid #e0e5f5; border-radius: 18px;
    padding: 36px 24px; cursor: pointer; transition: all 0.25s;
    text-decoration: none; display: block; color: #0e1e45;
}
.signup-option-card:hover {
    border-color: #93be04; box-shadow: 0 8px 24px rgba(147,190,4,.22);
    transform: translateY(-5px); color: #0e1e45; text-decoration: none;
}
.signup-option-icon {
    width: 72px; height: 72px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin-bottom: 16px;
}
.signup-option-icon.club   { background: #eaf3ff; color: #1b4f9c; }
.signup-option-icon.player { background: #f0fff4; color: #1a7a3c; }

.membership-options { display: flex; gap: 12px; flex-wrap: wrap; }
.membership-card {
    flex: 1; min-width: 140px; display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border: 2px solid #e0e5f5; border-radius: 12px;
    cursor: pointer; transition: all 0.2s; font-weight: 600; color: #0e1e45;
}
.membership-card.selected { border-color: #93be04; background: #f9ffe0; }
.membership-card input[type="radio"] { width: auto !important; border: none !important; padding: 0 !important; accent-color: #93be04; }

@media (max-width: 768px) { .auth-card { padding: 28px 18px; } }
