:root {
  color-scheme: light;
  --ink: #151b1f;
  --ink-soft: #39464d;
  --muted: #68767d;
  --canvas: #e4e8ea;
  --canvas-deep: #d7dde0;
  --card: #f8faf9;
  --card-soft: #edf1f1;
  --line: #cbd3d7;
  --line-strong: #aeb9be;
  --header: #0a0e11;
  --header-raised: #182126;
  --lime: #b8ff2c;
  --lime-deep: #72a900;
  --lime-soft: #efffd5;
  --red: #bd3636;
  --red-soft: #ffeded;
  --shadow: 0 28px 80px rgba(13, 23, 29, .18);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="night"] {
  color-scheme: dark;
  --ink: #f0f5f6;
  --ink-soft: #c5d0d4;
  --muted: #91a0a7;
  --canvas: #0d1316;
  --canvas-deep: #080c0e;
  --card: #151d21;
  --card-soft: #1c252a;
  --line: #2c383e;
  --line-strong: #415057;
  --lime-deep: #a8eb24;
  --lime-soft: #223313;
  --red: #ff7777;
  --red-soft: #341d20;
  --shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body {
  overflow: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}
button, input, select { font: inherit; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  color: #101519;
  background: var(--lime);
  font-weight: 850;
  transform: translateY(-160%);
  transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }

.login-frame {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) 42px;
  overflow: hidden;
}

.login-topbar {
  position: relative;
  z-index: 10;
  color: #f7fafb;
  background:
    radial-gradient(circle at 9% -80%, rgba(184, 255, 44, .28), transparent 35%),
    linear-gradient(115deg, #070a0c 0%, var(--header) 48%, #1b252a 100%);
  border-bottom: 1px solid rgba(184, 255, 44, .34);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}
.login-topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime) 20%, rgba(184, 255, 44, .12) 70%, transparent);
  opacity: .8;
}
.topbar-inner {
  width: min(1580px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 10px clamp(16px, 3vw, 46px);
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr auto;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  width: min(285px, 100%);
  height: 54px;
  align-items: center;
  overflow: hidden;
}
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.topbar-location {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-left: 23px;
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.topbar-location > i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(184, 255, 44, .12), 0 0 18px rgba(184, 255, 44, .7);
}
.topbar-location span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-location small {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: #aebac0;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
}
.utilities { display: flex; align-items: center; gap: 8px; }
.utilities a {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  color: #f7fafb;
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.utilities a:hover { border-color: rgba(184, 255, 44, .6); background: rgba(184, 255, 44, .1); }
.utilities a:active { transform: translateY(1px); }

.login-main {
  position: relative;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(380px, 520px);
  align-items: center;
  gap: clamp(34px, 7vw, 112px);
  padding: clamp(28px, 5vh, 64px) max(28px, calc((100vw - 1480px) / 2));
  background:
    linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px),
    radial-gradient(circle at 18% 35%, rgba(184, 255, 44, .12), transparent 27%),
    var(--canvas);
  background-size: 38px 38px, 38px 38px, auto, auto;
}
.login-main::before {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  right: -210px;
  bottom: -210px;
  border: 58px solid rgba(184, 255, 44, .07);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-panel { max-width: 760px; }
.eyebrow {
  margin: 0 0 9px;
  color: var(--lime-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.welcome-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 74px);
  line-height: .98;
  letter-spacing: -.055em;
}
.welcome-copy .intro {
  max-width: 670px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.55;
}

.department-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: clamp(32px, 5vh, 58px) 0 0;
  padding: 0;
  list-style: none;
}
.department-rail li {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 12px;
}
.department-rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 21px;
  left: 43px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime-deep), var(--line));
}
.department-rail b {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--lime-deep);
  border-radius: 50%;
  color: #101519;
  background: var(--lime);
  box-shadow: 0 0 0 5px var(--canvas);
  font-size: 10px;
}
.department-rail span {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-right: 5px;
  background: var(--canvas);
  font-size: 12px;
  font-weight: 850;
}
.department-rail small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
}

.integrity-banner {
  max-width: 680px;
  margin-top: 31px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid color-mix(in srgb, var(--lime-deep) 35%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--lime-soft) 63%, var(--card));
}
.integrity-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #101519;
  background: var(--lime);
  font-size: 15px;
  font-weight: 900;
}
.integrity-banner strong { font-size: 12px; letter-spacing: .025em; }
.integrity-banner p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

.login-card {
  position: relative;
  width: 100%;
  padding: clamp(27px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--card), var(--card-soft));
  box-shadow: var(--shadow);
}
.login-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -95px;
  right: -95px;
  border: 26px solid rgba(184, 255, 44, .22);
  border-radius: 50%;
  pointer-events: none;
}
.card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--lime), var(--lime-deep), transparent 92%);
}
.card-heading { position: relative; z-index: 1; }
.status-chip {
  min-height: 28px;
  margin-bottom: 22px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--card);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.status-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(184, 255, 44, .14);
}
.card-heading h2 { margin: 0 0 23px; font-size: clamp(26px, 2.5vw, 38px); letter-spacing: -.04em; }

.error-message {
  margin: -7px 0 19px;
  padding: 12px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--red) 45%, var(--line));
  border-left: 4px solid var(--red);
  border-radius: 9px;
  color: var(--ink);
  background: var(--red-soft);
}
.error-message > span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-size: 11px;
  font-weight: 900;
}
.error-message p { margin: 1px 0 0; font-size: 12px; }

