/*
  SISTO look theme override
  Loaded after app.css / bootstrap.css to re-skin the Velzon-based UI with
  the SISTO Admin (sisto-admin4) navy/blue design language: Plus Jakarta
  Sans typography, navy sidebar, blue accent, soft rounded cards.
  Same override mechanism as the previous AlmaQS brand theme (CSS custom
  properties + a handful of .sisto-* component classes) — no HTML structure
  or JS-bound selectors were changed to introduce this file.
*/

:root {
  /* ---- Brand palette tokens (from sisto-admin4's sisto-shell.css) ---- */
  --sisto-navy: #0A1F3C;
  --sisto-navy-dark: #051530;
  --sisto-blue: #1E4FA8;
  --sisto-blue-dark: #163C82;
  --sisto-blue-bright: #2563EB;
  --sisto-canvas: #F4F7FB;
  --sisto-surface: #EEF2F8;
  --sisto-line: #E4EAF3;
  --sisto-ink: #0F172A;
  --sisto-muted: #64748B;

  /* Tiga tingkat permukaan kartu. Ada supaya komponen tidak perlu menulis
     #ffffff harfiah dan bisa ikut berganti saat mode gelap menyala:
       panel       — dasar kartu
       panel-alt   — kepala tabel, baris belang, kolom yang dibekukan
       panel-hover — baris/tombol yang sedang disentuh */
  --sisto-panel: #ffffff;
  --sisto-panel-alt: #F6F8FC;
  --sisto-panel-hover: #EEF3FA;
  --sisto-good: #16A34A;
  --sisto-good-dark: #15803D;
  --sisto-warn: #F59E0B;
  --sisto-warn-dark: #D97706;
  --sisto-bad: #E11D48;
  --sisto-bad-dark: #BE123C;
  --sisto-info: #0EA5E9;
  --sisto-info-dark: #0284C7;

  --sisto-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Bootstrap / Velzon semantic colors ---- */
  --vz-primary: #1E4FA8;
  --vz-primary-rgb: 30, 79, 168;
  --vz-primary-text-emphasis: #163C82;
  --vz-primary-bg-subtle: #E7EEFA;
  --vz-primary-border-subtle: #AEC3E6;

  --vz-secondary: #2563EB;
  --vz-secondary-rgb: 37, 99, 235;
  --vz-secondary-text-emphasis: #1D4ED8;
  --vz-secondary-bg-subtle: #E9EFFE;
  --vz-secondary-border-subtle: #B7C9FB;

  --vz-success: #16A34A;
  --vz-success-rgb: 22, 163, 74;
  --vz-success-text-emphasis: #15803D;
  --vz-success-bg-subtle: #E7F6EC;
  --vz-success-border-subtle: #A7DFB8;

  --vz-info: #0EA5E9;
  --vz-info-rgb: 14, 165, 233;
  --vz-info-text-emphasis: #0284C7;
  --vz-info-bg-subtle: #E4F5FC;
  --vz-info-border-subtle: #A6E0F7;

  --vz-warning: #F59E0B;
  --vz-warning-rgb: 245, 158, 11;
  --vz-warning-text-emphasis: #D97706;
  --vz-warning-bg-subtle: #FEF3E0;
  --vz-warning-border-subtle: #FBD599;

  --vz-danger: #E11D48;
  --vz-danger-rgb: 225, 29, 72;
  --vz-danger-text-emphasis: #BE123C;
  --vz-danger-bg-subtle: #FCE7EB;
  --vz-danger-border-subtle: #F3A9B9;

  /* ---- Base surfaces / text ---- */
  --vz-body-bg: #F4F7FB;
  --vz-body-bg-rgb: 244, 247, 251;
  --vz-body-color: #0F172A;
  --vz-body-color-rgb: 15, 23, 42;
  --vz-font-sans-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --vz-secondary-color: #64748B;
  --vz-secondary-color-rgb: 100, 116, 139;
  --vz-secondary-bg: #EEF2F8;
  --vz-secondary-bg-rgb: 238, 242, 248;
  --vz-border-color: #E4EAF3;
  --vz-border-color-translucent: #E4EAF3;
  --vz-link-color: #1E4FA8;
  --vz-link-color-rgb: 30, 79, 168;
  --vz-link-hover-color: #163C82;
  --vz-link-hover-color-rgb: 22, 60, 130;
  --vz-focus-ring-color: rgba(var(--vz-primary-rgb), 0.25);

  /* ---- Layout chrome ---- */
  --vz-header-bg: #ffffff;
  --vz-header-border: #E4EAF3;
  --vz-header-item-color: #0F172A;
  --vz-header-item-bg: rgba(30, 79, 168, 0.1);
  --vz-header-item-sub-color: #64748B;
  --vz-topbar-search-bg: #EEF2F8;
  --vz-topbar-search-color: #0F172A;
  --vz-topbar-user-bg: #EEF2F8;
  --vz-topnav-bg: #ffffff;
  --vz-topnav-item-color: #64748B;
  --vz-topnav-item-active-color: #1E4FA8;
  --vz-footer-bg: #ffffff;
  --vz-footer-color: #64748B;
  --vz-boxed-body-bg: #EEF2F8;
  --vz-input-bg-custom: #ffffff;
  --vz-input-border-custom: #E4EAF3;

  --vz-vertical-menu-bg: #0A1F3C;
  --vz-vertical-menu-border: #0A1F3C;
  --vz-vertical-menu-item-color: rgba(255, 255, 255, 0.75);
  --vz-vertical-menu-item-bg: rgba(255, 255, 255, 0.08);
  --vz-vertical-menu-item-hover-color: #ffffff;
  --vz-vertical-menu-item-active-color: #ffffff;
  --vz-vertical-menu-item-active-bg: rgba(255, 255, 255, 0.08);
  --vz-vertical-menu-sub-item-color: rgba(255, 255, 255, 0.65);
  --vz-vertical-menu-sub-item-hover-color: #ffffff;
  --vz-vertical-menu-sub-item-active-color: #ffffff;
  --vz-vertical-menu-title-color: rgba(255, 255, 255, 0.4);
  --vz-twocolumn-menu-iconview-bg: #0A1F3C;
}

