/* Sign-in page – same look as the software: graphite, hi-vis yellow, concrete, Barlow */
:root {
  --concrete: #E7E9E4; --panel: #FBFBF8; --line: #D3D6CF; --line-soft: #E4E6E0;
  --graphite: #1F2A31; --graphite-2: #2C3942; --ink: #1B2328; --muted: #5F6B70; --faint: #8A949A;
  --hivis: #F2C200; --hivis-ink: #5A4800; --alert: #C21F32; --alert-bg: #FBE8EA; --ok: #2E7D4F; --ok-bg: #E5F2EA;
  --info: #1E5BA8;
  --sans: "Barlow", "Segoe UI", system-ui, sans-serif; --cond: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); font-size: 15px; color: var(--ink); background: var(--concrete); }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }
.login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* ---- left: graphite panel with hazard stripes and a preview of the dashboard */
.art { position: relative; overflow: hidden; background: var(--graphite); display: flex; align-items: center; justify-content: flex-end; padding: 60px 0 60px 56px; }
.stripe { position: absolute; width: 84px; height: 440px; border-radius: 10px; transform: rotate(38deg);
  background: repeating-linear-gradient(45deg, rgba(242, 194, 0, .9) 0 18px, rgba(31, 42, 49, .9) 18px 36px); opacity: .22; }
.s1 { top: -190px; right: 230px; } .s2 { top: -170px; right: 60px; opacity: .14; }
.s3 { bottom: -250px; left: 20px; opacity: .14; } .s4 { bottom: -230px; left: 180px; }
.preview { position: relative; z-index: 1; width: min(100%, 660px); background: var(--concrete); border-radius: 8px 0 0 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); display: flex; overflow: hidden; border: 1px solid #3A4852; border-right: 0; }
.pv-side { width: 46px; background: var(--graphite); display: flex; flex-direction: column; align-items: center; gap: 15px; padding-top: 14px; border-right: 1px solid var(--graphite-2); }
.pv-logo { width: 30px; height: 30px; margin-bottom: 8px; display: block; } .pv-logo img { width: 100%; height: 100%; border-radius: 6px; display: block; }
.pv-side i { width: 22px; height: 4px; border-radius: 2px; background: #5D6C75; }
.pv-side i.on { background: var(--hivis); }
.pv-main { flex: 1; padding: 16px 16px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pv-hello b { display: block; font-family: var(--cond); font-weight: 700; font-size: 22px; color: var(--ink); line-height: 1.1; }
.pv-hello span { font-size: 11.5px; color: var(--muted); }
.pv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.pv-kpis div { padding: 9px 10px; border-right: 1px solid var(--line-soft); }
.pv-kpis div:last-child { border-right: 0; }
.pv-kpis span { display: block; font-size: 10px; color: var(--muted); order: 2; }
.pv-kpis b { display: block; font-family: var(--cond); font-weight: 700; font-size: 24px; line-height: 1.05; }
.pv-kpis b.w { color: var(--alert); }
.pv-kpis em { display: flex; gap: 4px; font-style: normal; margin-top: 4px; }
.pv-kpis em u, .pv-kpis em s { text-decoration: none; font-size: 8.5px; padding: 1px 4px; border-radius: 3px; font-weight: 600; }
.pv-kpis em u { background: var(--ok-bg); color: var(--ok); } .pv-kpis em s { background: var(--alert-bg); color: var(--alert); }
.pv-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.pv-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; }
.pv-card > span { display: block; font-family: var(--cond); font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.donut { width: 78px; height: 78px; margin: 4px auto 0; border-radius: 50%; background: conic-gradient(var(--hivis) 0 72%, #DADDD6 72% 100%); display: grid; place-items: center; }
.donut b { width: 52px; height: 52px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-family: var(--cond); font-size: 16px; }
.pv-trend svg { width: 100%; height: 86px; }
.pv-trend polyline { fill: none; stroke: var(--graphite); stroke-width: 2.2; }
.pv-trend polyline.b { stroke: var(--alert); stroke-width: 1.6; }
.pv-heat .grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.pv-heat i { height: 18px; border-radius: 3px; }
.l1 { background: #E4E6E0; } .l2 { background: #F7E08A; } .l3 { background: #F2C200; } .l4 { background: #C21F32; }

/* ---- right: the sign-in form on a panel */
.side { display: flex; flex-direction: column; align-items: center; padding: 26px 24px 22px; background: var(--panel); border-left: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--cond); font-size: 26px; font-weight: 700; letter-spacing: .3px; color: var(--ink); }
.brand .logo { width: 220px; max-width: 70vw; height: auto; display: block; }
.box { width: 100%; max-width: 420px; margin: auto 0; padding: 30px 0; }
h1 { margin: 0; text-align: center; font-family: var(--cond); font-weight: 700; font-size: 34px; color: var(--ink); }
.welcome { margin: 2px 0 2px; text-align: center; font-family: var(--cond); font-weight: 600; font-size: 19px; color: var(--hivis-ink); }
.sub { margin: 4px 0 20px; text-align: center; color: var(--muted); font-size: 14px; }
label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin: 14px 0 5px; }
input { width: 100%; height: 40px; border: 1px solid #BFC4BC; border-radius: 4px; padding: 0 11px; font: inherit; color: var(--ink); background: #fff; }
input:focus { outline: 3px solid var(--hivis); outline-offset: 0; border-color: #D8AD00; }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; cursor: pointer; border-radius: 4px;
  background-repeat: no-repeat; background-position: center; background-size: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6B70' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); }
.eye.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2328' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.link { margin: 12px 0 0; padding: 0; border: 0; background: none; color: var(--info); font: inherit; font-size: 14px; cursor: pointer; }
.link:hover { text-decoration: underline; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.hint code { background: var(--concrete); padding: 1px 5px; border-radius: 3px; }
.err { margin-top: 14px; padding: 9px 12px; border-radius: 4px; background: var(--alert-bg); color: var(--alert); font-size: 14px; border-left: 4px solid var(--alert); }
.go { display: block; width: 100%; height: 44px; margin-top: 18px; border: 1px solid #D8AD00; border-radius: 4px; background: var(--hivis); color: #2B2300; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.go:hover { background: #FFD21F; }
.go:disabled { opacity: .7; cursor: wait; }
.foot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; letter-spacing: .3px; }
.foot .hz { width: 34px; height: 8px; border-radius: 2px; background: repeating-linear-gradient(45deg, var(--hivis) 0 6px, var(--graphite) 6px 12px); }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .art { display: none; }
  .side { min-height: 100vh; padding: 22px 16px; border-left: 0; }
}
