:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #06162f;
  color: #f7fbff;
  --blue: #208cff;
  --green: #27ed91;
  --orange: #ff7b32;
  --panel: rgba(10, 34, 69, .82);
  --line: rgba(108, 169, 255, .2);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(32, 140, 255, .24), transparent 38%),
    linear-gradient(155deg, #041126, #071b39 55%, #05142c);
}
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: rgba(7, 28, 59, .92); box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.login-mark { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 18px; color: var(--green); background: linear-gradient(145deg, rgba(32,140,255,.22), rgba(39,237,145,.12)); box-shadow: inset 0 0 0 1px rgba(69,166,255,.25); font-size: 1.5rem; }
.login-card h1 { font-size: 1.8rem; }
.login-copy { color: #98b3d3; margin: 10px 0 26px; }
.login-card label { display: block; margin-bottom: 8px; color: #c8ddf5; font-size: .86rem; font-weight: 700; }
.password-field { display: flex; border: 1px solid #294e7d; border-radius: 14px; background: #06162f; overflow: hidden; }
.password-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,140,255,.15); }
.password-field input { width: 100%; min-width: 0; padding: 15px; border: 0; outline: 0; color: white; background: transparent; font: inherit; }
.password-field button { border: 0; background: transparent; padding: 0 15px; }
.login-button { width: 100%; margin-top: 16px; padding: 15px; border: 0; background: linear-gradient(135deg, #137cf0, #209dff); box-shadow: 0 12px 28px rgba(32,140,255,.24); }
.login-card > small { display: block; margin-top: 18px; text-align: center; color: #718dac; }
.login-error { color: #ffc2a3; padding: 10px 12px; border-radius: 10px; background: rgba(154,55,17,.25); }
.shell { width: min(760px, 100%); margin: auto; padding: max(24px, env(safe-area-inset-top)) 20px 30px; }
.topbar { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: #a5c9f5; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(1.1rem, 4vw, 1.6rem); }
.status { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); font-size: .75rem; text-transform: uppercase; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #9eb0c6; box-shadow: 0 0 12px currentColor; }
.status.online { color: var(--green); border-color: rgba(39,237,145,.35); }
.status.online i { background: var(--green); }
.status.offline { color: #ffb088; border-color: rgba(255,123,50,.35); }
.status.offline i { background: var(--orange); }
.hero-card, .metric, .capacity-card {
  border: 1px solid var(--line); border-radius: 24px; background: var(--panel);
  box-shadow: 0 18px 55px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.03);
}
.hero-card { display: grid; justify-items: center; padding: 34px 20px 30px; margin-bottom: 16px; }
.hero-card span, .metric span, .capacity-card span { color: #b7d2f2; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.hero-card strong { font-size: clamp(5.5rem, 28vw, 10rem); line-height: .95; margin: 12px 0; text-shadow: 0 0 30px rgba(32,140,255,.25); }
.hero-card small, .metric small { color: #8ea9c9; }
.people-art { height: 55px; display: flex; align-items: end; justify-content: center; gap: 5px; margin-top: 14px; }
.people-art i { display: block; width: 32px; height: 32px; border-radius: 50% 50% 10px 10px; background: linear-gradient(#1f9dff 0 30%, #0c5eb4 31%); box-shadow: 0 8px 24px rgba(32,140,255,.22); }
.people-art i:nth-child(3) { width: 42px; height: 45px; }
.people-art i:nth-child(1), .people-art i:nth-child(5) { width: 25px; height: 26px; opacity: .65; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric { padding: 24px; overflow: hidden; position: relative; }
.metric::after { content: ""; position: absolute; width: 130px; height: 130px; right: -60px; bottom: -70px; border-radius: 50%; filter: blur(20px); opacity: .25; }
.metric.entry { border-color: rgba(39,237,145,.35); }
.metric.entry::after { background: var(--green); }
.metric.exit { border-color: rgba(255,123,50,.35); }
.metric.exit::after { background: var(--orange); }
.metric strong { display: block; font-size: clamp(2.8rem, 13vw, 5rem); margin: 8px 0 4px; }
.entry small { color: var(--green); } .exit small { color: var(--orange); }
.capacity-card { margin-top: 16px; padding: 22px; }
.capacity-card > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.capacity-card strong { font-size: 1rem; }
.track { height: 12px; margin-top: 15px; background: #18365d; border-radius: 99px; overflow: hidden; }
.track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, var(--blue)); transition: width .45s ease; }
.flow-card { height: 135px; margin-top: 16px; padding: 22px 20px; display: flex; align-items: end; gap: clamp(4px, 1.2vw, 9px); border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.flow-card i { flex: 1; height: var(--h); min-height: 8px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#2bb2ff, #0875e5); box-shadow: 0 0 12px rgba(32,140,255,.15); }
footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 20px; color: #829cbc; font-size: .82rem; }
.footer-actions { display: flex; gap: 8px; }
.logout-button { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #9db4ce; }
button { border: 1px solid rgba(32,140,255,.5); background: rgba(32,140,255,.15); color: white; border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.error { margin-top: 18px; padding: 13px 15px; border-radius: 12px; color: #ffd2bd; background: rgba(143,46,15,.35); border: 1px solid rgba(255,123,50,.3); }
@media (max-width: 480px) {
  .shell { padding-inline: 14px; }
  .metrics { gap: 10px; }
  .metric { padding: 19px 15px; }
  .metric small { font-size: .7rem; }
}