/* ---- Typography: Plus Jakarta Sans everywhere ---- */
body,
.btn,
.form-control,
.form-select,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sisto-font);
}

/* ---- Dark mode: navy surfaces instead of Velzon's stock gray/black ---- */
[data-bs-theme=dark] {
  --sisto-muted: #93A3C2;
  --sisto-line: #24447C;
  --sisto-surface: #10254A;
  --sisto-canvas: #081A3A;

  /* CATATAN: keempat token --sisto-* di atas TIDAK berpengaruh dari sini.
     sisto-components.css dimuat sesudah berkas ini dan mendeklarasikan
     ulang --sisto-line/--sisto-muted/--sisto-ink di dalam `:root` biasa.
     `:root` dan `[data-bs-theme=dark]` sama-sama berbobot (0,1,0), jadi yang
     dimuat belakangan menang — dan itu selalu versi terangnya.

     Nilai gelap yang benar-benar dipakai ditulis ulang di ujung
     sisto-components.css memakai `:root[data-bs-theme=dark]` (0,2,0), yang
     mengalahkan `:root` mana pun tanpa bergantung urutan muat. Baris di sini
     dibiarkan sebagai riwayat, bukan sumber kebenaran. */

  --vz-body-bg: #081A3A;
  --vz-body-bg-rgb: 8, 26, 58;
  --vz-body-color: #CDD8EE;
  --vz-body-color-rgb: 205, 216, 238;
  --vz-emphasis-color: #ffffff;
  --vz-secondary-color: #93A3C2;
  --vz-secondary-bg: #10254A;
  --vz-secondary-bg-rgb: 16, 37, 74;
  --vz-tertiary-bg: #16305C;
  --vz-heading-color: #EEF2FB;
  --vz-link-color: #5B8DEF;
  --vz-link-hover-color: #85AAF3;
  --vz-link-color-rgb: 91, 141, 239;
  --vz-link-hover-color-rgb: 133, 170, 243;
  --vz-border-color: #24447C;
  --vz-border-color-translucent: #24447C;

  --vz-footer-bg: #081A3A;
  --vz-footer-color: #93A3C2;
  --vz-topnav-bg: #0C2047;
  --vz-topnav-item-color: #93A3C2;
  --vz-topnav-item-active-color: #5B8DEF;
  --vz-boxed-body-bg: #051530;
  --vz-input-bg-custom: #0C2047;
  --vz-input-border-custom: #24447C;

  --vz-header-bg: #051530;
  --vz-header-border: #051530;
  --vz-header-item-color: rgba(255, 255, 255, 0.85);
  --vz-header-item-bg: rgba(255, 255, 255, 0.08);
  --vz-header-item-sub-color: #93A3C2;
  --vz-topbar-user-bg: #0C2047;
  --vz-topbar-search-bg: rgba(255, 255, 255, 0.06);
  --vz-topbar-search-color: #ffffff;
}
[data-bs-theme=dark] .dropdown-menu {
  --vz-dropdown-bg: #0C2047;
  --vz-dropdown-link-color: #CDD8EE;
  --vz-dropdown-link-hover-color: #ffffff;
  --vz-dropdown-link-hover-bg: #16305C;
  --vz-dropdown-link-active-color: #ffffff;
  --vz-dropdown-link-active-bg: #16305C;
  --vz-dropdown-border-color: #24447C;
}
[data-bs-theme=dark] .card {
  --vz-card-bg: #10254A;
  --vz-card-border-color: #24447C;
  --vz-card-cap-bg: #0C2047;
}
[data-bs-theme=dark] .sisto-kpi-card,
[data-bs-theme=dark] .sisto-chart-card {
  background: #10254A !important;
  border-color: #24447C !important;
  box-shadow: 0 12px 30px -26px rgba(0, 0, 0, 0.7);
}
[data-bs-theme=dark] .sisto-dash-banner__date {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-topbar=dark] {
  --vz-header-bg: #0A1F3C;
  --vz-header-item-color: rgba(255, 255, 255, 0.85);
  --vz-header-item-bg: rgba(255, 255, 255, 0.1);
  --vz-header-item-sub-color: rgba(255, 255, 255, 0.6);
  --vz-topbar-user-bg: #051530;
  --vz-topbar-search-bg: rgba(255, 255, 255, 0.08);
  --vz-topbar-search-color: #ffffff;
  --vz-header-border: #0A1F3C;
}

