:root {
  --bg: #071018;
  --surface: #0e1822;
  --surface-2: #111e2a;
  --line: #263747;
  --line-strong: #315978;
  --text: #eef6ff;
  --muted: #94aabd;
  --blue: #169be5;
  --green: #35cd82;
  --red: #ff6875;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  font-family: Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 1180px; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.eyebrow { margin: 0 0 8px; color: #74bfe9; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.login-page { min-height: 100vh; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 8vw; border-right: 1px solid var(--line); background: radial-gradient(circle at 20% 30%, rgba(22,155,229,.18), transparent 34%), linear-gradient(145deg, #071018, #0b1722); }
.login-brand::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 430px; height: 430px; border: 1px solid rgba(116,191,233,.12); border-radius: 50%; box-shadow: 0 0 0 62px rgba(116,191,233,.025), 0 0 0 124px rgba(116,191,233,.02); }
.brand-sign { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 38px; border: 1px solid #3a789f; border-radius: 6px; background: #0c2739; color: #78cfff; font-size: 26px; font-weight: 900; }
.login-brand h1 { max-width: 650px; margin: 0; font-size: clamp(48px, 5vw, 78px); line-height: .98; letter-spacing: -.055em; }
.brand-copy { max-width: 580px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.login-status { margin-top: 54px; color: #b7cad9; font-size: 12px; font-weight: 700; }
.login-status span, .status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(53,205,130,.1); }
.login-panel { display: grid; place-items: center; padding: 7vw; background: #09131c; }
.login-card { width: min(440px, 100%); }
.login-heading h2 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.login-heading { margin-bottom: 30px; }
.login-form { display: grid; gap: 18px; }
.login-form label span { display: block; margin-bottom: 8px; color: #c9dae7; font-size: 12px; font-weight: 800; }
.login-form input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 4px; outline: none; background: var(--surface); color: var(--text); padding: 0 13px; }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,155,229,.12); }
.button { min-height: 40px; border: 1px solid var(--line); border-radius: 4px; padding: 0 16px; color: var(--text); font-weight: 800; cursor: pointer; }
.button-primary { height: 48px; margin-top: 6px; border-color: #178ac9; background: #148fd2; color: #fff; }
.button-ghost { background: #111e2a; }
.form-alert { margin-bottom: 18px; padding: 12px 13px; border: 1px solid rgba(255,104,117,.45); border-radius: 4px; background: rgba(255,104,117,.09); color: #ffc1c6; font-size: 13px; }
.login-help { margin: 22px 0 0; color: #71889a; font-size: 11px; line-height: 1.5; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px 1fr; }
.app-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #0b151e; padding: 16px 12px; }
.app-brand { display: flex; align-items: center; gap: 10px; padding: 4px 4px 18px; border-bottom: 1px solid var(--line); }
.app-brand > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #2b668b; border-radius: 4px; background: #10283a; color: #7bcfff; font-weight: 900; }
.app-brand strong, .app-brand small { display: block; }
.app-brand strong { font-size: 14px; }
.app-brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.app-nav { display: grid; gap: 5px; padding-top: 18px; }
.app-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border: 1px solid transparent; border-radius: 4px; color: #b7cad9; font-size: 13px; font-weight: 700; }
.app-nav a i { width: 29px; color: #67869d; font-size: 10px; font-style: normal; }
.app-nav a.active { border-color: var(--line-strong); background: #14283a; color: #fff; }
.sidebar-foot { margin-top: auto; padding: 14px 7px 5px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.app-main { min-width: 0; padding: 22px; }
.app-topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.app-topbar h1 { margin: 0; font-size: 23px; }
.user-menu { display: flex; align-items: center; gap: 15px; }
.user-menu div { text-align: right; }
.user-menu strong, .user-menu small { display: block; }
.user-menu small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric-card, .panel-card { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: var(--shadow); }
.metric-card { min-height: 110px; padding: 16px; }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card span { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.metric-card strong { display: block; margin: 11px 0 5px; font-size: 24px; }
.metric-card small { font-size: 11px; }
.dashboard-columns { display: grid; grid-template-columns: 1.35fr .85fr; gap: 12px; margin-top: 12px; }
.panel-card { padding: 16px; box-shadow: none; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; font-size: 16px; }
.tag { padding: 6px 8px; border-radius: 3px; background: #15283a; color: #91cbee; font-size: 10px; font-weight: 800; }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.module-grid a { min-height: 82px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 12px; background: #0b151f; }
.module-grid b { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #2d607f; border-radius: 4px; color: #76c7f3; font-size: 11px; }
.module-grid strong, .module-grid small { display: block; }
.module-grid strong { font-size: 13px; }
.module-grid small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.audit-list > div { min-height: 55px; display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 7px; border-top: 1px solid var(--line); }
.audit-list p { margin: 0; }
.audit-list strong, .audit-list small { display: block; }
.audit-list strong { font-size: 11px; }
.audit-list small, .audit-list time { margin-top: 3px; color: var(--muted); font-size: 9px; }
.empty-state { color: var(--muted); font-size: 12px; }

.password-shell { min-height: 100vh; display: grid; place-items: center; padding: 48px; background: radial-gradient(circle at 50% 20%, rgba(22,155,229,.14), transparent 35%), #09131c; }
.password-card { width: 460px; border: 1px solid var(--line); border-radius: 5px; padding: 34px; background: var(--surface); box-shadow: var(--shadow); }
.password-card .brand-sign { width: 50px; height: 50px; margin-bottom: 26px; font-size: 19px; }
.password-card h1 { margin: 0; font-size: 32px; letter-spacing: -.035em; }
.password-copy { margin: 14px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.password-rule { margin: -4px 0 0; color: #8298a9; font-size: 11px; }
.password-logout { margin-top: 12px; }
.password-logout .button { width: 100%; }
