/* ==========================================================================
   Atul KAUSHALYA Portal — theme on top of Bootstrap 5.3
   Brand: orange #F58634 · green #00A859 (from the logo) · navy #00447f
   ========================================================================== */

:root {
    --brand-orange: #F58634;
    --brand-orange-600: #e0731f;
    --brand-orange-700: #c4631a;
    --brand-orange-50: #fef4ec;
    --brand-orange-100: #fde3cf;
    --brand-green: #00A859;
    --brand-green-600: #00904c;
    --brand-green-50: #e8f8f0;
    --brand-navy: #00447f;
    --brand-navy-900: #0b1f33;

    --ink: #1c2434;
    --ink-soft: #5b6475;
    --line: #e7eaf0;
    --surface: #ffffff;
    --canvas: #f1f4f8;

    --sidebar-w: 264px;
    --radius: .75rem;
    --radius-sm: .5rem;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .05);

    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--canvas);
    --bs-border-color: var(--line);
    --bs-primary: var(--brand-orange);
    --bs-primary-rgb: 245, 134, 52;
    --bs-success: var(--brand-green);
    --bs-success-rgb: 0, 168, 89;
    --bs-link-color: var(--brand-navy);
    --bs-link-color-rgb: 0, 68, 127;
    --bs-link-hover-color: var(--brand-orange-700);
    --bs-link-hover-color-rgb: 196, 99, 26;
    --bs-focus-ring-color: rgba(245, 134, 52, .25);
    --bs-border-radius: var(--radius-sm);
    --bs-secondary-color: var(--ink-soft);
}

body {
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    letter-spacing: -.005em;
}

/* --------------------------------------------------------------- Buttons */

.btn { font-weight: 500; border-radius: var(--radius-sm); }
.btn-sm { border-radius: .4rem; }

.btn-primary, .btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-orange);
    --bs-btn-border-color: var(--brand-orange);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-orange-600);
    --bs-btn-hover-border-color: var(--brand-orange-600);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-orange-700);
    --bs-btn-active-border-color: var(--brand-orange-700);
    --bs-btn-disabled-bg: var(--brand-orange);
    --bs-btn-disabled-border-color: var(--brand-orange);
    --bs-btn-focus-shadow-rgb: 245, 134, 52;
    box-shadow: 0 1px 2px rgba(196, 99, 26, .25);
}

.btn-success {
    --bs-btn-bg: var(--brand-green);
    --bs-btn-border-color: var(--brand-green);
    --bs-btn-hover-bg: var(--brand-green-600);
    --bs-btn-hover-border-color: var(--brand-green-600);
    --bs-btn-active-bg: var(--brand-green-600);
    --bs-btn-active-border-color: var(--brand-green-600);
    --bs-btn-focus-shadow-rgb: 0, 168, 89;
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-orange-700);
    --bs-btn-border-color: var(--brand-orange-100);
    --bs-btn-hover-color: var(--brand-orange-700);
    --bs-btn-hover-bg: var(--brand-orange-50);
    --bs-btn-hover-border-color: var(--brand-orange);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-orange);
    --bs-btn-active-border-color: var(--brand-orange);
}

.btn-light {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-bg: #f7f8fa;
    --bs-btn-hover-border-color: #d9dde5;
    --bs-btn-active-bg: #eef0f4;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn-icon {
    width: 2.25rem; height: 2.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border: 0; color: var(--ink);
}

.btn-ghost {
    --bs-btn-color: var(--ink-soft);
    --bs-btn-hover-bg: #f1f3f6;
    --bs-btn-hover-color: var(--ink);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
}

/* ------------------------------------------------------------------ Forms */

.form-control, .form-select {
    border-color: #dde1e8;
    border-radius: var(--radius-sm);
    padding: .5rem .75rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 .2rem rgba(245, 134, 52, .18);
}
.form-control-sm, .form-select-sm { padding: .35rem .6rem; }
.form-label { font-weight: 500; font-size: .875rem; margin-bottom: .35rem; }
.form-text { color: var(--ink-soft); }
.form-check-input:checked { background-color: var(--brand-orange); border-color: var(--brand-orange); }
.form-check-input:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 .2rem rgba(245, 134, 52, .18); }
.is-invalid, .was-validated .form-control:invalid { border-color: #dc3545 !important; }

/* -------------------------------------------------------------- App shell */

.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
}
@media (min-width: 992px) {
    .app-sidebar {
        position: sticky; top: 0; height: 100vh; flex: 0 0 var(--sidebar-w);
        visibility: visible !important; transform: none !important;
        background-color: var(--surface) !important; /* offcanvas-lg makes it transparent */
    }
}