/* ---- Sidebar always navy, regardless of data-sidebar / data-bs-theme state.
   app.css defines `:root[data-sidebar=dark]` (specificity 0,2,0) and
   `[data-bs-theme=dark][data-sidebar=dark]` (0,2,0) — both outrank a plain `:root`
   (0,1,0), and a bare `[data-sidebar=dark]` (0,1,0) still loses to the first one.
   Use !important on an unconditional :root so it wins over every vendor combination
   without having to chase every selector. ---- */
:root {
  --vz-vertical-menu-bg: #0A1F3C !important;
  --vz-vertical-menu-border: #0A1F3C !important;
  --vz-vertical-menu-item-color: rgba(255, 255, 255, 0.75) !important;
  --vz-vertical-menu-item-bg: rgba(255, 255, 255, 0.08) !important;
  --vz-vertical-menu-item-hover-color: #ffffff !important;
  --vz-vertical-menu-item-active-color: #ffffff !important;
  --vz-vertical-menu-item-active-bg: rgba(255, 255, 255, 0.08) !important;
  --vz-vertical-menu-sub-item-color: rgba(255, 255, 255, 0.65) !important;
  --vz-vertical-menu-sub-item-hover-color: #ffffff !important;
  --vz-vertical-menu-sub-item-active-color: #ffffff !important;
  --vz-vertical-menu-title-color: rgba(255, 255, 255, 0.4) !important;
  --vz-twocolumn-menu-iconview-bg: #0A1F3C !important;
}

