/* =====================================================================
   Maaq POS — ডিজাইন সিস্টেম
   ---------------------------------------------------------------------
   নীতি: একটি নিরপেক্ষ ধূসর স্কেল পুরো UI চালায়; একটিমাত্র ব্র্যান্ড রং
   (ইন্ডিগো) শুধু প্রধান কাজ ও সক্রিয় মেনুতে; বাকি রং কেবল অর্থ বহন করে
   (ভালো / সতর্ক / খারাপ / তথ্য)। সংখ্যা সবসময় সমান-প্রস্থের অঙ্কে, যাতে
   টাকার কলাম নিখুঁতভাবে মেলে। বাংলা লেখা একটু বড় ও খোলা লাইনে।
   ===================================================================== */

:root {
    /* ব্র্যান্ড */
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-soft: #eef2ff;
    --brand-ring: rgba(79, 70, 229, .16);

    /* নিরপেক্ষ স্কেল */
    --page: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #fafbfc;
    --line: #e5e7eb;
    --line-strong: #d4d8df;
    --field-line: #8d94a3;      /* ইনপুটের কিনারা — সাদার সাপেক্ষে ৩:১, তাই ঘর কোথায় স্পষ্ট বোঝা যায় */
    --ink: #111827;
    --ink-2: #374151;
    --muted: #656c79;

    /* অর্থবহ রং (শুধু অবস্থা ও হিসাবের দিক বোঝাতে) */
    --pos: #15803d;  --pos-soft: #eaf6ee;
    --warn: #b45309; --warn-soft: #fdf4e7;
    --neg: #b91c1c;  --neg-soft: #fdeceb;
    --info: #0369a1; --info-soft: #eaf4fa;

    /* সাইডবার */
    --side-bg: #0d1326;
    --side-bg2: #121a33;
    --side-w: 252px;

    /* আকৃতি ও ছায়া — হালকা ও স্তরে স্তরে */
    --radius: 12px;
    --radius-sm: 9px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 4px 14px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .05);
    --shadow-lg: 0 20px 48px rgba(16, 24, 40, .18);
    --topbar-h: 56px;

    /* Bootstrap-এর সঙ্গে মিল */
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-body-color: #1f2937;
    --bs-body-bg: #f5f6f8;
    --bs-border-color: #e5e7eb;
    --bs-body-font-size: .9375rem;
    --bs-body-font-family: "Inter", "Hind Siliguri", "Segoe UI", "Nirmala UI", system-ui, sans-serif;
    --bs-border-radius: var(--radius-sm);
}

/* বাংলা অক্ষর ইংরেজির চেয়ে ছোট দেখায় — তাই একটু বড় ও খোলা লাইনে */
html[lang="bn"] {
    --bs-body-font-family: "Hind Siliguri", "Inter", "Nirmala UI", "Segoe UI", system-ui, sans-serif;
    --bs-body-font-size: .975rem;
}
html[lang="bn"] body { line-height: 1.62; }

body { background: var(--page); color: var(--bs-body-color); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 640; letter-spacing: -.011em; }
a { text-decoration: none; }
hr { border-color: var(--line); opacity: 1; }

/* সংখ্যা সমান প্রস্থে — টাকার কলাম মেলানোর জন্য অপরিহার্য */
.table, .kpi .value, .num, input[type="number"], .text-end, td, th, kbd, code, .badge {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "cv01" 1;
}

/* কী-বোর্ডে চলাচল সবসময় দেখা যাবে */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible { outline: none; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c9ced8; border-radius: 9px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aab1bd; background-clip: content-box; }

