/* ============================================================================
   STANDALONE-PAGES.CSS
   For the three views that set `Layout = null` and render their own complete
   <html> document instead of using Views/Shared/_Layout.cshtml:
     - Views/Account/Login.cshtml            -> scope class: .login-page
     - Views/AgentSettlement/PrintReceipt.cshtml -> scope class: .agent-receipt-page
     - Views/Remittances/PrintReceipt.cshtml  -> scope class: .remit-receipt-page

   Why scoped: each of these pages originally had its own bare `body { }` /
   `:root { }` rule. That's harmless when each lives in its own isolated
   <style> block, but the moment all three share one external file, a bare
   `body{}` rule from one page would leak into (and fight with) the other
   two. Every selector below is therefore prefixed with a scope class, and
   each view needs ONE tiny markup change: add the matching class to its
   own <body> tag (see migration notes) — nothing else changes.
   ============================================================================ */

/* ============================================================================
   Views/Account/Login.cshtml  ->  <body class="login-page">
   ============================================================================ */
.login-page {
    --primary: #0A2540; /* أزرق مالي داكن */
    --secondary: #635BFF; /* أزرق تكنولوجي ساطع */
    --accent: #FFC107; /* ذهبي يعبر عن النقد */
    --bg-soft: #F8F9FA;
    font-family: "Cairo", sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-soft);
}
    /* حاوية الشاشة المنقسمة */
    .login-page .auth-wrapper {
        display: flex;
        height: 100vh;
        width: 100vw;
    }
    /* ─── القسم الأيمن (الفورم) ─── */
    .login-page .auth-form-section {
        flex: 0 0 45%;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 4rem;
        position: relative;
        z-index: 10;
        box-shadow: -15px 0 30px rgba(0,0,0,0.03);
    }

    .login-page .brand-logo {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--secondary), var(--primary));
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 28px;
        margin-bottom: 25px;
        box-shadow: 0 10px 20px rgba(99, 91, 255, 0.2);
    }
    /* حقول الإدخال العصرية */
    .login-page .input-group-modern {
        position: relative;
        margin-bottom: 25px;
    }

        .login-page .input-group-modern i {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #A0AEC0;
            transition: 0.3s ease;
            z-index: 5;
        }

    .login-page .form-control-modern {
        width: 100%;
        background: #F4F7FE;
        border: 2px solid transparent;
        border-radius: 12px;
        padding: 16px 50px 16px 20px; /* تفريغ المساحة للأيقونة يميناً */
        font-size: 15px;
        font-weight: 600;
        color: #2D3748;
        transition: all 0.3s ease;
    }

        .login-page .form-control-modern:focus {
            outline: none;
            background: #ffffff;
            border-color: var(--secondary);
            box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.1);
        }

            .login-page .form-control-modern:focus + i {
                color: var(--secondary);
            }
    /* زر الدخول */
    .login-page .btn-auth {
        background: linear-gradient(135deg, var(--secondary), #4238E0);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 16px;
        font-size: 16px;
        font-weight: 700;
        width: 100%;
        transition: all 0.3s ease;
        box-shadow: 0 10px 20px rgba(99, 91, 255, 0.3);
    }

        .login-page .btn-auth:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 25px rgba(99, 91, 255, 0.4);
            color: white;
        }
    /* ─── القسم الأيسر (الواجهة البصرية) ─── */
    .login-page .auth-visual-section {
        flex: 1;
        background: var(--primary);
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* الأشكال الهندسية التجريدية */
    .login-page .glass-shape {
        position: absolute;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .login-page .shape-1 {
        width: 500px;
        height: 500px;
        top: -150px;
        left: -100px;
        background: linear-gradient(135deg, rgba(99,91,255,0.2), transparent);
    }

    .login-page .shape-2 {
        width: 300px;
        height: 300px;
        bottom: -50px;
        right: 100px;
        background: linear-gradient(135deg, rgba(255,193,7,0.1), transparent);
    }

    .login-page .visual-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        padding: 0 20px;
    }
/* التجاوب مع شاشات الجوال */
@media (max-width: 991px) {
    .login-page .auth-visual-section {
        display: none; /* إخفاء الجانب البصري في الجوال */
    }

    .login-page .auth-form-section {
        flex: 1;
        padding: 2rem;
    }
}


/* ============================================================================
   Views/AgentSettlement/PrintReceipt.cshtml  ->  <body class="agent-receipt-page">
   ============================================================================ */
.agent-receipt-page {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding: 20px;
}

    .agent-receipt-page .receipt-container {
        background-color: #fff;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 30px;
        border: 2px solid #333;
        border-radius: 10px;
    }

    .agent-receipt-page .header {
        text-align: center;
        border-bottom: 2px solid #333;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

        .agent-receipt-page .header h2 {
            margin: 0;
            color: #333;
        }

    .agent-receipt-page .row-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
        font-size: 16px;
    }

    .agent-receipt-page .label {
        font-weight: bold;
        color: #555;
    }

    .agent-receipt-page .value {
        font-weight: bold;
        color: #000;
    }

    .agent-receipt-page .amount-box {
        text-align: center;
        background-color: #f1f1f1;
        padding: 15px;
        border-radius: 5px;
        font-size: 24px;
        font-weight: bold;
        margin: 20px 0;
        border: 1px dashed #ccc;
    }

    .agent-receipt-page .footer-signatures {
        display: flex;
        justify-content: space-between;
        margin-top: 50px;
        text-align: center;
    }

    .agent-receipt-page .signature-line {
        border-top: 1px solid #000;
        width: 150px;
        padding-top: 5px;
    }
/* إخفاء الأزرار عند الطباعة الفعلية */
@media print {
    .agent-receipt-page .no-print {
        display: none !important;
    }

    .agent-receipt-page {
        background-color: #fff;
    }

        .agent-receipt-page .receipt-container {
            border: none;
            padding: 0;
        }
}


/* ============================================================================
   Views/Remittances/PrintReceipt.cshtml  ->  <body class="remit-receipt-page">
   ============================================================================ */
.remit-receipt-page {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #fff;
    padding: 20px;
}

    .remit-receipt-page .receipt-container {
        max-width: 700px;
        margin: 0 auto;
        border: 1px solid #ddd;
        padding: 30px;
        border-radius: 8px;
    }

    .remit-receipt-page .receipt-header {
        text-align: center;
        border-bottom: 2px dashed #ddd;
        padding-bottom: 15px;
        margin-bottom: 25px;
    }

    .remit-receipt-page .receipt-title {
        font-weight: bold;
        letter-spacing: 1px;
        margin-top: 10px;
    }

    .remit-receipt-page .info-label {
        font-weight: bold;
        color: #555;
    }

    .remit-receipt-page .amount-box {
        background-color: #f8f9fa;
        border: 1px solid #eee;
        padding: 15px;
        border-radius: 6px;
        text-align: center;
    }
/* ستايل خاص لإخفاء أي حواف أو أزرار أثناء خروج الورقة من الطابعة */
@media print {
    .remit-receipt-page .no-print {
        display: none !important;
    }

    .remit-receipt-page {
        padding: 0;
    }

        .remit-receipt-page .receipt-container {
            border: none;
            padding: 0;
        }
}