/* ---- Buttons (solid / soft / outline / ghost) ---- */
.btn-primary {
  --vz-btn-color: #fff;
  --vz-btn-bg: #1E4FA8;
  --vz-btn-border-color: #1E4FA8;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #163C82;
  --vz-btn-hover-border-color: #163C82;
  --vz-btn-focus-shadow-rgb: 30, 79, 168;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #163C82;
  --vz-btn-active-border-color: #163C82;
  --vz-btn-disabled-color: #fff;
  --vz-btn-disabled-bg: #1E4FA8;
  --vz-btn-disabled-border-color: #1E4FA8;
}
.btn-outline-primary {
  --vz-btn-color: #1E4FA8;
  --vz-btn-border-color: #1E4FA8;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #1E4FA8;
  --vz-btn-hover-border-color: #1E4FA8;
  --vz-btn-focus-shadow-rgb: 30, 79, 168;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #1E4FA8;
  --vz-btn-active-border-color: #1E4FA8;
  --vz-btn-disabled-color: #1E4FA8;
  --vz-btn-disabled-border-color: #1E4FA8;
}
.btn-soft-primary, .btn-ghost-primary {
  --vz-btn-color: #1E4FA8;
  --vz-btn-hover-color: #1E4FA8;
  --vz-btn-hover-bg: var(--vz-primary-bg-subtle);
  --vz-btn-active-color: #1E4FA8;
  --vz-btn-active-bg: var(--vz-primary-bg-subtle);
  --vz-btn-focus-shadow-rgb: 30, 79, 168;
}
.btn-soft-primary { --vz-btn-hover-bg: #1E4FA8; --vz-btn-hover-color: #fff; --vz-btn-active-bg: #1E4FA8; --vz-btn-active-color: #fff; }

.btn-secondary {
  --vz-btn-color: #fff;
  --vz-btn-bg: #2563EB;
  --vz-btn-border-color: #2563EB;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #1D4ED8;
  --vz-btn-hover-border-color: #1D4ED8;
  --vz-btn-focus-shadow-rgb: 37, 99, 235;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #1D4ED8;
  --vz-btn-active-border-color: #1D4ED8;
  --vz-btn-disabled-color: #fff;
  --vz-btn-disabled-bg: #2563EB;
  --vz-btn-disabled-border-color: #2563EB;
}
.btn-outline-secondary {
  --vz-btn-color: #1D4ED8;
  --vz-btn-border-color: #2563EB;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #2563EB;
  --vz-btn-hover-border-color: #2563EB;
  --vz-btn-focus-shadow-rgb: 37, 99, 235;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #2563EB;
  --vz-btn-active-border-color: #2563EB;
}
.btn-soft-secondary, .btn-ghost-secondary {
  --vz-btn-color: #1D4ED8;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #2563EB;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #2563EB;
  --vz-btn-focus-shadow-rgb: 37, 99, 235;
}

.btn-success {
  --vz-btn-color: #fff;
  --vz-btn-bg: #16A34A;
  --vz-btn-border-color: #16A34A;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #15803D;
  --vz-btn-hover-border-color: #15803D;
  --vz-btn-focus-shadow-rgb: 22, 163, 74;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #15803D;
  --vz-btn-active-border-color: #15803D;
  --vz-btn-disabled-color: #fff;
  --vz-btn-disabled-bg: #16A34A;
  --vz-btn-disabled-border-color: #16A34A;
}
.btn-outline-success {
  --vz-btn-color: #15803D;
  --vz-btn-border-color: #16A34A;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #16A34A;
  --vz-btn-hover-border-color: #16A34A;
  --vz-btn-focus-shadow-rgb: 22, 163, 74;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #16A34A;
  --vz-btn-active-border-color: #16A34A;
}
.btn-soft-success, .btn-ghost-success {
  --vz-btn-color: #15803D;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #16A34A;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #16A34A;
  --vz-btn-focus-shadow-rgb: 22, 163, 74;
}

.btn-info {
  --vz-btn-color: #fff;
  --vz-btn-bg: #0EA5E9;
  --vz-btn-border-color: #0EA5E9;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #0284C7;
  --vz-btn-hover-border-color: #0284C7;
  --vz-btn-focus-shadow-rgb: 14, 165, 233;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #0284C7;
  --vz-btn-active-border-color: #0284C7;
  --vz-btn-disabled-color: #fff;
  --vz-btn-disabled-bg: #0EA5E9;
  --vz-btn-disabled-border-color: #0EA5E9;
}
.btn-outline-info {
  --vz-btn-color: #0284C7;
  --vz-btn-border-color: #0EA5E9;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #0EA5E9;
  --vz-btn-hover-border-color: #0EA5E9;
  --vz-btn-focus-shadow-rgb: 14, 165, 233;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #0EA5E9;
  --vz-btn-active-border-color: #0EA5E9;
}
.btn-soft-info, .btn-ghost-info {
  --vz-btn-color: #0284C7;
  --vz-btn-hover-color: #fff;
  --vz-btn-hover-bg: #0EA5E9;
  --vz-btn-active-color: #fff;
  --vz-btn-active-bg: #0EA5E9;
  --vz-btn-focus-shadow-rgb: 14, 165, 233;
}

.btn-warning {
  --vz-btn-color: #212529;
  --vz-btn-bg: #F59E0B;
  --vz-btn-border-color: #F59E0B;
  --vz-btn-hover-color: #212529;
  --vz-btn-hover-bg: #D97706;
  --vz-btn-hover-border-color: #D97706;
  --vz-btn-focus-shadow-rgb: 245, 158, 11;
  --vz-btn-active-color: #212529;
  --vz-btn-active-bg: #D97706;
  --vz-btn-active-border-color: #D97706;
  --vz-btn-disabled-color: #212529;
  --vz-btn-disabled-bg: #F59E0B;
  --vz-btn-disabled-border-color: #F59E0B;
}
.btn-outline-warning {
  --vz-btn-color: #D97706;
  --vz-btn-border-color: #F59E0B;
  --vz-btn-hover-color: #212529;
  --vz-btn-hover-bg: #F59E0B;
  --vz-btn-hover-border-color: #F59E0B;
  --vz-btn-focus-shadow-rgb: 245, 158, 11;
  --vz-btn-active-color: #212529;
  --vz-btn-active-bg: #F59E0B;
  --vz-btn-active-border-color: #F59E0B;
}
.btn-soft-warning, .btn-ghost-warning {
  --vz-btn-color: #D97706;
  --vz-btn-hover-color: #212529;
  --vz-btn-hover-bg: #F59E0B;
  --vz-btn-active-color: #212529;
  --vz-btn-active-bg: #F59E0B;
  --vz-btn-focus-shadow-rgb: 245, 158, 11;
}

/* ---- Interactive state tokens still hardcoded upstream ---- */
.nav-pills {
  --vz-nav-pills-link-active-bg: #1E4FA8;
}
.pagination {
  --vz-pagination-active-bg: #1E4FA8;
  --vz-pagination-active-border-color: #1E4FA8;
}
.list-group {
  --vz-list-group-active-bg: #1E4FA8;
  --vz-list-group-active-border-color: #1E4FA8;
}
.form-check-input:checked {
  background-color: #1E4FA8;
  border-color: #1E4FA8;
}
.form-switch .form-check-input:checked {
  background-color: #1E4FA8;
  border-color: #1E4FA8;
}

/* ---- Cards: soft rounded corners + hairline border, sisto's card language ---- */
.card {
  --vz-card-border-radius: 16px;
  --vz-card-border-color: #E4EAF3;
  box-shadow: 0 12px 30px -26px rgba(10, 31, 60, 0.5);
}

/* ---- Auth page background ---- */
.auth-bg-cover {
  background: linear-gradient(-45deg, #0A1F3C 50%, #1E4FA8);
}
.auth-one-bg .bg-overlay {
  background: linear-gradient(to right, #051530, #0A1F3C);
}

/* ---- Sidebar wordmark logo card (white pill on navy) ---- */
.sisto-logo-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 7px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---- Scrollbar accents on dark navy sidebar ---- */
.simplebar-scrollbar::before {
  background: rgba(255, 255, 255, 0.3);
}

/* ---- Hide native browser scrollbars app-wide; scrolling stays fully
   functional (mouse wheel, trackpad, keyboard) — only the visible track/thumb
   chrome is removed. Simplebar-managed panels (sidebar nav, chat, etc.) keep
   their own themed thumb above and are unaffected. ---- */
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* ---- Split-screen auth (login) layout ---- */
.sisto-auth {
  display: flex;
  min-height: 100vh;
  background: #ffffff;
  font-family: var(--sisto-font);
}

.sisto-auth-left {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
  color: #ffffff;
  background-color: #0A1F3C;
  background-size: cover;
  background-position: center;
}
/* Navy tint over the background photo (set inline via $bg_login). Kept light
   enough that the photo still reads, with a top/bottom scrim behind the brand,
   hero and footer text so those stay legible. Falls back to the plain navy
   background-color of the panel when no photo is configured. */
.sisto-auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(2,11,28,0.62) 0%, rgba(2,11,28,0.10) 32%, rgba(2,11,28,0.20) 55%, rgba(2,11,28,0.72) 100%),
    linear-gradient(160deg, rgba(10,31,60,0.55) 0%, rgba(5,21,48,0.50) 65%, rgba(2,11,28,0.58) 100%);
  pointer-events: none;
}
.sisto-auth-left__icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  line-height: 1;
  animation-name: sisto-auth-icon-float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes sisto-auth-icon-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4px, -16px) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sisto-auth-left__icon { animation: none; }
}