/* ---------------- সাইডবার ---------------- */
#side, #side.offcanvas-lg {
    width: var(--side-w);
    background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg2) 100%) !important;
    color: #dfe5f0;
    border: 0;
}
@media (min-width: 992px) {
    #side { position: fixed; inset: 0 auto 0 0; display: flex !important; flex-direction: column; visibility: visible !important; transform: none !important; overflow-y: auto; overscroll-behavior: contain; box-shadow: 1px 0 0 rgba(255,255,255,.04), 6px 0 24px rgba(16, 24, 40, .10); z-index: 200; }
    #content { margin-left: var(--side-w); }
}
.side-brand { display: flex; align-items: center; gap: .65rem; font-size: 1.14rem; font-weight: 680; color: #fff; padding: 1.1rem 1.2rem .9rem; letter-spacing: -.01em; }
.side-brand i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 1.02rem; box-shadow: 0 6px 16px rgba(99, 102, 241, .45); }
.side-nav { padding: 0 .7rem 1.5rem; }
/* কোম্পানির নাম — flex কলামে চেপে লুকিয়ে না যায় (flex: 0 0 auto) */
.side-org { flex: 0 0 auto; margin: -.35rem 1.2rem .4rem; font-size: .82rem; line-height: 1.4; color: #aab4c8; }
.side-org i { margin-right: .3rem; opacity: .8; }
.side-group { text-transform: uppercase; font-size: .655rem; font-weight: 650; letter-spacing: .1em; color: #7f8da8; padding: 1.05rem .8rem .35rem; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; border-radius: 9px; color: #cfd8e6; font-weight: 500; margin-bottom: 1px; transition: background .14s ease, color .14s ease; }
.side-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; color: #93a1bb; transition: color .14s ease; }
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-link:hover i { color: #fff; }
.side-link.active { background: linear-gradient(135deg, var(--brand), #6366f1); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .38); font-weight: 560; }
.side-link.active i { color: #fff; }

/* ---------------- উপরের বার ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 100; display: flex; align-items: center;
    min-height: var(--topbar-h);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(170%) blur(12px);
    -webkit-backdrop-filter: saturate(170%) blur(12px);
    padding: .55rem 1.5rem; border-bottom: 1px solid var(--line);
}
.page-title { font-size: 1.08rem; font-weight: 650; margin: 0; letter-spacing: -.012em; }
.topbar .btn-light, .topbar .btn-outline-secondary { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.topbar .btn-group .btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.topbar .form-select { border-color: var(--line); background-color: var(--surface); font-weight: 500; }
main { padding: 1.15rem 1.5rem 2.5rem; }

/* ---------------- কার্ড ---------------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); background: var(--surface); }
.card-header { background: transparent; font-weight: 640; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0 !important; padding: .75rem 1.05rem; color: var(--ink); }
.card-body { padding: 1.05rem; }

/* ---------------- টেবিল ---------------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink-2); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .55rem .7rem; border-bottom-color: #eef0f4; vertical-align: middle; }
.table thead th, .table-light, .table-light th {
    background: var(--surface-2) !important; font-size: .715rem; font-weight: 650;
    text-transform: uppercase; letter-spacing: .055em; color: var(--muted);
    border-bottom: 1px solid var(--line) !important; white-space: nowrap;
}
/* চাইলে লম্বা তালিকার হেডার আটকে রাখা যায়: মোড়কে .table-scroll ক্লাস দিন।
   (.table-responsive নিজেই একটি স্ক্রল-বাক্স, তাই পাতার সাপেক্ষে আটকানো যায় না) */
.table-scroll { max-height: 70vh; overflow: auto; }
.table-scroll > .table > thead th { position: sticky; top: 0; z-index: 3; box-shadow: inset 0 -1px 0 var(--line); }
.table-hover > tbody > tr { transition: background .1s ease; }
.table-hover > tbody > tr:hover > * { background: #f6f7fb; }
.table tfoot td, .table tfoot th { font-weight: 650; background: var(--surface-2); color: var(--ink); border-top: 1px solid var(--line-strong); }
.table td .text-muted, .table .small { font-size: .84em; }
.table td, .table th { line-height: 1.38; }
.table .badge { font-size: .67rem; padding: .2em .46em; font-weight: 620; vertical-align: middle; }
/* সারির ভেতরের কাজের বোতাম: ছোট ও আইকন-ভিত্তিক, তাতে নামের কলাম চওড়া থাকে */
.row-actions { display: inline-flex; gap: .22rem; white-space: nowrap; }
.row-actions .btn { padding: .24rem .46rem; line-height: 1.1; min-height: 0; }
.row-actions .btn i { font-size: .95rem; }
/* পণ্য/পার্টির নামের ঘর যেন খুব সরু না হয় */
.cell-title { min-width: 170px; }

/* অনুভূমিক স্ক্রল থাকলে ডান পাশে হালকা ছায়া — বোঝা যায় আরও কলাম আছে */
.table-responsive { background:
    linear-gradient(90deg, var(--surface) 30%, rgba(255,255,255,0)) left / 24px 100% no-repeat,
    linear-gradient(270deg, var(--surface) 30%, rgba(255,255,255,0)) right / 24px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(16,24,40,.10), transparent) left / 10px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(16,24,40,.10), transparent) right / 10px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
}

/* ---------------- ফর্ম ---------------- */
.form-label, label.small { font-weight: 520; color: var(--ink-2); margin-bottom: .22rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border: 1px solid var(--field-line); padding: .46rem .7rem; background-color: var(--surface); color: var(--ink); transition: border-color .14s, box-shadow .14s; }
.form-control-sm, .form-select-sm { padding: .3rem .58rem; border-radius: 8px; }
.form-control:hover, .form-select:hover { border-color: #717988; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3.5px var(--brand-ring); }
.form-control::placeholder { color: #9ca3af; }
.form-control:disabled, .form-control[readonly], .form-select:disabled { background-color: #f3f4f6; color: var(--muted); }
.form-check-input { border-color: var(--field-line); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 3.5px var(--brand-ring); border-color: var(--brand); }
.input-group > .btn { border-radius: var(--radius-sm); }

/* ---------------- বোতাম ---------------- */
.btn { border-radius: var(--radius-sm); font-weight: 540; padding: .46rem .95rem; letter-spacing: -.003em; transition: transform .06s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .3rem .68rem; border-radius: 8px; }
.btn-lg { padding: .7rem 1.3rem; border-radius: var(--radius); }
.btn-primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 4px 12px rgba(79, 70, 229, .22); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-success { background: var(--pos); border-color: var(--pos); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 4px 12px rgba(21, 128, 61, .20); }
.btn-success:hover { background: #126c34; border-color: #126c34; }
.btn-danger { background: var(--neg); border-color: var(--neg); }
.btn-danger:hover { background: #991b1b; border-color: #991b1b; }
.btn-warning { background: #d97706; border-color: #d97706; color: #fff; }
.btn-warning:hover { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn-info { background: var(--info); border-color: var(--info); color: #fff; }
.btn-info:hover { background: #025b86; border-color: #025b86; color: #fff; }
.btn-outline-primary { color: var(--brand); border-color: #c7cbf7; }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-outline-secondary { border-color: var(--line-strong); color: var(--ink-2); background: var(--surface); }
.btn-outline-secondary:hover { background: #f3f4f6; color: var(--ink); border-color: #c3c9d2; }
.btn-outline-success { color: var(--pos); border-color: #bfe0cb; }
.btn-outline-success:hover { background: var(--pos); border-color: var(--pos); }
.btn-outline-danger { color: var(--neg); border-color: #f1c3c0; }
.btn-outline-danger:hover { background: var(--neg); border-color: var(--neg); }
.btn-outline-dark { border-color: var(--line-strong); color: var(--ink); }

/* ---------------- অবস্থা ও বার্তা ---------------- */
.alert { border: 1px solid transparent; border-radius: var(--radius-sm); padding: .65rem .9rem; }
.alert-success { background: var(--pos-soft); border-color: #cfe7d7; color: #14532d; }
.alert-warning { background: var(--warn-soft); border-color: #f2ddba; color: #7c3c06; }
.alert-danger  { background: var(--neg-soft); border-color: #f3cdcb; color: #7f1d1d; }
.alert-info    { background: var(--info-soft); border-color: #c9e2ef; color: #075481; }
.badge { font-weight: 600; border-radius: 7px; padding: .3em .6em; letter-spacing: .01em; }
.badge.bg-success { background: var(--pos) !important; }
.badge.bg-danger  { background: var(--neg) !important; }
.badge.bg-warning { background: #d97706 !important; color: #fff !important; }
.badge.bg-info    { background: var(--info) !important; color: #fff !important; }
.badge.bg-light   { background: #f3f4f6 !important; color: var(--ink-2) !important; border: 1px solid var(--line); }
.text-success { color: var(--pos) !important; }
.text-danger  { color: var(--neg) !important; }
.text-warning { color: var(--warn) !important; }
.text-info    { color: var(--info) !important; }
.text-muted   { color: var(--muted) !important; }

/* ---------------- অন্যান্য উপাদান ---------------- */
.list-group-item { border-color: var(--line); }
.list-group-item.active { background: var(--brand); border-color: var(--brand); }
.list-group-item-action:hover { background: var(--brand-soft); }
.nav-tabs { border-bottom: 1px solid var(--line); gap: .15rem; }
.nav-tabs .nav-link { color: var(--muted); border: 0; border-bottom: 2px solid transparent; font-weight: 520; font-size: .95rem; padding: .62rem 1rem; border-radius: 8px 8px 0 0; }
.nav-tabs .nav-link:hover { color: var(--ink); background: #f3f4f6; }
.nav-tabs .nav-link.active { color: var(--brand); font-weight: 640; border-bottom-color: var(--brand); background: transparent; }
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { border-color: var(--line); }
.modal-header { padding: .85rem 1.1rem; }
.modal-backdrop.show { opacity: .4; }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .35rem; }
.dropdown-item { border-radius: 8px; padding: .42rem .7rem; }
.dropdown-item:hover { background: var(--brand-soft); color: var(--brand-dark); }
.progress { border-radius: 8px; background: #eceef2; }
kbd { background: #f3f4f6; color: var(--ink-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; box-shadow: none; padding: .1rem .35rem; font-size: .82em; }
.perm-wrap { display: flex; flex-wrap: wrap; gap: .35rem; }
.perm-chip { display: inline-block; font-size: .82rem; font-weight: 500; line-height: 1.3; padding: .26rem .65rem; border-radius: 999px; background: var(--brand-soft); color: #3730a3; border: 1px solid #dcdffb; white-space: nowrap; }
.perm-more { background: #f3f4f6; color: var(--ink-2); border-color: var(--line); cursor: help; }
.role-name { font-weight: 650; font-size: 1rem; }
.role-sub { font-size: .78rem; font-weight: 400; }

/* ---------------- ড্যাশবোর্ডের সংখ্যা-কার্ড ---------------- */
.kpi { position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--brand), #8b5cf6); }
.kpi .value { font-size: 1.6rem; font-weight: 700; line-height: 1.15; letter-spacing: -.022em; color: var(--ink); }
.kpi .label { color: var(--muted); font-size: .74rem; font-weight: 640; text-transform: uppercase; letter-spacing: .055em; }

/* ---------------- POS ---------------- */
.cart-input { min-width: 64px; }
#results .list-group-item, #custResults .list-group-item { cursor: pointer; }
body.pos-page .fs-3.fw-bold, body.pos-page .fs-4.fw-bold { letter-spacing: -.02em; }
@media (min-width: 1200px) { body.pos-page .pos-summary { position: sticky; top: calc(var(--topbar-h) + 12px); } }

/* ---------------- মোবাইল ও ট্যাব ---------------- */
@media (max-width: 991.98px) {
    main { padding: .9rem .85rem 5.5rem; }          /* নিচে আঙুলের জায়গা */
    .topbar { padding: .5rem .85rem; }
    .card-body { padding: .85rem; }
    .table > :not(caption) > * > * { padding: .6rem .5rem; }
    .btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    .btn-sm { min-height: 36px; padding: .35rem .65rem; }
    .form-control, .form-select { font-size: 16px; min-height: 42px; }  /* iOS-এ জুম ঠেকায় */
    .form-control-sm, .form-select-sm { min-height: 38px; }
    .form-check-input { width: 1.2em; height: 1.2em; }
    #pos-toasts { right: 10px; left: 10px; bottom: 10px; max-width: none; }
    h4, .h4 { font-size: 1.12rem; }
    .modal-dialog { margin: .5rem; }
    .modal-body { padding: .85rem; }
    .nav-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .nav-tabs .nav-link { white-space: nowrap; }
}

/* মোবাইল/ট্যাবলেট: মেনু (offcanvas) নিজে স্ক্রল করবে — নিচের মেনুগুলোতে যাওয়া যায় */
@media (max-width: 991.98px) {
    #side.offcanvas-lg { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 82vw; }
    #side .side-brand { flex: 0 0 auto; }
    #side .side-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
                      -webkit-overflow-scrolling: touch; touch-action: pan-y;
                      padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
}
/* ছোট পর্দায় উপরের বার যেন উপচে না পড়ে */
@media (max-width: 767.98px) {
    .topbar { gap: .35rem; padding: .45rem .6rem; flex-wrap: nowrap; }
    .topbar .page-title { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
    .topbar .ms-auto { gap: .3rem !important; min-width: 0; }
    .topbar #unitSelect { max-width: 7.2rem; font-size: .8rem; padding-left: .4rem; padding-right: 1.3rem; }
    .topbar .btn-group-sm > .btn { padding: .25rem .4rem; font-size: .75rem; min-height: 34px; }
    .topbar .dropdown-toggle { padding: .25rem .5rem; min-height: 34px; }
    .topbar .user-name { display: none; }            /* শুধু আইকন থাকবে */
    .topbar .dropdown-toggle::after { display: none; }
}
@media (max-width: 420px) {
    .topbar .page-title { display: none; }           /* খুব সরু পর্দায় শিরোনাম বাদ, পাশে মেনুতে বোঝা যায় */
    .topbar #unitSelect { max-width: 6rem; }
}

/* মোবাইলে প্রধান কাজের বোতাম নিচে আটকে থাকবে */
@media (max-width: 767.98px) {
    .sticky-actions { position: sticky; bottom: 0; z-index: 50; background: rgba(255,255,255,.95);
        backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: .6rem .85rem;
        margin: 1rem -.85rem -5rem; box-shadow: 0 -4px 16px rgba(16,24,40,.07); }
}

/* ---------------- টোস্ট ও লোডিং বার ---------------- */
#pos-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1080; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.pos-toast { margin: 0; box-shadow: var(--shadow-md); border: 1px solid var(--line); border-radius: var(--radius-sm); animation: posIn .2s cubic-bezier(.2,.8,.2,1); }
.pos-toast.out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@keyframes posIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
#pos-bar { position: fixed; top: 0; left: 0; height: 2.5px; width: 0; background: linear-gradient(90deg, var(--brand), #22d3ee); z-index: 1090; opacity: 0; transition: width .3s ease, opacity .25s; }
#pos-bar.on { width: 90%; opacity: 1; transition: width 8s cubic-bezier(.1, .8, .2, 1), opacity .2s; }

/* ---------------- ছাপা ---------------- */
@media print {
    #side, .topbar, #pos-toasts, #pos-bar, .no-print { display: none !important; }
    #content { margin: 0; }
    main { padding: 0; }
    body { background: #fff; font-size: 11.5pt; }
    .card { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
    .table thead th { position: static !important; background: #eee !important; color: #000; }
    .table-responsive { background: none; overflow: visible; }
    a[href]:after { content: ""; }
}

/* গতিবিধি কমানো থাকলে অ্যানিমেশন বন্ধ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =====================================================================
   লগইন পাতা — ক্লায়েন্টের প্রথম দেখা, তাই আলাদা যত্ন
   বাঁয়ে গাঢ় পরিচয়-পাশ, ডানে পরিষ্কার সাদা ফর্ম। ছোট পর্দায় শুধু ফর্ম।
   ===================================================================== */
.login-page { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--surface); }
.login-wrap { display: grid; grid-template-columns: 1fr; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 992px) { .login-wrap { grid-template-columns: 1.05fr 1fr; } }

.login-brand {
    display: none; position: relative; overflow: hidden; color: #e8ecf6;
    padding: 2.75rem 3rem; flex-direction: column; justify-content: space-between;
    background: radial-gradient(1100px 620px at 12% -10%, #2b3a8f 0%, transparent 60%),
                radial-gradient(900px 560px at 95% 108%, #5b3fa8 0%, transparent 55%),
                linear-gradient(160deg, #0d1326 0%, #141c38 55%, #101733 100%);
}
@media (min-width: 992px) { .login-brand { display: flex; } }
.login-brand::after {           /* হালকা জালের মতো নকশা — গভীরতা দেয় */
    content: ""; position: absolute; inset: 0; opacity: .055; pointer-events: none;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.lb-top, .lf-logo { display: flex; align-items: center; gap: .65rem; position: relative; z-index: 1; }
.lb-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-size: 1.15rem;
           background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 10px 26px rgba(99, 102, 241, .45); }
.lb-name { font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.lb-mid { position: relative; z-index: 1; }
.lb-mid h2 { color: #fff; font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 680; line-height: 1.28; letter-spacing: -.02em; margin: 0 0 1.4rem; }
.lb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.lb-list li { display: flex; align-items: flex-start; gap: .6rem; color: #c3ccdf; font-size: 1rem; }
.lb-list i { flex: none; margin-top: .18rem; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
             background: rgba(129, 140, 248, .22); color: #a5b4fc; font-size: .72rem; }
.lb-foot { position: relative; z-index: 1; color: #7f8da8; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }

.login-form { display: grid; place-items: center; padding: 1.75rem 1.25rem; background: var(--surface); }
.lf-inner { width: 100%; max-width: 380px; }
.lf-logo { justify-content: center; margin-bottom: 1.75rem; }
.lf-logo .lb-name { color: var(--ink); }
.lf-title { font-size: 1.6rem; font-weight: 680; letter-spacing: -.022em; margin: 0 0 .3rem; }
.lf-sub { color: var(--muted); margin: 0 0 1.6rem; }
.lf-field { position: relative; }
.lf-field > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.02rem; pointer-events: none; }
.lf-field .form-control { padding-left: 2.5rem; }
.lf-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
          color: var(--muted); padding: .4rem .55rem; border-radius: 8px; line-height: 1; }
.lf-eye:hover { color: var(--ink); background: #f3f4f6; }
.lf-code { letter-spacing: .5em; font-weight: 650; padding-left: .5em; }
.lf-foot { margin-top: 1.75rem; display: flex; justify-content: center; }
.login-page .btn-lg { padding: .72rem 1.2rem; font-weight: 600; }
