:root {
  font-family: Montserrat, Avenir, "Segoe UI", Arial, sans-serif;
  color: #1d252c;
  background: #f3f7fa;
  --navy: #003764;
  --blue: #0074c8;
  --sky: #36b4e5;
  --green: #3dae2b;
  --ink: #1d252c;
  --slate: #5b6670;
  --line: #d8e3ea;
  --danger: #b42318;
  --surface: #f3f7fa;
  --card: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 14px rgba(0, 55, 100, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--surface); color: var(--ink); }
.hidden { display: none !important; }
h1, h2, p { margin-top: 0; }
h1, h2 { color: var(--navy); letter-spacing: -0.025em; }
h1 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 6px; }
h2 { font-size: 18px; margin-bottom: 8px; }
.muted { color: var(--slate); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--blue);
  font-size: 11px; font-weight: 800; margin: 0 0 8px;
}
.error { color: var(--danger); min-height: 18px; margin: 0; font-size: 13px; font-weight: 600; }
.auth-success { color: var(--green); min-height: 18px; margin: 0; font-size: 13px; font-weight: 600; }
label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%; min-height: 42px; border: 1px solid #cbd8e0; border-radius: 6px;
  padding: 0 12px; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); background: #fff;
}
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 116, 200, 0.12); }
button {
  min-height: 40px; border: 0; border-radius: 6px; background: var(--blue); color: #fff;
  padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer;
}
button.secondary { background: #e8eef3; color: var(--navy); }
.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  background: #fff;
}
.login-brand-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(145deg, #003764 5%, #07548c 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.login-brand-mark { width: clamp(64px, 18vw, 112px); height: auto; }
.login-brand-watermark {
  display: none;
  position: absolute;
  right: -18%;
  bottom: -24%;
  width: min(46%, 300px);
  opacity: 0.1;
  pointer-events: none;
}
.login-brand-copy { max-width: 18ch; }
.login-brand-panel p {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  color: #9eddf3;
}
.login-brand-panel strong {
  display: block;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.login-card {
  align-self: center;
  width: min(460px, calc(100% - 48px));
  max-height: calc(100dvh - 24px);
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: clamp(24px, 4vw, 48px);
  overflow: auto;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.login-card .muted { margin: 8px 0 0; color: #5b6670; line-height: 1.45; }
.login-card form { display: grid; gap: 18px; margin-top: 28px; min-width: 0; }
.login-card label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; min-width: 0; margin-bottom: 0; }
.login-card input { width: 100%; max-width: 100%; box-sizing: border-box; }
.login-card button.auth-link {
  margin-top: 8px;
  padding: 0;
  min-height: auto;
  background: none;
  color: var(--blue);
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-card button.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.brand-logo { display: block; width: min(190px, 70%); height: auto; margin-bottom: 28px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
aside {
  background: #fff; border-right: 1px solid var(--line); padding: 20px 16px;
  display: flex; flex-direction: column; gap: 20px;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.sidebar-brand img { height: 24px; }
.nav-item {
  width: 100%; text-align: left; background: transparent; color: var(--slate); font-weight: 700;
}
.nav-item.is-active, .nav-item:hover { background: rgba(0, 116, 200, 0.08); color: var(--navy); }
.sidebar-foot { margin-top: auto; display: grid; gap: 6px; }
.who-name { margin: 0; font-weight: 800; color: var(--navy); }
.who-email { margin: 0; font-size: 12px; }
.main-pane { padding: 28px 32px 40px; overflow: auto; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.dashboard { display: grid; gap: 24px; }
.product-section {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  box-shadow: var(--shadow);
}
.product-section h2 { margin-bottom: 4px; }
.metric-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 16px;
}
.metric-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #f8fbfd;
}
.metric-card .label { font-size: 12px; font-weight: 700; color: var(--slate); margin: 0 0 8px; }
.metric-card .value { font-size: 28px; font-weight: 800; color: var(--navy); margin: 0; letter-spacing: -0.03em; }
.metric-card .hint { font-size: 11px; color: var(--slate); margin: 8px 0 0; }
.gauge {
  height: 8px; border-radius: 999px; background: #dfe7ee; overflow: hidden; margin-top: 10px;
}
.gauge > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.empty-state { color: var(--slate); font-size: 14px; margin: 12px 0 0; }
@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    background: #fff;
  }
  .login-brand-panel {
    min-height: 0;
    padding: 24px 20px 20px;
    gap: 16px;
  }
  .login-brand-mark { width: 56px; }
  .login-brand-copy { max-width: none; }
  .login-brand-panel strong { font-size: 28px; }
  .login-card { width: min(460px, calc(100% - 32px)); padding: 28px 12px 40px; }
  .app-shell { grid-template-columns: 1fr; }
  aside { border-right: 0; border-bottom: 1px solid var(--line); }
}