/* The tint above is deliberately translucent, so every piece of copy on the
   panel carries its own shadow instead of relying on a flat backdrop. */
.sisto-auth-left__brand,
.sisto-auth-left__hero,
.sisto-auth-left__quote,
.sisto-auth-left__desc,
.sisto-auth-left__footer {
  text-shadow: 0 1px 12px rgba(2, 11, 28, 0.65);
}

.sisto-auth-left__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}
.sisto-auth-left__brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}
.sisto-auth-left__brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.sisto-auth-left__brand-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.sisto-auth-left__hero {
  position: relative;
  z-index: 1;
}
.sisto-auth-left__hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.03em;
}
.sisto-auth-left__hero-alma {
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(255, 255, 255, 0.92);
}
.sisto-auth-left__hero-qs {
  color: var(--sisto-gold, #C9A227);
}
.sisto-auth-left__hero .sisto-tagline {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5B8DEF;
}
.sisto-auth-left__hero .sisto-tagline::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #5B8DEF;
  margin-right: 0.6rem;
  margin-bottom: 3px;
}
.sisto-auth-left__quote {
  position: relative;
  z-index: 1;
  margin-top: 2.25rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
}
.sisto-auth-left__desc {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  line-height: 1.7;
}

.sisto-auth-left__footer {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
}

.sisto-auth-footnote {
  font-size: 0.75rem;
  color: var(--sisto-muted, #64748B);
}

.sisto-auth-right {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: #ffffff;
  overflow: hidden;
}
.sisto-auth-right__icon {
  position: absolute;
  color: var(--sisto-line, #E4EAF3);
  pointer-events: none;
  line-height: 1;
}
.sisto-auth-form-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
}
.sisto-auth-form-wrap h2 {
  font-weight: 800;
  color: var(--sisto-ink, #0F172A);
  margin-bottom: 0.5rem;
}
.sisto-auth-form-wrap .sisto-auth-lede {
  color: var(--sisto-muted, #64748B);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.sisto-auth-form-wrap .sisto-auth-lede b {
  color: var(--sisto-navy, #0A1F3C);
}
.sisto-auth-form-wrap .sisto-auth-lede b.sisto-auth-lede__brand {
  color: var(--sisto-gold, #C9A227);
  font-weight: 800;
}

.sisto-input-icon-group {
  position: relative;
}
.sisto-input-icon-group .sisto-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sisto-muted, #64748B);
  font-size: 1.05rem;
  pointer-events: none;
}
.sisto-input-icon-group .form-control {
  padding-left: 2.6rem;
}
.sisto-input-icon-group .password-addon {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

/* ---- Material Symbols Rounded (login/auth icons) ---- */
.msr {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
}

/* ---- Auth inputs: rounded 13px fields with left icon + focus glow ---- */
.sisto-auth-input-group {
  position: relative;
}
.sisto-auth-input-group .msr.sisto-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 21px;
  color: #98A2B3;
  pointer-events: none;
}
.sisto-auth-input-group .form-control {
  height: 54px;
  padding: 0 16px 0 46px;
  border: 1.5px solid var(--sisto-line, #E4EAF3);
  border-radius: 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sisto-ink, #0F172A);
  background: #FBFCFE;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.sisto-auth-input-group .form-control:focus {
  border-color: var(--sisto-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 79, 168, 0.12);
}
.sisto-auth-input-group.auth-pass-inputgroup .form-control {
  padding-right: 48px;
}
.sisto-auth-input-group .password-addon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #98A2B3;
  transition: all .15s ease;
  z-index: 5;
}
.sisto-auth-input-group .password-addon:hover {
  background: #F1F4F9;
  color: var(--sisto-blue);
}

/* ---- Auth "Ingat saya" custom checkbox ---- */
.sisto-auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #475467;
  user-select: none;
}
.sisto-auth-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.sisto-auth-checkbox__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #CBD3E1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  flex: 0 0 auto;
}
.sisto-auth-checkbox__box .msr {
  font-size: 16px;
  color: #ffffff;
  opacity: 0;
  transition: opacity .15s ease;
}
.sisto-auth-checkbox input:checked ~ .sisto-auth-checkbox__box {
  border-color: var(--sisto-blue);
  background: var(--sisto-blue);
}
.sisto-auth-checkbox input:checked ~ .sisto-auth-checkbox__box .msr {
  opacity: 1;
}
.sisto-auth-checkbox input:focus-visible ~ .sisto-auth-checkbox__box {
  box-shadow: 0 0 0 4px rgba(30, 79, 168, 0.18);
}

/* ---- Auth submit button: gradient + lift on hover ---- */
.sisto-auth-submit-btn.btn-primary {
  height: 56px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sisto-blue), var(--sisto-blue-dark));
  box-shadow: 0 16px 34px -14px rgba(30, 79, 168, 0.7);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: all .15s ease;
}
.sisto-auth-submit-btn.btn-primary:hover,
.sisto-auth-submit-btn.btn-primary:focus {
  background: linear-gradient(135deg, var(--sisto-blue), var(--sisto-blue-dark));
  box-shadow: 0 20px 40px -12px rgba(30, 79, 168, 0.8);
  transform: translateY(-1px);
}
.sisto-auth-submit-btn .msr {
  font-size: 20px;
}

