:root {
    --ink: #172554;
    --muted: #64748b;
    --line: #dbe4ff;
    --surface: #ffffff;
    --canvas: #f4f7ff;
    --primary: #315efb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eef4ff;
    --accent: #eaa43b;
    --danger: #c43e46;
    --danger-soft: #fdebed;
    --warning: #9a6418;
    --warning-soft: #fff4dc;
    --info: #245f94;
    --info-soft: #e9f3fc;
    --shadow: 0 18px 45px rgba(23,37,84,.1);
    --radius: 18px;
    --sidebar: 270px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar);
    display: flex; flex-direction: column; padding: 24px 18px 20px;
    color: #eef4ff; background: linear-gradient(180deg, #0d2a61 0%, #071739 100%);
    overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; }
.brand-mark {
    display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
    border-radius: 14px; color: #071739; background: #dbeafe; font-weight: 900; letter-spacing: -.04em;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.brand strong { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: #a9c5f5; font-size: .73rem; }
.sidebar-caption { padding: 0 12px 9px; color: #8daee8; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 13px; border-radius: 12px; color: #c7d7f5; font-size: .91rem; font-weight: 650; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.is-active { color: #172554; background: #dbeafe; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.nav-item.is-muted { color: #8daee8; }
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item .live-dot { margin-left: auto; }
.nav-logout-form { margin: 0; }
.nav-logout { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: #60a5fa; box-shadow: 0 0 0 4px rgba(96,165,250,.18); }
.sidebar-footer { margin-top: auto; padding: 22px 6px 0; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 13px 10px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 12px; color: #071739; background: #dbeafe; font-weight: 900; }
.user-chip strong, .user-chip small { display: block; max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-chip strong { font-size: .83rem; }.user-chip small { margin-top: 2px; color: #a9c5f5; font-size: .69rem; }
.logout-button { width: 100%; padding: 10px; border: 0; border-radius: 10px; color: #c7d7f5; background: transparent; cursor: pointer; text-align: left; }
.logout-button:hover { color: #fff; background: rgba(255,255,255,.07); }

.main-column { min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; min-height: 88px; padding: 15px clamp(22px, 4vw, 48px); border-bottom: 1px solid rgba(219,228,255,.88); background: rgba(244,247,255,.9); backdrop-filter: blur(16px); }
.topbar p { margin: 0 0 3px; color: var(--primary); font-size: .7rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.15; letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.date-chip, .session-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); font-size: .78rem; font-weight: 700; }
.session-pill { color: var(--primary-dark); border-color: #bfdbfe; background: var(--primary-soft); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.menu-button span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 3px; background: var(--ink); }
.content { width: min(1440px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 46px); flex: 1; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px clamp(22px, 4vw, 48px); color: #8190a5; font-size: .75rem; }

.alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding: 14px 16px; border: 1px solid; border-radius: 13px; font-size: .88rem; font-weight: 650; }
.alert button { border: 0; color: inherit; background: transparent; font-size: 1.3rem; cursor: pointer; }
.alert-success { color: var(--primary-dark); border-color: #bfdbfe; background: var(--primary-soft); }
.alert-danger, .alert-error { color: #8e2930; border-color: #f3c4c8; background: var(--danger-soft); }
.alert-warning { color: #805015; border-color: #efd8a8; background: var(--warning-soft); }
.alert-info { color: #1f5684; border-color: #c9dff1; background: var(--info-soft); }

.hero-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); gap: 28px; margin-bottom: 24px; padding: clamp(26px, 4vw, 42px); border-radius: 24px; color: #eff6ff; background: linear-gradient(120deg, #123b87, #071739); box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; width: 330px; height: 330px; right: -130px; top: -170px; border: 60px solid rgba(255,255,255,.06); border-radius: 50%; }
.hero-card > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 9px; color: #7dd3fc; font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero-card h2 { max-width: 720px; margin: 0; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -.055em; }
.hero-card p:not(.eyebrow) { max-width: 650px; margin: 15px 0 0; color: #bfdbfe; line-height: 1.65; }
.hero-action { align-self: center; justify-self: end; min-width: 230px; padding: 23px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.08); }
.hero-action small, .hero-action strong { display: block; }.hero-action small { color: #a9c5f5; }.hero-action strong { margin: 5px 0 16px; font-size: 1.08rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgba(32,63,54,.045); }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-card .stat-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--primary); background: var(--primary-soft); font-size: .8rem; font-weight: 900; }
.stat-card small { color: var(--muted); font-size: .75rem; font-weight: 700; }
.stat-card strong { display: block; margin-top: 18px; font-size: 2rem; line-height: 1; letter-spacing: -.055em; }
.stat-card p { margin: 7px 0 0; color: #8190a5; font-size: .72rem; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 22px; }
.grid-equal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 32px rgba(30,60,52,.045); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }.card-header p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }
.card-body { padding: 23px; }
.card-footer { padding: 15px 23px; border-top: 1px solid var(--line); background: #fbfdff; border-radius: 0 0 var(--radius) var(--radius); }
.section-title { margin: 0 0 20px; font-size: 1.2rem; letter-spacing: -.035em; }


.quick-list { display: grid; gap: 10px; }
.quick-link { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; transition: .18s ease; }
.quick-link:hover { border-color: #c5d5f5; background: #f5f8ff; transform: translateX(2px); }
.quick-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; color: var(--primary); background: var(--primary-soft); font-weight: 900; }
.quick-link strong, .quick-link small { display: block; }.quick-link strong { font-size: .84rem; }.quick-link small { margin-top: 3px; color: var(--muted); font-size: .71rem; }
.quick-link b { margin-left: auto; color: #94a3b8; }

.session-list { display: grid; gap: 10px; }
.session-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #eef2f8; }
.session-row:last-child { border-bottom: 0; }
.session-date { padding: 8px 5px; border-radius: 11px; color: var(--primary-dark); background: var(--primary-soft); text-align: center; }
.session-date strong, .session-date small { display: block; }.session-date strong { font-size: 1.1rem; }.session-date small { font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.session-info strong { display: block; font-size: .85rem; }.session-info p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-group { display: grid; gap: 8px; }.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .77rem; font-weight: 800; }
.form-group label span { color: var(--danger); }
.input, .select { width: 100%; min-height: 47px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 11px; color: var(--ink); background: #fff; outline: none; transition: .18s ease; }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(49,94,251,.12); }
.input::placeholder { color: #94a3b8; }.form-help { color: var(--muted); font-size: .7rem; line-height: 1.5; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.input-with-icon { position: relative; }.input-with-icon .input { padding-left: 43px; }.input-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--primary); font-weight: 900; }

.session-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 15px; background: var(--line); overflow: hidden; }
.summary-item { padding: 16px; background: #fff; }.summary-item small, .summary-item strong { display: block; }.summary-item small { margin-bottom: 6px; color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; }.summary-item strong { font-size: .84rem; }
.scanner-panel { padding: clamp(25px, 5vw, 48px); border-radius: 22px; color: #fff; background: linear-gradient(135deg, #123b87, #071739); box-shadow: var(--shadow); text-align: center; }
.scanner-panel .live-clock { margin-bottom: 8px; color: #93c5fd; font-size: 2.5rem; font-weight: 900; letter-spacing: -.04em; }
.scanner-panel h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }.scanner-panel p { margin: 8px 0 24px; color: #bfdbfe; }
.scanner-form { display: flex; gap: 10px; width: min(650px, 100%); margin: 0 auto; }
.scanner-input { min-width: 0; flex: 1; min-height: 58px; padding: 0 20px; border: 2px solid transparent; border-radius: 14px; color: var(--ink); background: #fff; outline: none; font-size: 1.1rem; font-weight: 800; letter-spacing: .04em; text-align: center; }.scanner-input:focus { border-color: #60a5fa; box-shadow: 0 0 0 5px rgba(96,165,250,.18); }
.scanner-form .btn { min-height: 58px; padding: 0 24px; color: #172554; background: #dbeafe; }

.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }.search-input { max-width: 320px; }
.table-wrap { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; font-size: .8rem; }.data-table th { padding: 12px 14px; color: var(--muted); background: #f8faff; font-size: .67rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }.data-table td { padding: 14px; border-bottom: 1px solid #e8eef9; vertical-align: middle; }.data-table tbody tr:hover { background: #fbfdff; }.data-table tbody tr:last-child td { border-bottom: 0; }
.empty-state { padding: 50px 20px; color: var(--muted); text-align: center; }.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); }.empty-icon { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 13px; border-radius: 17px; color: var(--primary); background: var(--primary-soft); font-weight: 900; }

.profile-header { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }.profile-avatar { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--primary), #2563eb); font-size: 1.8rem; font-weight: 900; }.profile-header h2 { margin: 0 0 5px; }.profile-header p { margin: 0; color: var(--muted); }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, .9fr) minmax(500px, 1.1fr); background: #eef4ff; }
.login-panel { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 45px; background: #fff; box-shadow: 25px 0 70px rgba(23,37,84,.08); }
.login-wrap { width: min(430px, 100%); }.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 60px; }.login-brand .brand-mark { color: #fff; background: var(--primary); }.login-brand strong, .login-brand small { display: block; }.login-brand small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.login-wrap .eyebrow { color: var(--primary); }.login-wrap h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.03; letter-spacing: -.06em; }.login-intro { margin: 16px 0 30px; color: var(--muted); line-height: 1.65; }
.login-form { display: grid; gap: 17px; }.login-form .button { min-height: 50px; margin-top: 5px; }.login-note { margin-top: 22px; color: var(--muted); font-size: .73rem; line-height: 1.6; text-align: center; }
.login-visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(45px, 7vw, 95px); color: #fff; background: radial-gradient(circle at 75% 15%, rgba(56,189,248,.28), transparent 34%), linear-gradient(145deg, #0d2a61, #06142f); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }.login-visual::before { width: 520px; height: 520px; top: -230px; right: -180px; }.login-visual::after { width: 350px; height: 350px; top: -145px; right: -95px; }
.visual-content { position: relative; z-index: 1; max-width: 650px; }.visual-label { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #bfdbfe; background: rgba(255,255,255,.07); font-size: .72rem; font-weight: 800; }.visual-content h2 { margin: 22px 0 15px; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.065em; }.visual-content p { max-width: 580px; color: #b7cdf5; line-height: 1.7; }
.feature-row { display: flex; gap: 24px; margin-top: 34px; }.feature-row div { padding-left: 14px; border-left: 2px solid #60a5fa; }.feature-row strong, .feature-row small { display: block; }.feature-row small { margin-top: 4px; color: #a9c5f5; }

.sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 35; background: rgba(6,20,47,.58); backdrop-filter: blur(3px); }

@media (max-width: 1120px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-card { grid-template-columns: 1fr; }.hero-action { justify-self: stretch; }
    .login-page { grid-template-columns: minmax(390px, .85fr) 1.15fr; }.login-visual { padding: 50px; }
}

@media (max-width: 860px) {
    .sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 22px 0 60px rgba(0,0,0,.22); }
    .sidebar-open .sidebar { transform: translateX(0); }.sidebar-open .sidebar-backdrop { display: block; }
    .main-column { margin-left: 0; }.menu-button { display: block; }
    .session-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .login-page { display: block; }.login-panel { min-height: 100vh; }.login-visual { display: none; }
}

@media (max-width: 620px) {
    .topbar { min-height: 76px; padding: 12px 16px; }.topbar p { display: none; }.date-chip { display: none; }.session-pill { max-width: 140px; overflow: hidden; white-space: nowrap; }
    .content { padding: 20px 15px 30px; }.app-footer { padding: 18px 16px; flex-direction: column; gap: 4px; }
    .stats-grid, .grid-equal, .form-grid { grid-template-columns: 1fr; }.form-group.full { grid-column: auto; }
    .hero-card { padding: 26px 22px; }.hero-action { min-width: 0; }
    .session-summary { grid-template-columns: 1fr; }
    .scanner-form { flex-direction: column; }.scanner-input { min-height: 62px; }
    .card-header { align-items: flex-start; flex-direction: column; }.card-body { padding: 18px; }
    .form-actions { flex-direction: column-reverse; }.form-actions .btn { width: 100%; }
    .session-row { grid-template-columns: 58px minmax(0,1fr); }.session-row > :last-child { grid-column: 1 / -1; }
    .table-tools { align-items: stretch; flex-direction: column; }.search-input { max-width: none; }
    .login-panel { padding: 30px 20px; align-items: flex-start; }.login-brand { margin-bottom: 45px; }
}


/* Corporate e-Hadir authentication portal */
.portal-auth-body{min-height:100vh;margin:0;overflow-x:hidden;color:#1e293b;background:radial-gradient(circle at 8% 8%,rgba(56,189,248,.24),transparent 30%),radial-gradient(circle at 92% 92%,rgba(49,94,251,.32),transparent 34%),linear-gradient(135deg,#06142f 0%,#0d2a61 50%,#123b87 100%)}
.portal-topbar{position:relative;z-index:20;min-height:68px;padding:0 clamp(18px,4vw,52px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.1);background:rgba(3,7,18,.32);backdrop-filter:blur(16px)}
.portal-brand{display:flex;align-items:center;gap:12px;color:#fff}.portal-brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;color:#fff;font-size:.88rem;font-weight:900;background:linear-gradient(135deg,#315efb,#38bdf8);box-shadow:0 12px 30px rgba(49,94,251,.4)}
.portal-brand strong,.portal-brand small{display:block}.portal-brand strong{font-size:1rem;line-height:1.1;letter-spacing:.01em}.portal-brand small{margin-top:3px;color:rgba(255,255,255,.62);font-size:.65rem;font-weight:700;letter-spacing:.14em}
.portal-home-link{display:flex;align-items:center;gap:7px;color:rgba(255,255,255,.84);font-size:.88rem;font-weight:700}.portal-home-link:hover{color:#fff}
.portal-page-wrap{min-height:calc(100vh - 68px);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:clamp(34px,5vw,70px) clamp(18px,4vw,52px)}
.portal-bg-grid{position:absolute;inset:0;pointer-events:none;opacity:.75;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 90%)}
.portal-glow{position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}.portal-glow-one{width:340px;height:340px;top:-180px;right:8%;border:1px solid rgba(255,255,255,.1);box-shadow:0 0 0 72px rgba(255,255,255,.025),0 0 0 145px rgba(255,255,255,.018)}.portal-glow-two{width:230px;height:230px;bottom:-150px;left:8%;background:rgba(56,189,248,.08)}
.portal-login-shell{position:relative;z-index:2;width:min(1180px,100%);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.82fr);gap:clamp(36px,6vw,82px);align-items:center}
.portal-hero{padding:22px 0;color:#fff}.portal-system-badge{width:max-content;max-width:100%;display:flex;align-items:center;gap:10px;margin-bottom:26px;padding:10px 15px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.1);backdrop-filter:blur(12px);color:rgba(255,255,255,.88);font-size:.78rem;font-weight:700;letter-spacing:.02em}
.portal-status-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#60a5fa;box-shadow:0 0 0 5px rgba(96,165,250,.14)}
.portal-hero h1{margin:0;max-width:700px;font-size:clamp(2.65rem,5.5vw,5rem);line-height:1.02;letter-spacing:-.055em;color:#fff}.portal-hero h1 span{color:#7dd3fc}.portal-hero-text{max-width:650px;margin:23px 0 31px;color:rgba(255,255,255,.72);font-size:clamp(.95rem,1.5vw,1.07rem);line-height:1.75}
.portal-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.portal-feature-card{min-height:144px;padding:18px;border:1px solid rgba(255,255,255,.13);border-radius:19px;background:rgba(255,255,255,.085);backdrop-filter:blur(14px)}
.portal-feature-icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:15px;border-radius:11px;color:#bae6fd;background:rgba(56,189,248,.16);font-size:.66rem;font-weight:900;letter-spacing:.08em}.portal-feature-card strong,.portal-feature-card small{display:block}.portal-feature-card strong{margin-bottom:6px;color:#fff;font-size:.9rem}.portal-feature-card small{color:rgba(255,255,255,.58);font-size:.72rem;line-height:1.5}
.portal-login-card{position:relative;overflow:hidden;padding:clamp(27px,3.4vw,40px);border:1px solid rgba(255,255,255,.68);border-radius:28px;background:rgba(255,255,255,.965);box-shadow:0 32px 95px rgba(2,6,23,.4)}.portal-login-card::before{content:"";position:absolute;top:0;left:18%;width:64%;height:4px;background:linear-gradient(90deg,transparent,#315efb,#38bdf8,transparent)}
.portal-login-header{margin-bottom:24px;text-align:center}.portal-login-logo{width:62px;height:62px;margin:0 auto 15px;display:grid;place-items:center;border-radius:19px;color:#fff;background:linear-gradient(135deg,#315efb,#1d4ed8);box-shadow:0 15px 34px rgba(49,94,251,.34);font-weight:900;letter-spacing:-.05em}.portal-login-header p{margin:0 0 5px;color:#315efb;font-size:.65rem;font-weight:900;letter-spacing:.16em}.portal-login-header h2{margin:0 0 7px;color:#172554;font-size:1.75rem;letter-spacing:-.035em}.portal-login-header>span{color:#64748b;font-size:.84rem}
.portal-info-note,.portal-alert{margin-bottom:22px;padding:13px 14px;border:0;border-left:4px solid #315efb;border-radius:14px;background:#eef4ff;color:#1e3a8a;font-size:.78rem;line-height:1.5}.portal-info-note{display:flex;gap:10px;align-items:flex-start}.portal-info-note>span{flex:0 0 auto;width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:#315efb;color:#fff;font-size:.68rem;font-weight:900}
.portal-login-form{display:grid;gap:17px}.portal-field label{display:block;margin-bottom:8px;color:#334155;font-size:.78rem;font-weight:800}.portal-input-wrap{position:relative}.portal-input-wrap input{width:100%;height:53px;padding:0 15px 0 47px;border:1px solid #dbe4ff;border-radius:15px;outline:none;background:#f8fbff;color:#172554;font:inherit;font-size:.88rem;font-weight:650;transition:border-color .2s,box-shadow .2s,background .2s}.portal-input-wrap input::placeholder{color:#94a3b8;font-weight:500}.portal-input-wrap input:focus{border-color:#315efb;background:#fff;box-shadow:0 0 0 4px rgba(49,94,251,.11)}
.portal-input-icon{position:absolute;z-index:1;left:16px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:18px;height:18px;color:#315efb;font-size:.86rem;font-weight:900}.portal-lock-icon{width:14px;height:12px;border:2px solid #315efb;border-radius:3px}.portal-lock-icon::before{content:"";position:absolute;width:8px;height:8px;top:-8px;border:2px solid #315efb;border-bottom:0;border-radius:8px 8px 0 0}
.portal-login-button{min-height:55px;margin-top:3px;padding:0 20px;display:flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:15px;color:#fff;background:linear-gradient(90deg,#315efb,#4f7cff);box-shadow:0 15px 34px rgba(49,94,251,.33);font:inherit;font-size:.9rem;font-weight:850;cursor:pointer;transition:transform .2s,box-shadow .2s}.portal-login-button:hover{transform:translateY(-2px);box-shadow:0 20px 42px rgba(49,94,251,.42)}.portal-login-button:focus-visible{outline:3px solid rgba(56,189,248,.7);outline-offset:3px}
.portal-card-footer{margin-top:24px;padding-top:18px;display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e8eef9;color:#8190a5;font-size:.64rem}
@media(max-width:980px){.portal-page-wrap{align-items:flex-start}.portal-login-shell{max-width:620px;grid-template-columns:1fr;gap:30px}.portal-hero{padding-top:8px;text-align:center}.portal-system-badge{margin-left:auto;margin-right:auto}.portal-hero h1{margin:auto;font-size:clamp(2.5rem,8vw,4.4rem)}.portal-hero-text{margin-left:auto;margin-right:auto}.portal-features{text-align:left}}
@media(max-width:620px){.portal-topbar{min-height:62px;padding:0 16px}.portal-page-wrap{min-height:calc(100vh - 62px);padding:27px 16px 34px}.portal-brand-mark{width:36px;height:36px;border-radius:11px}.portal-home-link{font-size:0}.portal-home-link span{font-size:1.25rem}.portal-hero{padding:0 4px}.portal-system-badge{margin-bottom:18px;padding:9px 12px;font-size:.66rem}.portal-hero h1{font-size:2.4rem}.portal-hero-text,.portal-features{display:none}.portal-login-shell{gap:23px}.portal-login-card{padding:27px 21px;border-radius:23px}.portal-login-logo{width:55px;height:55px;border-radius:17px}.portal-card-footer{flex-direction:column;align-items:center;text-align:center}}


/* Bootstrap 5 corporate blue overrides */
:root { --bs-primary:#315efb; --bs-primary-rgb:49,94,251; --bs-link-color:#315efb; --bs-link-hover-color:#1d4ed8; --bs-body-color:#172554; --bs-body-bg:#f4f7ff; --bs-border-color:#dbe4ff; }
.btn-primary { --bs-btn-bg:#315efb; --bs-btn-border-color:#315efb; --bs-btn-hover-bg:#1d4ed8; --bs-btn-hover-border-color:#1d4ed8; --bs-btn-active-bg:#172554; --bs-btn-active-border-color:#172554; }
.btn-outline-primary { --bs-btn-color:#315efb; --bs-btn-border-color:#9db7ff; --bs-btn-hover-bg:#315efb; --bs-btn-hover-border-color:#315efb; }
.text-bg-primary { background-color:#315efb !important; }
.form-control:focus,.form-select:focus { border-color:#315efb; box-shadow:0 0 0 .25rem rgba(49,94,251,.14); }
.card { --bs-card-border-color:#dbe4ff; }
.table { --bs-table-hover-bg:#f4f7ff; }


/* Dashboard high-contrast typography */
.app-body .content,.app-body .card,.app-body .list-group-item,.app-body .summary-item{color:#0f172a}
.app-body .topbar h1,.app-body .card-header h2,.app-body .card-header h3,.app-body .stat-card strong,.app-body .quick-link strong,.app-body .session-info strong,.app-body .summary-item strong,.app-body .data-table td{color:#0f172a}
.app-body .card-header p,.app-body .stat-card small,.app-body .stat-card p,.app-body .quick-link small,.app-body .session-info p,.app-body .summary-item small,.app-body .form-help{color:#475569}
.app-body .card-header p{font-size:.82rem}.app-body .stat-card small{font-size:.8rem}.app-body .stat-card p,.app-body .quick-link small,.app-body .session-info p{font-size:.77rem}
.app-body .data-table th{color:#334155;font-size:.72rem}.app-body .data-table td{font-size:.84rem}
.app-body .hero-card,.app-body .hero-card h2,.app-body .hero-card strong{color:#fff}.app-body .hero-card p:not(.eyebrow){color:#dbeafe}


/* Bootstrap hero card correction */
.app-body .card.hero-card{background:linear-gradient(120deg,#123b87 0%,#071739 100%)!important;background-color:#071739!important;color:#fff!important}
.app-body .card.hero-card .eyebrow{color:#7dd3fc!important}
.app-body .card.hero-card h2,.app-body .card.hero-card strong{color:#fff!important}
.app-body .card.hero-card p:not(.eyebrow){color:#dbeafe!important}
.app-body .card.hero-card .hero-action{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.11)}
.app-body .card.hero-card .hero-action small{color:#bfdbfe!important}
.app-body .card.hero-card .btn-light{color:#172554;background:#fff;border-color:#fff;font-weight:750}
.app-body .card.hero-card .btn-light:hover{color:#071739;background:#dbeafe;border-color:#dbeafe}