.sidebar-brand {
    display: flex; align-items: center;
    height: 68px; padding: 0 1.25rem;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.sidebar-brand::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, var(--brand-orange) 0 50%, var(--brand-green) 50% 100%);
    opacity: .9;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-weight: 700; letter-spacing: .08em; color: var(--ink); font-size: .95rem; }
.brand-sub { font-size: .72rem; color: var(--ink-soft); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem .75rem 1rem; }
.nav-section {
    font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
    color: #98a1b2; padding: 1rem .75rem .4rem;
}
.nav-item {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem .75rem; margin: 1px 0;
    border-radius: var(--radius-sm);
    color: #3b4456; text-decoration: none; font-weight: 500; font-size: .9rem;
    transition: background-color .12s ease, color .12s ease;
}
.nav-item i { font-size: 1.05rem; color: #8a93a6; transition: color .12s ease; }
.nav-item:hover { background: #f4f5f8; color: var(--ink); }
.nav-item:hover i { color: var(--ink-soft); }
.nav-item.active {
    background: var(--brand-orange-50);
    color: var(--brand-orange-700);
    box-shadow: inset 3px 0 0 var(--brand-orange);
}
.nav-item.active i { color: var(--brand-orange); }

.sidebar-foot { padding: .9rem 1.25rem; border-top: 1px solid var(--line); color: var(--ink-soft); }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; vertical-align: middle; margin-right: .25rem; }
.dot-green { background: var(--brand-green); box-shadow: 0 0 0 3px var(--brand-green-50); }
.dot-orange { background: var(--brand-orange); box-shadow: 0 0 0 3px var(--brand-orange-50); }
.dot-grey { background: #aab2c0; }
.dot-red { background: #dc3545; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; isolation: isolate; }

/* Light branded canvas behind the content: soft orange and green light and a
   faint dot grid, fixed while the page scrolls. White cards sit on top. */
body.app {
    background-color: var(--canvas);
    background-image:
        radial-gradient(900px 520px at 100% 0%, rgba(245, 134, 52, .10), transparent 70%),
        radial-gradient(820px 560px at 0% 100%, rgba(0, 168, 89, .08), transparent 70%),
        radial-gradient(600px 400px at 55% 40%, rgba(0, 68, 127, .035), transparent 75%),
        radial-gradient(rgba(28, 36, 52, .07) 1px, transparent 1px);
    background-size: auto, auto, auto, 22px 22px;
    background-attachment: fixed;
}

.app-topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: 1rem;
    height: 68px; padding: 0 1.5rem;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar-search { position: relative; align-items: center; width: min(420px, 40vw); }
.topbar-search i { position: absolute; left: .8rem; color: #98a1b2; }
.topbar-search .form-control { padding-left: 2.2rem; background: #f4f5f8; border-color: transparent; }
.topbar-search .form-control:focus { background: #fff; }

.user-chip { display: flex; align-items: center; gap: .6rem; border: 0; padding: .25rem .5rem; }
.user-chip:hover { background: #f4f5f8; }
.avatar {
    width: 2.1rem; height: 2.1rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-green));
    color: #fff; font-weight: 600; font-size: .9rem;
}

.app-content { flex: 1; padding: 1.75rem 1.75rem 2.5rem; width: 100%; }
.app-footer { padding: 1rem 1.75rem; font-size: .8rem; color: #98a1b2; border-top: 1px solid rgba(28, 36, 52, .06); }

@media (max-width: 575.98px) {
    .app-content { padding: 1.25rem 1rem 2rem; }
    .app-topbar { padding: 0 1rem; }
}

/* ------------------------------------------------------------ Page header */

.page-header {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.5rem;
}
.page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.page-subtitle { color: var(--ink-soft); margin: .25rem 0 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb { font-size: .8rem; margin-bottom: .35rem; --bs-breadcrumb-divider-color: #b3bac7; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-orange-700); }

/* ------------------------------------------------------------------ Cards */

.card {
    --bs-card-border-color: var(--line);
    --bs-card-border-radius: var(--radius);
    --bs-card-inner-border-radius: calc(var(--radius) - 1px);
    --bs-card-cap-bg: transparent;
    --bs-card-bg: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .04);
}
/* Cards that are links (report catalogue): lift on hover. */
a.report-card { transition: border-color .15s ease, box-shadow .15s ease; }
a.report-card:hover, a.report-card:focus-visible { border-color: var(--bs-primary); box-shadow: 0 4px 16px rgba(16, 24, 40, .08); }

.card-header {
    padding: 1rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.card-title-sm { font-size: 1rem; font-weight: 600; margin: 0; }
.card-body { padding: 1.25rem; }

.stat-card { position: relative; overflow: hidden; }
.stat-card .card-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.stat-label { font-size: .8rem; font-weight: 500; color: var(--ink-soft); margin-bottom: .35rem; }
.stat-value { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat-meta { font-size: .78rem; color: var(--ink-soft); margin-top: .35rem; }
.stat-icon {
    width: 2.75rem; height: 2.75rem; border-radius: .7rem;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex: none;
}
.tone-orange { background: var(--brand-orange-50); color: var(--brand-orange-700); }
.tone-green { background: var(--brand-green-50); color: var(--brand-green-600); }
.tone-navy { background: #e8f0f8; color: var(--brand-navy); }
.tone-red { background: #fdecee; color: #b42335; }
.tone-grey { background: #f0f2f5; color: #5b6475; }

/* ----------------------------------------------------------------- Tables */

.table-card .card-header { border-bottom: 1px solid var(--line); }
.table-toolbar {
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    padding: .9rem 1.25rem; border-bottom: 1px solid var(--line);
}
.table-toolbar .search-input { position: relative; flex: 1 1 260px; max-width: 360px; }
.table-toolbar .search-input i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: #98a1b2; }
.table-toolbar .search-input .form-control { padding-left: 2.1rem; }

.table { --bs-table-bg: transparent; margin: 0; font-size: .875rem; }
.table > thead th {
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    color: #7a8396; background: #fafbfc;
    border-bottom: 1px solid var(--line); padding: .7rem 1rem; white-space: nowrap;
}
.table > tbody td { padding: .8rem 1rem; vertical-align: middle; border-color: #eff1f5; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #fbf7f3; }
.table .row-link { color: inherit; text-decoration: none; font-weight: 600; }
.table .row-link:hover { color: var(--brand-orange-700); }
.table td.actions { text-align: right; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; letter-spacing: .02em; }

.table-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .85rem 1.25rem; border-top: 1px solid var(--line);
}
.pagination {
    --bs-pagination-color: var(--ink);
    --bs-pagination-border-color: var(--line);
    --bs-pagination-hover-bg: var(--brand-orange-50);
    --bs-pagination-hover-color: var(--brand-orange-700);
    --bs-pagination-hover-border-color: var(--brand-orange-100);
    --bs-pagination-active-bg: var(--brand-orange);
    --bs-pagination-active-border-color: var(--brand-orange);
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(245, 134, 52, .2);
    gap: .25rem;
}
.pagination .page-link { border-radius: .4rem !important; min-width: 2rem; text-align: center; }

/* ----------------------------------------------------------------- Badges */

.badge-soft {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .6rem; border-radius: 999px;
    font-size: .74rem; font-weight: 600; line-height: 1;
    white-space: nowrap;
}
.badge-soft::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-soft.no-dot::before { display: none; }
.badge-green { background: var(--brand-green-50); color: var(--brand-green-600); }
.badge-orange { background: var(--brand-orange-50); color: var(--brand-orange-700); }
.badge-navy { background: #e8f0f8; color: var(--brand-navy); }
.badge-red { background: #fdecee; color: #b42335; }
.badge-grey { background: #f0f2f5; color: #5b6475; }
.badge-purple { background: #f1ecfb; color: #6941c6; }

/* ------------------------------------------------------- Detail / misc */

.detail-list { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .65rem 1rem; margin: 0; font-size: .9rem; }
.detail-list dt { color: var(--ink-soft); font-weight: 500; }
.detail-list dd { margin: 0; word-break: break-word; }

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-icon {
    width: 3.25rem; height: 3.25rem; margin: 0 auto .9rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-orange-50); color: var(--brand-orange); font-size: 1.4rem;
}

.progress-steps { display: flex; gap: .25rem; }
.progress-steps span { flex: 1; height: .35rem; border-radius: 999px; background: #e9ecf1; }
.progress-steps span.done { background: var(--brand-green); }
.progress-steps span.current { background: var(--brand-orange); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.5rem; font-size: .875rem; }
.timeline li::before { content: ""; position: absolute; left: .3rem; top: .35rem; bottom: -.2rem; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after {
    content: ""; position: absolute; left: 0; top: .2rem; width: .75rem; height: .75rem; border-radius: 50%;
    background: #fff; border: 2px solid #c3c9d4;
}
.timeline li.ok::after { border-color: var(--brand-green); background: var(--brand-green); }
.timeline li.warn::after { border-color: var(--brand-orange); background: var(--brand-orange); }
.timeline li.bad::after { border-color: #dc3545; background: #dc3545; }

.chat-bubble { max-width: 80%; padding: .6rem .85rem; border-radius: .9rem; font-size: .875rem; white-space: pre-line; word-break: break-word; }
.chat-in { background: #fff; border: 1px solid var(--line); border-top-left-radius: .25rem; }
.chat-out { background: #e7f7ee; margin-left: auto; border-top-right-radius: .25rem; }
.chat-time { font-size: .7rem; color: #98a1b2; margin-top: .2rem; }

.dropzone {
    border: 2px dashed #d5dae3; border-radius: var(--radius); background: #fafbfc;
    padding: 2rem 1rem; text-align: center; transition: border-color .15s, background-color .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--brand-orange); background: var(--brand-orange-50); }
.dropzone i { font-size: 2rem; color: var(--brand-orange); }

.nav-tabs-brand { border-bottom: 1px solid var(--line); gap: .25rem; }
.nav-tabs-brand .nav-link {
    border: 0; border-bottom: 2px solid transparent; color: var(--ink-soft); font-weight: 500;
    padding: .7rem .9rem; margin-bottom: -1px; border-radius: 0;
}
.nav-tabs-brand .nav-link:hover { color: var(--ink); }
.nav-tabs-brand .nav-link.active { color: var(--brand-orange-700); border-bottom-color: var(--brand-orange); background: transparent; }

/* ----------------------------------------------------------------- Toasts */

.toast-container { z-index: 1090; }
.toast { border: 0; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(16, 24, 40, .15); overflow: hidden; }
.toast-success { border-left: 4px solid var(--brand-green); }
.toast-success .toast-icon { color: var(--brand-green); }
.toast-danger { border-left: 4px solid #dc3545; }
.toast-danger .toast-icon { color: #dc3545; }
.toast-info { border-left: 4px solid var(--brand-navy); }
.toast-info .toast-icon { color: var(--brand-navy); }

.confirm-icon {
    width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fdecee; color: #b42335; font-size: 1.25rem;
}

/* ---------------------------------------------------------------- Sign-in */
/* Full-screen "code to cash" canvas (assets/js/auth-bg.js) behind a dark
   glass sign-in card. Everything is scoped under .auth-wrap. */
.auth-wrap {
    --auth-bg: #020b18;
    --auth-orange: #f58634;
    --auth-orange-2: #ffb15c;
    --auth-green: #00a859;
    --auth-green-2: #3fe08f;
    position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
    background: var(--auth-bg); color: #fff; font-family: 'Inter', system-ui, sans-serif;
}
.auth-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--auth-bg); }
.auth-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.auth-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* keeps the headline legible over the art */
.auth-scrim-l { background: linear-gradient(100deg, rgba(2,11,24,.94) 0%, rgba(2,11,24,.76) 24%, rgba(2,11,24,.26) 42%, transparent 56%); }
.auth-scrim-b { background: linear-gradient(0deg, rgba(2,11,24,.8) 0%, transparent 30%); }

.auth-stage {
    position: relative; z-index: 3; min-height: 100vh; min-height: 100dvh; max-width: 1440px; margin-inline: auto;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    padding: clamp(24px, 4vw, 52px) clamp(20px, 5vw, 72px);
}
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-mid { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 48px; }

.brand-plate {
    display: inline-flex; align-items: center; gap: 14px; background: #fff; color: var(--brand-navy);
    border-radius: 18px; padding: clamp(10px, 1.1vw, 14px) clamp(14px, 1.5vw, 20px) clamp(10px, 1.1vw, 14px) clamp(10px, 1.1vw, 14px);
    box-shadow: 0 18px 40px -18px rgba(2,8,20,.8);
}
.brand-plate img { height: clamp(42px, 4.6vw, 62px); width: auto; display: block; }
.brand-plate-text { line-height: 1.1; }
.brand-plate-text strong { display: block; font-size: clamp(16px, 1.5vw, 20px); font-weight: 800; letter-spacing: .06em; }
.brand-plate-text span { display: block; font-size: 12px; font-weight: 600; color: #5b6477; letter-spacing: .02em; }
.auth-pill {
    display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.86);
    font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.auth-pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--auth-green-2); box-shadow: 0 0 0 4px rgba(63,224,143,.18); animation: auth-live 2s ease-in-out infinite; }
@keyframes auth-live { 50% { box-shadow: 0 0 0 7px rgba(63,224,143,0); } }

/* headline column */
.auth-aside { max-width: 540px; }
.auth-aside h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(42px, 4.6vw, 64px); margin: 0; color: #fff; }
.auth-aside h2 .grad {
    background: linear-gradient(110deg, var(--auth-orange) 0%, var(--auth-orange-2) 48%, var(--auth-green-2) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--auth-orange);
}
.auth-aside p { margin: 22px 0 0; max-width: 400px; color: rgba(255,255,255,.76); font-size: 16.5px; line-height: 1.6; }
.auth-points { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.auth-points li { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.92); font-size: 15.5px; font-weight: 500; }
.auth-points .ic {
    flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 16px;
    background: linear-gradient(135deg, var(--auth-orange), #e06a14); box-shadow: 0 8px 18px -8px rgba(245,134,52,.85);
}
.auth-points li:nth-child(2) .ic { background: linear-gradient(135deg, var(--auth-green), #00874a); box-shadow: 0 8px 18px -8px rgba(0,168,89,.85); }
.auth-points li:nth-child(3) .ic { background: linear-gradient(135deg, #1f6fc0, var(--brand-navy)); box-shadow: 0 8px 18px -8px rgba(31,111,192,.85); }

/* glass card */
.auth-card {
    width: min(440px, 100%); padding: 38px 38px 30px; border-radius: 30px;
    background: rgba(6,22,48,.58); -webkit-backdrop-filter: blur(28px) saturate(1.2); backdrop-filter: blur(28px) saturate(1.2);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 60px 130px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.18);
    animation: auth-rise .6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes auth-rise { from { opacity: 0; transform: translateY(14px); } }
.auth-mobile-brand { display: none; }
.auth-eyebrow { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--auth-orange-2); }
.auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0; color: #fff; }
.auth-card .lead { margin: 7px 0 0; font-size: 14.5px; color: rgba(255,255,255,.64); }
.auth-card form { margin-top: 24px; }

.auth-alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; }
.auth-alert i { margin-top: 1px; }
.auth-alert-error { background: rgba(229,72,77,.14); border: 1px solid rgba(229,72,77,.38); color: #ffc9cb; animation: auth-shake .4s ease-in-out; }
.auth-alert-info { background: rgba(63,224,143,.1); border: 1px solid rgba(63,224,143,.3); color: #c6f5dc; }
@keyframes auth-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; margin-bottom: 7px; color: rgba(255,255,255,.86); font-size: 13px; font-weight: 600; }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > .bi { position: absolute; left: 16px; font-size: 18px; color: rgba(255,255,255,.5); pointer-events: none; transition: color .15s; }
.auth-input input {
    width: 100%; height: 52px; padding: 0 16px 0 46px; border-radius: 14px; outline: 0;
    border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
    color: #fff; font-size: 15px; font-weight: 500; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.auth-input input.has-eye { padding-right: 50px; }
.auth-input input::placeholder { color: rgba(255,255,255,.4); font-weight: 400; }
.auth-input input:focus { border-color: var(--auth-orange); background: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(245,134,52,.22); }
.auth-field:focus-within .auth-input > .bi { color: var(--auth-orange-2); }
/* Chrome autofill paints an opaque light box; repaint it dark. */
.auth-input input:-webkit-autofill, .auth-input input:-webkit-autofill:hover, .auth-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(16,32,60,.97) inset; box-shadow: 0 0 0 1000px rgba(16,32,60,.97) inset;
    -webkit-text-fill-color: #fff; caret-color: #fff; transition: background-color 100000s ease-in-out 0s;
}
.auth-eye {
    position: absolute; right: 8px; width: 36px; height: 36px; display: grid; place-items: center;
    border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.55); transition: background-color .15s, color .15s;
}
.auth-eye:hover, .auth-eye:focus-visible { color: #fff; background: rgba(255,255,255,.1); outline: 0; }
.caps-warning { margin: -8px 0 12px; font-size: 12.5px; font-weight: 600; color: var(--auth-orange-2); }

.auth-submit {
    width: 100%; height: 54px; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 14px; font-size: 15.5px; font-weight: 700; letter-spacing: .01em; color: #fff;
    background: linear-gradient(100deg, #e8701c, var(--auth-orange) 45%, #ff9d45);
    box-shadow: 0 16px 34px -12px rgba(245,134,52,.8), inset 0 1px 0 rgba(255,255,255,.3);
    transition: filter .15s, box-shadow .15s, transform .15s;
}
.auth-submit:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 20px 40px -12px rgba(245,134,52,.85), inset 0 1px 0 rgba(255,255,255,.3); }
.auth-submit:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(245,134,52,.4); }
.auth-submit .bi { transition: transform .15s; }
.auth-submit:hover .bi { transform: translateX(3px); }
.auth-submit:disabled { opacity: .75; transform: none; }
.auth-note { text-align: center; margin: 18px 0 0; color: rgba(255,255,255,.5); font-size: 12.5px; }

/* footer */
.auth-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }
.auth-brands { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.auth-brands span { color: rgba(255,255,255,.68); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.auth-brands span.sc { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.45); }
.auth-copyr { color: rgba(255,255,255,.5); font-size: 12.5px; font-weight: 500; }

/* tablets and phones: the card comes first, the story moves under it */
@media (max-width: 991.98px) {
    .auth-scrim-l { background: linear-gradient(180deg, rgba(2,11,24,.55) 0%, rgba(2,11,24,.82) 100%); }
    .auth-mid { flex-direction: column-reverse; justify-content: center; gap: 36px; }
    .auth-main { width: 100%; display: flex; justify-content: center; }
    .auth-aside { max-width: 440px; width: 100%; }
    .auth-aside h2 { font-size: clamp(34px, 8vw, 44px); }
    .auth-aside p { font-size: 15px; }
    .auth-foot { justify-content: center; text-align: center; }
    .auth-brands { justify-content: center; }
}
@media (max-width: 575.98px) {
    .auth-top { display: none; }
    .auth-mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
    .auth-mobile-brand img { height: 44px; background: #fff; border-radius: 12px; padding: 6px; }
    .auth-mobile-brand strong { font-size: 15px; font-weight: 800; letter-spacing: .06em; }
    .auth-card { padding: 28px 22px 24px; border-radius: 24px; }
    .auth-card h1 { font-size: 26px; }
    .auth-aside { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-card, .auth-alert-error, .auth-pill .live { animation: none !important; }
}

/* ---------------------------------------------------------- Public pages */

.public-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; background: var(--canvas); }
.public-card { width: 100%; max-width: 32rem; }

/* ----------------------------------------------------------------- Charts */

.chart { overflow: visible; font-family: var(--bs-font-sans-serif); }
.chart-grid { stroke: #eef0f4; stroke-width: 1; shape-rendering: crispEdges; }
.chart-axis { stroke: #d5dae3; stroke-width: 1; shape-rendering: crispEdges; }
.chart-tick { fill: #8a93a6; font-size: 11px; }
.chart-value { fill: var(--ink); font-size: 11px; font-weight: 600; }
.chart-fill { fill: var(--brand-orange); transition: fill .12s ease; }
.chart-hit { fill: transparent; }
.chart-bar:hover .chart-hit { fill: rgba(245, 134, 52, .06); }
.chart-bar:hover .chart-fill { fill: var(--brand-orange-600); }
.min-w-0 { min-width: 0; }
.flex-none { flex: none; }