@media (max-width: 991.98px) {
  .sisto-auth {
    flex-direction: column;
  }
  .sisto-auth-left {
    padding: 2rem 1.75rem;
  }
  .sisto-auth-left__hero h1 {
    font-size: 2rem;
  }
  .sisto-auth-left__quote {
    font-size: 1.125rem;
  }
  .sisto-auth-right {
    padding: 2rem 1.5rem;
  }
}

/* ---- Alerts / flash messages ---- */
.alert {
  position: relative;
  border-width: 1px;
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem 0.9rem 3.25rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.alert::before {
  font-family: "boxicons" !important;
  font-size: 1.15rem;
  line-height: 1;
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
}
.alert.fw-bold {
  font-weight: 600 !important;
}
.alert ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.alert-danger::before {
  content: "\eac7";
  color: var(--vz-danger-text-emphasis);
}
.alert-success::before {
  content: "\ed31";
  color: var(--vz-success-text-emphasis);
}
.alert-warning::before {
  content: "\eac5";
  color: var(--vz-warning-text-emphasis);
}
.alert-info::before,
.alert-primary::before {
  content: "\eb21";
  color: var(--vz-primary-text-emphasis);
}

.alert-dismissible {
  padding-left: 3.25rem;
  padding-right: 3rem;
}
.alert-dismissible .btn-close {
  left: auto;
  right: 0;
}

/* ---- Dashboard (welcome) ---- */
.sisto-dash-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(115deg, var(--sisto-navy) 0%, var(--sisto-navy-dark) 100%);
  padding: 32px 34px;
  color: #ffffff;
  margin-bottom: 22px;
}
.sisto-dash-banner::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -30px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent 70%);
}
.sisto-dash-banner::after {
  content: "";
  position: absolute;
  bottom: -90px;
  right: 120px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sisto-dash-banner__icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}
.sisto-dash-banner__row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.sisto-dash-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  color: #93BBFA;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.sisto-dash-banner h1 {
  margin: 16px 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.sisto-dash-banner__name {
  color: var(--sisto-gold, #C9A227);
}
.sisto-dash-banner p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  line-height: 1.5;
}
.sisto-dash-banner__date {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sisto-dash-banner__date .msr-icon {
  font-size: 22px;
  color: #93BBFA;
}
.sisto-dash-banner__date-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.sisto-dash-banner__date-value {
  font-size: 15px;
  font-weight: 700;
}

.sisto-dash-grid-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.sisto-dash-grid-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 1199.98px) {
  .sisto-dash-grid-kpi {
    grid-template-columns: repeat(2, 1fr);
  }
  .sisto-dash-grid-1 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575.98px) {
  .sisto-dash-grid-kpi {
    grid-template-columns: 1fr;
  }
}

.sisto-kpi-card {
  background: #ffffff;
  border: 1.5px solid var(--sisto-line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 30px -26px rgba(10, 31, 60, 0.5);
}
.sisto-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.sisto-kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--sisto-ink);
  letter-spacing: -0.5px;
}
.sisto-kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sisto-muted);
  margin-top: 2px;
}

.sisto-chart-card {
  background: #ffffff;
  border: 1.5px solid var(--sisto-line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 12px 30px -26px rgba(10, 31, 60, 0.5);
}
.sisto-chart-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.sisto-chart-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sisto-ink);
}
.sisto-chart-card__sub {
  font-size: 12.5px;
  color: var(--sisto-muted);
  margin-top: 2px;
}
.sisto-chart-card__legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sisto-muted);
}
.sisto-chart-card__legend .sisto-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.sisto-donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.sisto-donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sisto-donut-legend__row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.sisto-donut-legend__row .sisto-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex: 0 0 auto;
}
.sisto-donut-legend__name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sisto-ink);
}
.sisto-donut-legend__pct {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sisto-muted);
}