.login-card form { display: grid; gap: 16px; }
.field { display: grid; gap: 5px; }
.field > span:first-child { font-size: 12px; font-weight: 850; }
.field > small { color: var(--muted); font-size: 10px; }
.input-wrap { position: relative; display: block; }
.input-wrap > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 30px;
  color: var(--lime-deep);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: center;
  transform: translateY(-50%);
  pointer-events: none;
}
input, select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--card);
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
input { padding: 0 14px 0 52px; }
select { padding: 0 41px 0 14px; cursor: pointer; }
input:hover, select:hover { border-color: color-mix(in srgb, var(--lime-deep) 45%, var(--line-strong)); }
input:focus, select:focus { border-color: var(--lime-deep); box-shadow: 0 0 0 4px rgba(142, 204, 18, .15); background: color-mix(in srgb, var(--card) 92%, var(--lime-soft)); }

.login-button {
  min-height: 53px;
  margin-top: 4px;
  padding: 0 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #8fc813;
  border-radius: 11px;
  color: #101519;
  background: linear-gradient(180deg, #caff62, var(--lime));
  box-shadow: 0 8px 22px rgba(111, 164, 0, .22);
  font-weight: 900;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.login-button b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--lime);
  background: #101519;
  font-size: 17px;
}
.login-button:hover { filter: brightness(1.03); box-shadow: 0 11px 29px rgba(111, 164, 0, .3); transform: translateY(-1px); }
.login-button:active { transform: translateY(1px); }

.demo-guidance {
  margin-top: 22px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card-soft);
}
.demo-guidance strong { display: block; font-size: 11px; letter-spacing: .025em; }
.demo-guidance p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.help-text { margin: 16px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

.login-footer {
  z-index: 4;
  padding: 0 clamp(16px, 3vw, 46px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--card);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.login-footer strong { color: var(--ink-soft); font-size: 10px; }
.login-footer span:last-child { justify-self: end; }

@media (max-width: 1120px) {
  .login-main { grid-template-columns: minmax(0, .9fr) minmax(380px, 500px); gap: 38px; padding-inline: 28px; }
  .welcome-copy h1 { font-size: clamp(37px, 5.4vw, 58px); }
  .department-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 0; }
  .department-rail li:nth-child(3)::after { display: none; }
}

@media (max-width: 840px) {
  body { overflow: auto; }
  .login-frame { min-height: 100vh; min-height: 100dvh; height: auto; grid-template-rows: auto auto auto; }
  .login-topbar { min-height: 72px; }
  .topbar-inner { grid-template-columns: minmax(180px, 1fr) auto; gap: 16px; }
  .topbar-location { display: none; }
  .brand { height: 48px; }
  .login-main { min-height: 0; grid-template-columns: 1fr; align-items: start; gap: 28px; padding: 32px clamp(16px, 5vw, 36px) 40px; overflow: visible; }
  .welcome-panel { max-width: none; }
  .welcome-copy h1 { max-width: 650px; font-size: clamp(34px, 8vw, 58px); }
  .welcome-copy .intro { font-size: 16px; }
  .department-rail { margin-top: 28px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .department-rail li { display: block; padding-right: 8px; }
  .department-rail li:not(:last-child)::after { top: 20px; left: 38px; right: 2px; display: block; }
  .department-rail b { width: 40px; height: 40px; margin-bottom: 8px; box-shadow: 0 0 0 4px var(--canvas); }
  .department-rail span { display: block; padding: 0 4px 0 0; background: transparent; font-size: 10px; }
  .department-rail small { display: none; }
  .integrity-banner { margin-top: 24px; }
  .login-card { width: min(560px, 100%); margin: 0 auto; }
  .login-footer { min-height: 46px; grid-template-columns: 1fr auto; }
  .login-footer span:nth-child(2) { display: none; }
}

@media (max-width: 520px) {
  .topbar-inner { padding-inline: 13px; }
  .brand { width: 190px; }
  .utilities { gap: 5px; }
  .utilities a { min-width: 42px; min-height: 42px; padding-inline: 10px; }
  .utilities a:last-child span { display: none; }
  .login-main { padding: 25px 12px 30px; }
  .welcome-panel { padding-inline: 5px; }
  .welcome-copy h1 { font-size: clamp(32px, 10.5vw, 45px); }
  .welcome-copy .intro { margin-top: 13px; font-size: 14px; }
  .department-rail { margin-top: 23px; }
  .department-rail li:not(:last-child)::after { left: 35px; }
  .department-rail b { width: 37px; height: 37px; font-size: 9px; }
  .department-rail span { font-size: 9px; }
  .integrity-banner { padding: 13px; }
  .integrity-banner p { font-size: 10px; }
  .login-card { padding: 27px 20px 24px; border-radius: 15px; }
  .card-heading h2 { font-size: 29px; }
  input, select { min-height: 52px; font-size: 16px; }
  .login-button { min-height: 54px; }
  .login-footer { padding-inline: 13px; }
  .login-footer span:last-child { font-size: 8px; }
}

@media (max-height: 760px) and (min-width: 841px) {
  .login-main { align-items: start; padding-top: 28px; padding-bottom: 28px; }
  .welcome-copy h1 { font-size: clamp(38px, 4.5vw, 62px); }
  .department-rail { margin-top: 30px; }
  .integrity-banner { margin-top: 22px; }
  .login-card { padding-block: 27px; }
  .status-chip { margin-bottom: 15px; }
  .card-heading h2 { margin-bottom: 17px; }
  .login-card form { gap: 12px; }
  .demo-guidance { margin-top: 16px; }
  .help-text { margin-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .utilities { display: none; }
  .login-frame { height: auto; display: block; }
  .login-main { display: block; padding: 28px; background: white; }
  .welcome-panel { margin: 0 auto 24px; }
  .login-card { margin: 0 auto; box-shadow: none; }
  .login-footer { display: none; }
}
