/* Moved out of userlogin.aspx (was an inline <style> block) */
/* ==========================================================================
           UserLogin.aspx — Split-Panel Login Design
           ========================================================================== */

        /* ── 1. CSS Variables ──────────────────────────────────────────── */
        :root {
            --tgl-teal: #3F919C;
            --tgl-teal-hover: #327A84;
            --tgl-orange: #F5833D;
            --tgl-gray-50: #f8fafc;
            --tgl-gray-100: #f1f5f9;
            --tgl-gray-200: #e2e8f0;
            --tgl-gray-300: #cbd5e1;
            --tgl-gray-400: #94a3b8;
            --tgl-gray-500: #64748b;
            --tgl-gray-800: #bebebe;
            --tgl-gray-900: #747474;
            --tgl-ring: rgba(63, 145, 156, 0.15);
            --tgl-shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
            --tgl-shadow-glass: 0 10px 40px -10px rgba(0,0,0,0.08);
        }

        /* ── 2. Layout ─────────────────────────────────────────────────── */
        .tgl-login-wrapper {
            display: flex;
            width: 100%;
            min-height: 600px;
        }

        /* ── 3. Auth Side (Form) ───────────────────────────────────────── */
        .tgl-auth-side {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px 24px;
            background: #ffffff;
            position: relative;
            z-index: 10;
        }
        .tgl-auth-container { width: 100%; max-width: 420px; }

        /* Brand */
        .tgl-auth-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 40px;
        }
        .tgl-brand-logo {
            width: 40px; height: 40px;
            background: var(--tgl-teal);
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 18px;
            box-shadow: 0 4px 10px rgba(63, 145, 156, 0.2);
        }
        .tgl-brand-name {
            font-size: 1.4rem; font-weight: 800;
            color: var(--tgl-gray-900); letter-spacing: -0.5px;
        }
        .tgl-brand-name span { color: var(--tgl-teal); }

        /* Titles */
        .tgl-auth-title {
            font-size: 1.65rem; font-weight: 800;
            color: var(--tgl-gray-900);
            margin-bottom: 6px; letter-spacing: -0.5px;
        }
        .tgl-auth-subtitle {
            font-size: 0.92rem; color: var(--tgl-gray-500);
            margin-bottom: 28px; font-weight: 400; line-height: 1.6;
        }

        /* Publisher note (conditional) */
        .tgl-publisher-note {
            padding: 16px; border-radius: 10px;
            background: var(--tgl-gray-50);
            border: 1px solid var(--tgl-gray-200);
            margin-bottom: 24px; font-size: 0.88rem;
            color: var(--tgl-gray-500); line-height: 1.6;
        }
        .tgl-publisher-note h4 {
            font-size: 0.95rem; font-weight: 700;
            color: var(--tgl-gray-800); margin-bottom: 8px;
        }

        /* Form Elements */
        .tgl-form-group { margin-bottom: 18px; position: relative; }
        .tgl-form-label {
            display: block; font-size: 0.84rem; font-weight: 600;
            color: var(--tgl-gray-800); margin-bottom: 7px;
        }
        .tgl-input-wrap { position: relative; }

        .tgl-form-control {
            width: 100%; padding: 11px 16px;
            font-size: 0.93rem; color: var(--tgl-gray-900);
            background: #ffffff;
            border: 1px solid var(--tgl-gray-200);
            border-radius: 8px;
            transition: all 0.2s ease;
            box-shadow: var(--tgl-shadow-sm);
        }
        .tgl-form-control::placeholder { color: var(--tgl-gray-400); }
        .tgl-form-control:hover { border-color: var(--tgl-gray-300); }
        .tgl-form-control:focus {
            outline: none;
            border-color: var(--tgl-teal);
            box-shadow: 0 0 0 4px var(--tgl-ring);
        }

        /* Password toggle */
        .tgl-pass-toggle {
            position: absolute; top: 50%; transform: translateY(-50%);
            color: var(--tgl-gray-400); background: transparent;
            border: none; padding: 8px; cursor: pointer;
            transition: color 0.2s; z-index: 5;
        }
        [dir="rtl"] .tgl-pass-toggle { right: 8px; left: auto; }
        [dir="ltr"] .tgl-pass-toggle { right: 8px; left: auto; }

        .tgl-pass-toggle:hover { color: var(--tgl-teal); }

        /* Utils row (remember + forgot) */
        .tgl-auth-utils {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 22px; flex-wrap: wrap; gap: 8px;
        }
        .tgl-checkbox-wrap {
            display: flex; align-items: center; gap: 8px;
            font-size: 0.84rem; font-weight: 500; color: var(--tgl-gray-500);
            cursor: pointer;
        }
        .tgl-checkbox-wrap input[type="checkbox"] {
            width: 16px; height: 16px; border-radius: 4px;
            accent-color: var(--tgl-teal); cursor: pointer;
        }
        .tgl-forgot-link {
            font-size: 0.84rem; font-weight: 600;
            color: var(--tgl-teal); text-decoration: none;
        }
        .tgl-forgot-link:hover { color: var(--tgl-teal-hover); text-decoration: underline; }

        /* Submit button */
        .tgl-btn-submit {
            display: flex !important; align-items: center; justify-content: center; gap: 8px;
            width: 100%; padding: 12px 24px;
            background: var(--tgl-teal) !important; color: #ffffff !important;
            font-size: 0.95rem; font-weight: 600;
            border-radius: 8px; border: none;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(63, 145, 156, 0.25);
            text-decoration: none;
        }
        .tgl-btn-submit:hover {
            background: var(--tgl-teal-hover) !important;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(63, 145, 156, 0.35);
            color: #ffffff !important; text-decoration: none;
        }
        .tgl-btn-submit:active { transform: translateY(0); }

        /* Error alerts */
        .tgl-alert {
            padding: 12px 16px; border-radius: 8px;
            font-size: 0.88rem; font-weight: 500;
            margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
        }
        .tgl-alert-error {
            background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
        }
        .tgl-alert-warning {
            background: #fffbeb; border: 1px solid #fde68a; color: #d97706;
        }
        .tgl-alert-js {
            background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
        }
        .tgl-alert i { font-size: 1rem; flex-shrink: 0; }
        .tg-hidden { display: none !important; }

        /* Register link */
        .tgl-auth-register {
            margin-top: 28px; text-align: center;
            font-size: 0.88rem; color: var(--tgl-gray-500);
            padding-bottom: 20px;
            border-bottom: 1px solid var(--tgl-gray-200);
            margin-bottom: 20px;
        }
        .tgl-auth-register a {
            font-weight: 600; color: var(--tgl-gray-900);
            text-decoration: none;
        }
        .tgl-auth-register a:hover { color: var(--tgl-teal); text-decoration: underline; }

        /* Secure footer — in visual panel */
        .tgl-secure-footer {
            grid-column: span 2;
            margin-top: 4px; display: flex;
            align-items: center; justify-content: center; gap: 8px;
            font-size: 0.74rem; font-weight: 600; color: var(--tgl-gray-400);
        }
        .tgl-secure-footer i { color: #10b981; font-size: 0.9rem; }

        /* ── 4. Visual Side (Right Panel) ──────────────────────────────── */
        .tgl-visual-side {
            flex: 1.2;
            background-color: var(--tgl-gray-50);
            position: relative; overflow: hidden;
            display: flex; align-items: center; justify-content: center;
        }
        .tgl-visual-side::before {
            content: '';
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background-image:
                radial-gradient(circle at 15% 50%, rgba(63,145,156,0.08), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(245,131,61,0.06), transparent 25%);
            z-index: 1;
        }
        .tgl-grid-overlay {
            position: absolute; inset: 0;
            background-image:
                linear-gradient(to right, rgba(15,23,42,0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(15,23,42,0.03) 1px, transparent 1px);
            background-size: 40px 40px; z-index: 2;
            mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
            -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
        }

        /* Bento cards */
        .tgl-bento-wrapper {
            position: relative; z-index: 10;
            width: 85%; max-width: 600px;
            display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
        }
        .tgl-bento-card {
            background: #ffffff;
            border: 1px solid rgba(0,0,0,0.06);
            border-radius: 16px;
            padding: 24px 22px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px -6px rgba(0,0,0,0.06);
            display: flex; flex-direction: column; justify-content: center;
            transition: box-shadow 0.25s ease, transform 0.25s ease;
            position: relative; overflow: hidden;
        }
        .tgl-bento-card::after {
            content: '';
            position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
            width: 100px; height: 100px;
            border-radius: 50%;
            background: rgba(63,145,156,0.05);
            pointer-events: none; z-index: 0;
        }
        .tgl-bento-card:nth-child(2)::after { background: rgba(63,145,156,0.06); }
        .tgl-bento-card:nth-child(3)::after { background: rgba(16,185,129,0.06); }
        .tgl-bento-card:nth-child(4)::after { background: rgba(245,131,61,0.06); }
        .tgl-bento-card::before {
            content: '';
            position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
            width: 80px; height: 80px;
            border-radius: 50%;
            background: rgba(0,0,0,0.02);
            box-shadow: -120px -40px 0 20px rgba(63,145,156,0.03);
            pointer-events: none; z-index: 0;
        }
        .tgl-bento-card:hover {
            box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 12px 32px -6px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        .tgl-bento-large { grid-column: span 2; }
        .tgl-bento-wrapper > div[style*="text-align:center"] { grid-column: span 2; }

        /* Icon containers — About page abt-story-icon style */
        .tgl-bc-icon {
            width: 56px; height: 56px; border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.5rem; margin-bottom: 16px;
            position: relative; z-index: 1;
        }
        .tgl-bc-icon img { width: 28px; height: 28px; }
        .tgl-bc-icon.teal {
            background: rgba(63,145,156,0.12) !important;
            border: 1.5px solid rgba(63,145,156,0.18);
            color: var(--tgl-teal) !important;
        }
        .tgl-bc-icon.orange {
            background: rgba(245,131,61,0.12);
            border: 1.5px solid rgba(245,131,61,0.18);
            color: var(--tgl-orange);
        }
        .tgl-bc-icon.green {
            background: rgba(16,185,129,0.12) !important;
            border: 1.5px solid rgba(16,185,129,0.18);
            color: #10b981 !important;
        }
        .tgl-bc-icon.dark {
            background: var(--tgl-teal);
            border: 1.5px solid rgba(63,145,156,0.2);
            color: #fff;
            box-shadow: 0 4px 12px -2px rgba(63,145,156,0.3);
        }

        /* Typography */
        .tgl-bc-value {
            font-size: 2rem; font-weight: 800; color: var(--tgl-gray-900);
            letter-spacing: -0.5px; line-height: 1.1; margin-bottom: 8px;
            font-variant-numeric: tabular-nums;
        }
        .tgl-bc-label {
            font-size: 0.8rem; font-weight: 500; color: var(--tgl-gray-400);
            line-height: 1.5; letter-spacing: 0.01em;
        }

        /* Header row (icon + badge) */
        .tgl-bc-header {
            display: flex; justify-content: space-between; align-items: flex-start;
            margin-bottom: 18px;
        }
        .tgl-bc-header .tgl-bc-icon { margin-bottom: 0; }

        /* LIVE badge */
        .tgl-bc-badge {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff; font-size: 0.65rem; font-weight: 700;
            padding: 4px 10px; border-radius: 20px;
            display: flex; align-items: center; gap: 5px;
            text-transform: uppercase; letter-spacing: 0.5px;
            box-shadow: 0 2px 8px -2px rgba(16,185,129,0.4);
        }
        .tgl-bc-badge-dot {
            display: inline-block; width: 6px; height: 6px;
            background: #fff; border-radius: 50%;
            animation: tglPulse 2s infinite;
        }
        @keyframes tglPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

        /* ── 5. Responsive ─────────────────────────────────────────────── */
        @media (max-width: 900px) {
            .tgl-visual-side { display: none; }
            .tgl-auth-side { padding: 32px 20px; }
        }
        @media (max-width: 480px) {
            .tgl-auth-title { font-size: 1.35rem; }
            .tgl-auth-subtitle { font-size: 0.85rem; }
            .tgl-auth-side { padding: 24px 16px; }
        }

        /* ── 6. Hide master page elements on login ─────────────────────── */
        .page-title-container { display: none !important; }
        .TenderHeaderMenu { display: none !important; }
        .TenderCompactNav { display: none !important; }
        .tg-footer { display: none !important; }
        #tg-mobile-bottombar { display: none !important; }
        #content { padding: 0 !important; margin: 0 !important; }
        #main-content { padding: 0 !important; margin: 0 !important; }
        #page-wrapper { padding: 0 !important; }

        /* ── 7. Navigation Buttons (Back + Home) ──────────────────────── */
        .tgl-nav-buttons {
            display: flex; gap: 10px;
            margin-bottom: 28px;
        }
        .tgl-nav-btn {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 8px 16px; border-radius: 8px;
            font-size: 0.82rem; font-weight: 600;
            color: var(--tgl-gray-500);
            background: var(--tgl-gray-50);
            border: 1px solid var(--tgl-gray-200);
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
        }
        .tgl-nav-btn:hover {
            color: var(--tgl-teal);
            border-color: var(--tgl-teal);
            background: rgba(63, 145, 156, 0.06);
        }
        .tgl-nav-btn i { font-size: 0.78rem; }
        [dir="rtl"] .tgl-nav-btn .fa-arrow-left { transform: scaleX(-1); }

        /* ── 8. Dynamic Logo ───────────────────────────────────────────── */
        .tgl-brand-logo-img {
            max-height: 44px;
            width: auto;
            object-fit: contain;
        }

        /* ── 9. Legal Footer ──────────────────────────────────────────── */
        .tgl-legal-footer {
            text-align: center; margin-top: 16px;
            font-size: 0.72rem; color: var(--tgl-gray-400);
            line-height: 1.6;
        }
        .tgl-legal-footer a {
            color: var(--tgl-teal); text-decoration: none; font-weight: 600;
        }
        .tgl-legal-footer a:hover { text-decoration: underline; }
        .tgl-legal-footer p { margin: 2px 0; }

        /* ── 10. Flags Strip ──────────────────────────────────────────── */
        .tgl-flags-strip {
            grid-column: span 2;
            display: flex; gap: 10px; flex-wrap: wrap;
            justify-content: center; align-items: center;
            margin-top: 8px; padding: 16px 0;
        }
        .tgl-flags-strip img {
            width: 36px; height: 36px;
            border-radius: 6px;
            border: 1px solid rgba(0,0,0,0.08);
            object-fit: cover;
            transition: transform 0.2s;
        }
        .tgl-flags-strip img:hover { transform: scale(1.15); }