.sisto-agenda-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--sisto-surface);
}
.sisto-agenda-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sisto-agenda-date {
  width: 46px;
  text-align: center;
  flex: 0 0 auto;
}
.sisto-agenda-day {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.sisto-agenda-mon {
  font-size: 11px;
  font-weight: 700;
  color: var(--sisto-muted);
  text-transform: uppercase;
  margin-top: 3px;
}
.sisto-agenda-bar {
  width: 3px;
  height: 36px;
  border-radius: 3px;
  flex: 0 0 auto;
}
.sisto-agenda-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sisto-ink);
}
.sisto-agenda-time {
  font-size: 12px;
  color: var(--sisto-muted);
  margin-top: 2px;
}

/* ---- Sidebar nav: rounded solid-blue pill on active item, matching
   sisto-admin4's .app-sidebar .menu-item.active look. ---- */
.menu-title {
  color: rgba(255, 255, 255, 0.4) !important;
  letter-spacing: 0.1em;
}
.navbar-menu .navbar-nav .nav-link {
  margin: 2px 12px;
  border-radius: 10px;
  width: auto;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.navbar-menu .navbar-nav .nav-link i {
  opacity: 0.85;
  transition: opacity 0.14s ease;
}
.navbar-menu .navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.07);
}
.navbar-menu .navbar-nav .nav-link:hover i {
  opacity: 1;
}
.navbar-menu .navbar-nav .nav-link.active,
.navbar-menu .navbar-nav .nav-link[data-bs-toggle="collapse"][aria-expanded="true"] {
  background-color: var(--sisto-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(30, 79, 168, 0.9);
}
.navbar-menu .navbar-nav .nav-link.active i,
.navbar-menu .navbar-nav .nav-link[data-bs-toggle="collapse"][aria-expanded="true"] i {
  opacity: 1;
}
.menu-dropdown .nav-link {
  margin-left: 12px;
}
.menu-dropdown .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* ---- Page header (breadcrumb + title) — applies to every page's existing
   .page-title-box/.breadcrumb markup, no view files touched. Matches
   sisto-admin4's bold title / small muted breadcrumb look. ---- */
.page-title-box {
  margin-bottom: 20px;
}
.page-title-box h3,
.page-title-box h4,
.page-title-box h5 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--sisto-ink);
}
.page-title-box .breadcrumb {
  font-size: 12px;
  font-weight: 600;
}
.page-title-box .breadcrumb-item,
.page-title-box .breadcrumb-item a {
  color: var(--sisto-muted);
}
.page-title-box .breadcrumb-item.active {
  color: var(--sisto-blue);
}
.page-title-box .breadcrumb-item + .breadcrumb-item::before {
  color: #CBD5E1;
}

/* ---- Table headers inside cards — sisto's uppercase muted header row.
   Targets Bootstrap's own thead/th selectors, no table markup changed. ---- */
.card .table thead th {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748B;
  background: #F8FAFC;
  border-top: none;
  border-bottom: 1px solid var(--sisto-line);
  white-space: nowrap;
}
.card .table > :not(caption) > * > td {
  vertical-align: middle;
}

/* ---- Filter accordion panels (used across report/list pages) — soft
   rounded panel look on the existing Bootstrap accordion markup. ---- */
.accordion-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--sisto-line);
}
.accordion-item:not(:first-of-type) {
  margin-top: 14px;
  border-top: 1.5px solid var(--sisto-line);
}
.accordion-button {
  background: #ffffff;
  color: var(--sisto-ink);
  font-weight: 700;
}
.accordion-button:not(.collapsed) {
  background: var(--sisto-canvas);
  color: var(--sisto-blue);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
  border-color: var(--sisto-line);
}

/* Filter selectpicker (tahun ajaran/wilayah/sekolah/dst.) di dashboard pakai
   data-container="body" supaya dropdown-nya tidak terpotong oleh konteks
   stacking .sisto-setting > * (lihat sisto-components.css) yang membuat
   panel filter dan panel di bawahnya (KPI/stats/chart) bertumpuk sejajar.
   Begitu di-container ke body, ia lepas dari selector ".sisto-filter
   .bootstrap-select.show" yang sudah ada, jadi perlu z-index sendiri di
   sini supaya tetap di atas header sticky (z-index 1035 di sisto-shell.css). */
