:root {
    --red: #bd2028;
    --red-dark: #971820;
    --orange: #bd2028;
    --ink: #232326;
    --muted: #686870;
    --line: #e6e6e9;
    --paper: #f4f4f6;
    --sidebar: 256px;
    --bs-primary: #bd2028;
    --bs-primary-rgb: 189, 32, 40;
    --bs-link-color: #a91c25;
    --bs-link-hover-color: #82151c;
}

body { color: var(--ink); }
.sidebar { background: #19191c; border-right: 0; }
.sidebar-brand { margin: 22px 22px 19px; padding: 15px 18px 10px; background: #fff; border-radius: 12px; text-align: center; }
.sidebar-brand img { width: 116px; height: 90px; object-fit: contain; }
.sidebar-brand > span { color: #68686f; font-size: 9px; letter-spacing: 2.3px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #ececef; }
.nav-heading { color: #929299; }
.nav-item { color: #bcbcc3; padding-block: 11px; }
.nav-item:hover { background: #28282c; color: #fff; }
.nav-item.active { color: #fff; background: #a91c25; box-shadow: inset 3px 0 #f1a0a5; }
.sidebar-footer { color: #d2d2d7; border-top-color: #333338; }
.sidebar-footer small { color: #94949e; }
.topbar { height: 76px; }
.topbar-title { color: #56565e; font-weight: 600; }
.avatar { background: #fae9ea; }
.page-title .eyebrow { color: #a91c25; letter-spacing: 1.7px; }
.page-title h1 { font-size: 30px; letter-spacing: -1.1px; }
.page-title p { color: #71717b; }
.date-chip { color: #65656d; }
.panel, .metric { box-shadow: 0 3px 12px #19191c03; }
.panel-heading p, .metric > span, .metric small, .quick-card small { color: #71717b; }
.app-table thead th { color: #65656e; background: #f5f5f7; }
.dashboard-welcome, .welcome-banner { background: radial-gradient(ellipse at 95% 100%, #751b24 0, transparent 62%), #202023; border: 1px solid #353539; }
.dashboard-welcome { padding: 30px 32px; border-left: 4px solid var(--red); }
.dashboard-welcome .eyebrow, .welcome-banner .eyebrow { color: #f0a2a8; }
.dashboard-welcome p { color: #ceced4; }
.dashboard-welcome h2 { font-size: 28px; }
.quick-card:hover { background: #fff8f8; border-color: #d6a1a5; }
.btn-primary { --bs-btn-focus-shadow-rgb: 189, 32, 40; }
.btn-primary:focus-visible { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 0 0 3px #bd202833; }
.form-control:focus, .form-select:focus { border-color: #c75a63; box-shadow: 0 0 0 3px #bd202815; }
.form-label { color: #55555e; }
.form-text, .form-check-label { color: #72727b; }
.app-footer, .portal-footer { color: #74747e; }

.auth-page { background: #fafafb; }
.auth-page .auth-grid { grid-template-columns: 1.05fr 1fr; }
.auth-brand { background: radial-gradient(ellipse at 0 100%, #6e1720 0, transparent 60%), #19191c; padding: 48px 9% 36px; min-height: 700px; justify-content: space-between; }
.auth-brand::after { width: 470px; height: 470px; border: 1px solid #ffffff0b; right: -245px; bottom: -100px; pointer-events: none; }
.auth-brand-heading { display: flex; align-items: center; gap: 22px; position: relative; z-index: 1; }
.auth-brand-heading img { width: 140px; height: 109px; object-fit: contain; background: #fff; padding: 10px; border-radius: 10px; }
.auth-company-badge { color: #fff; font-size: 13px; font-weight: 650; letter-spacing: 2px; white-space: nowrap; }
.auth-company-badge b { display: block; color: #d87c84; font-size: 11px; letter-spacing: 4px; margin-top: 6px; }
.auth-brand-message { padding-block: 54px 44px; position: relative; z-index: 1; }
.auth-brand-message .eyebrow { color: #e7a0a6; font-size: 10px; letter-spacing: 2.8px; }
.auth-brand h1 { font-size: clamp(40px, 4.8vw, 70px); font-weight: 650; letter-spacing: -2.6px; line-height: 1.08; margin: 22px 0; }
.auth-brand h1 em { font-style: normal; color: #ec939b; }
.auth-brand-message > p { color: #c3c3cb; font-size: 14px; line-height: 1.9; margin: 0; max-width: 370px; }
.brand-rule { background: #c9424d; width: 46px; margin: 28px 0; }
.auth-features { display: flex; gap: 9px; flex-wrap: wrap; }
.auth-features span { color: #e3d8db; font-size: 10px; padding: 7px 11px; border: 1px solid #ffffff26; border-radius: 5px; }
.auth-brand > small { color: #bfb4bb; font-size: 10px; line-height: 1.7; position: relative; z-index: 1; }
.auth-form { max-width: 500px; padding: 56px 48px; }
.auth-system-name { display: block; color: #a91c25; font-size: 10px; letter-spacing: 1.6px; margin-bottom: 18px; }
.auth-icon { display: none; }
.auth-form h2 { font-size: 30px; font-weight: 650; letter-spacing: -.8px; }
.auth-form > p { color: #72727d; font-size: 13px; line-height: 1.7; }
.auth-form .form-control { background: #fff; min-height: 46px; }
.auth-form .btn { font-size: 13px; font-weight: 600; min-height: 46px; }
.auth-form .mt-3 { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 26px !important; }
.auth-form .mt-3 a { color: #a91c25; font-size: 12px; }
.auth-foot { color: #72727d; font-size: 10px; line-height: 1.8; }
.auth-footer { background: #fafafb; }
.portal-header { border-top: 3px solid var(--red); }
.portal-header img { width: 100px; height: 78px; background: #fff; padding: 0; border-radius: 0; }
.portal-header > a { color: var(--ink); }
.portal-intro { background: radial-gradient(ellipse at 0 100%, #6e1720 0, transparent 75%), #202023; }
.portal-intro .eyebrow { color: #e7a0a6; }
.portal-intro p { color: #d3cbd0; }

@media (max-width: 1100px) {
    .auth-brand { padding-inline: 36px; }
    .auth-form { padding-inline: 36px; }
    .auth-company-badge { font-size: 11px; letter-spacing: 1px; }
}
@media (max-width: 767px) {
    .auth-page .auth-grid { grid-template-columns: 1fr; }
    .auth-brand { min-height: 0; padding: 25px; gap: 25px; }
    .auth-brand-heading { gap: 18px; }
    .auth-brand-heading img { width: 100px; height: 78px; padding: 6px; }
    .auth-brand-message { padding-block: 0 6px; }
    .auth-brand h1 { font-size: 40px; letter-spacing: -1.5px; margin: 14px 0; }
    .auth-brand h1 br { display: none; }
    .auth-brand-message > p { font-size: 12px; line-height: 1.7; }
    .auth-features, .auth-brand .brand-rule, .auth-brand > small { display: none; }
    .auth-form { padding: 30px 25px; max-width: 480px; }
    .auth-form h2 { font-size: 26px; }
    .auth-system-name { font-size: 9px; }
    .dashboard-welcome { padding: 23px; }
    .dashboard-welcome h2 { font-size: 23px; }
    .page-title h1 { font-size: 26px; }
    .portal-header img { width: 78px; height: 61px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