body > .bs-container {
  z-index: 1210;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Halaman auth: tombol tema & bahasa, plus mode gelap
   ═══════════════════════════════════════════════════════════════════════════
   Halaman auth (login, ubah password) hanya memuat theme-sisto.css — TIDAK
   memuat sisto-shell.css maupun sisto-components.css. Jadi .sisto-iconbtn yang
   dipakai topbar tidak tersedia di sini dan harus didefinisikan ulang, dan
   semua warna gelap ditulis sebagai nilai harfiah, bukan var(--sisto-*), yang
   di halaman lain bisa ditimpa berkas yang dimuat belakangan.
   ------------------------------------------------------------------------ */

.sisto-auth-tools {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sisto-auth-tools .sisto-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-family: var(--sisto-font);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #64748B;
  background: #ffffff;
  border: 1.5px solid #E4EAF3;
  border-radius: 11px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.sisto-auth-tools .sisto-iconbtn i { font-size: 19px; }

.sisto-auth-tools .sisto-iconbtn:hover {
  color: var(--sisto-blue, #1E4FA8);
  background: #F1F5FB;
  border-color: #C6D6EE;
}

.sisto-auth-tools .sisto-iconbtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 79, 168, 0.18);
}

/* ---- Mode gelap ---------------------------------------------------------
   Panel kiri sudah navy di kedua mode, jadi tidak disentuh sama sekali. Yang
   berubah hanya panel kanan (semula putih) dan isian formulirnya. */

[data-bs-theme=dark] .sisto-auth { background: #051530; }

[data-bs-theme=dark] .sisto-auth-right { background: #081A3A; }

[data-bs-theme=dark] .sisto-auth-right__icon { color: #16305C; }

[data-bs-theme=dark] .sisto-auth-form-wrap h2 { color: #EEF2FB; }

[data-bs-theme=dark] .sisto-auth-form-wrap .sisto-auth-lede { color: #93A3C2; }

[data-bs-theme=dark] .sisto-auth-form-wrap .sisto-auth-lede b { color: #CDD8EE; }

/* Aksen emas merek tetap emas di mode gelap — kontrasnya justru menguat di
   atas navy, dan warnanya membawa identitas, bukan sekadar penekanan. */
[data-bs-theme=dark] .sisto-auth-form-wrap .sisto-auth-lede b.sisto-auth-lede__brand {
  color: var(--sisto-gold, #C9A227);
}

[data-bs-theme=dark] .sisto-auth-form-wrap .form-label { color: #B9C7E2; }

[data-bs-theme=dark] .sisto-auth-input-group .form-control {
  color: #EEF2FB;
  background: #0C2047;
  border-color: #24447C;
}

[data-bs-theme=dark] .sisto-auth-input-group .form-control::placeholder { color: #6E82A8; }

[data-bs-theme=dark] .sisto-auth-input-group .form-control:focus {
  background: #0E2450;
  border-color: #5B8DEF;
  box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.20);
}

[data-bs-theme=dark] .sisto-auth-input-group .msr.sisto-input-icon,
[data-bs-theme=dark] .sisto-input-icon-group .sisto-input-icon { color: #7C90B8; }

[data-bs-theme=dark] .sisto-auth-input-group .password-addon { color: #7C90B8; }

[data-bs-theme=dark] .sisto-auth-input-group .password-addon:hover {
  color: #85AAF3;
  background: #16305C;
}

[data-bs-theme=dark] .sisto-auth-checkbox { color: #B9C7E2; }

[data-bs-theme=dark] .sisto-auth-checkbox__box {
  background: #0C2047;
  border-color: #33538C;
}

/* Biru mereknya (#1E4FA8) terlalu gelap untuk kotak kecil di atas navy —
   kotak tercentangnya jadi nyaris tidak terbaca. Dinaikkan satu tingkat. */
[data-bs-theme=dark] .sisto-auth-checkbox input:checked ~ .sisto-auth-checkbox__box {
  background: #3D74D9;
  border-color: #3D74D9;
}

[data-bs-theme=dark] .sisto-auth-checkbox input:focus-visible ~ .sisto-auth-checkbox__box {
  box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.25);
}

[data-bs-theme=dark] .sisto-auth-submit-btn.btn-primary {
  background: linear-gradient(135deg, #3D74D9, #1E4FA8);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.75);
}

[data-bs-theme=dark] .sisto-auth-submit-btn.btn-primary:hover,
[data-bs-theme=dark] .sisto-auth-submit-btn.btn-primary:focus {
  background: linear-gradient(135deg, #4C82E8, #2A5FBE);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.85);
}

[data-bs-theme=dark] .sisto-auth-footnote { color: #7E90B4; }

[data-bs-theme=dark] .sisto-auth-footnote a { color: #7E90B4 !important; }

[data-bs-theme=dark] .sisto-auth-tools .sisto-iconbtn {
  color: #B9C7E2;
  background: #0C2047;
  border-color: #24447C;
}

[data-bs-theme=dark] .sisto-auth-tools .sisto-iconbtn:hover {
  color: #ffffff;
  background: #16305C;
  border-color: #33538C;
}

/* Daftar syarat password di halaman ubah password. */
[data-bs-theme=dark] .sisto-auth-rules {
  color: #93A3C2;
  background: #0C2047;
  border-color: #24447C;
}

[data-bs-theme=dark] .sisto-auth-rules__title { color: #CDD8EE; }

/* Panel kanan di layar sempit menumpuk di bawah panel kiri; tombolnya
   dipindah ke pojok kanan atas halaman supaya tidak menabrak logo. */
@media (max-width: 991.98px) {
  .sisto-auth-tools { top: 14px; right: 14px; }
}

/* ---- Daftar syarat password (halaman ubah password) ----------------------
   Aturan password ditegakkan di server (auth/Login::update_password) tapi
   sebelumnya tidak pernah ditampilkan, jadi pengguna menemukannya satu per
   satu lewat pesan galat. Ditulis di muka supaya bisa dipenuhi sekali jalan.
   ------------------------------------------------------------------------ */

.sisto-auth-rules {
  margin: 0 0 1.25rem;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--sisto-muted, #64748B);
  background: #F7F9FC;
  border: 1.5px solid var(--sisto-line, #E4EAF3);
  border-radius: 13px;
}

.sisto-auth-rules__title {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sisto-ink, #0F172A);
}

.sisto-auth-rules ul {
  margin: 0;
  padding-left: 1.15rem;
}
