/* Shared JHS/Zhuangmu login: base inheritance and original login layer. */
:root {
  --ink: #332c2b;
  --ink-soft: #4f4745;
  --muted: #706866;
  --line: #e2dedc;
  --line-strong: #cbc4c1;
  --canvas: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --nav: #00554b;
  --nav-soft: #0b685d;
  --copper: #f08519;
  --copper-soft: #fff0e2;
  --blue: #00554b;
  --blue-soft: #e5f0ee;
  --cyan: #7c6fb0;
  --cyan-soft: #efedf7;
  --green: #009b4c;
  --amber: #f08519;
  --amber-soft: #fff0e2;
  --purple: #7c6fb0;
  --focus: rgba(0, 85, 75, 0.28);
  --shadow-sm: 0 2px 6px rgba(51, 44, 43, 0.08);
  --shell-sidebar-width: 248px;
  --shell-sidebar-compact-width: 76px;
  --shell-header-height: 62px;
  --shell-content-gutter: 28px;
  --control-radius: 8px;
  --touch-target: 44px;
  --motion-fast: 180ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 10;
  --z-drawer-backdrop: 20;
  --z-drawer: 30;
  --z-assistant: 40;
  --z-assistant-panel: 50;
  --z-auth: 60;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 85, 75, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 85, 75, 0.035) 1px, transparent 1px),
    var(--canvas);
  background-size: 72px 72px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }
button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.auth-pending,
body.auth-locked {
  min-width: 0;
  overflow: hidden;
}

body.sidebar-menu-open { overflow: hidden; }

.login-screen {
  position: fixed;
  z-index: var(--z-auth);
  inset: 0;
  width: 100%;
  min-height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #f5fbf9;
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 163, 90, 0.22), transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(240, 133, 25, 0.18), transparent 28%),
    linear-gradient(135deg, #003f38 0%, #00554b 56%, #043c37 100%);
}

.login-screen::before {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to right, #000, transparent 78%);
}

.login-orbit {
  position: fixed;
  border: 1px solid rgba(140, 222, 201, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.login-orbit::after {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  background: var(--copper);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(240, 133, 25, 0.75);
  content: "";
}

.login-orbit-one { right: -220px; bottom: -300px; width: 720px; height: 720px; transform: rotate(-18deg); }
.login-orbit-two { right: -90px; bottom: -170px; width: 460px; height: 460px; transform: rotate(28deg); }

.login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: clamp(50px, 8vw, 130px);
  width: min(1180px, calc(100% - 64px));
  min-height: 100%;
  margin: 0 auto;
  padding: 54px 0;
  align-items: center;
}

.login-story { min-width: 0; }

.login-brand-panel {
  display: grid;
  width: 276px;
  min-height: 82px;
  margin-bottom: clamp(50px, 8vh, 90px);
  padding: 10px 14px;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 26, 23, 0.22);
}

.login-brand-panel img { display: block; width: 100%; height: auto; }

.login-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #9bcac0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.login-kicker span { width: 34px; height: 2px; background: var(--copper); }

.login-story h1 {
  margin-bottom: 22px;
  color: #fff;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(48px, 5.1vw, 72px);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.login-story h1 em { color: #f49a3f; font-style: normal; }
.login-story > p { max-width: 610px; margin-bottom: 32px; color: #b9d7d1; font-size: 15px; line-height: 1.9; }

.login-energy-map {
  position: relative;
  max-width: 640px;
  height: 164px;
  margin-top: 12px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.energy-map-label { position: absolute; z-index: 1; top: 15px; left: 0; display: flex; gap: 10px; align-items: baseline; }
.energy-map-label span { color: #87bdb2; font-size: 9px; letter-spacing: 0.18em; }
.energy-map-label b { color: #e8f5f1; font-size: 12px; }
.login-energy-map svg { width: 100%; height: 100%; overflow: visible; }
.login-energy-map path { fill: none; stroke-linecap: round; }
.energy-flow-base { stroke: rgba(255, 255, 255, 0.1); stroke-width: 8; }
.energy-flow-live { stroke: url(#loginFlowGradient); stroke-width: 3; stroke-dasharray: 12 10; animation: login-flow 12s linear infinite; }
.login-energy-map circle { fill: #00554b; stroke: #8fdccb; stroke-width: 3; }

.login-station-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
  margin-top: 24px;
}

.login-station-facts div { min-width: 0; padding-right: 18px; }
.login-station-facts div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.login-station-facts span { display: block; margin-bottom: 7px; color: #7fb2a8; font-size: 10px; }
.login-station-facts strong { display: block; overflow: hidden; color: #f3faf8; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.login-panel {
  padding: 34px 36px 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 34px 80px rgba(0, 25, 22, 0.34);
  backdrop-filter: blur(18px);
}

.login-panel-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.login-panel-meta > span { color: var(--nav); }
.login-panel-meta b { display: flex; gap: 7px; align-items: center; color: #378064; font-weight: 600; letter-spacing: 0; }
.login-panel-meta i { width: 7px; height: 7px; background: #31ad70; border-radius: 50%; box-shadow: 0 0 0 5px rgba(49, 173, 112, 0.1); }
.login-panel h2 { margin-bottom: 8px; font-size: 25px; letter-spacing: -0.03em; }
.login-panel > p { margin-bottom: 24px; color: var(--muted); font-size: 12px; }

.login-role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 25px;
  padding: 5px;
  background: #edf3f1;
  border-radius: 12px;
}

.login-role-button {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 12px 11px;
  align-items: center;
  color: #65706d;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.login-role-button .icon { flex: 0 0 auto; width: 20px; height: 20px; }
.login-role-button span { min-width: 0; }
.login-role-button strong, .login-role-button small { display: block; }
.login-role-button strong { margin-bottom: 3px; font-size: 12px; }
.login-role-button small { overflow: hidden; font-size: 9px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.login-role-button.is-active { color: var(--nav); background: #fff; box-shadow: 0 3px 10px rgba(32, 65, 58, 0.1); }
.login-role-button[data-login-role="admin"].is-active .icon { color: var(--copper); }
.login-role-button[data-login-role="authorized"].is-active .icon { color: var(--green); }

.login-form { display: grid; gap: 17px; }
.login-screen.is-demo-login .login-field { display: none; }
.login-screen.is-demo-login .login-form { gap: 12px; }
.login-field > span { display: block; margin-bottom: 8px; color: #5d5755; font-size: 11px; font-weight: 700; }
.login-field > div { display: flex; min-height: 50px; align-items: center; color: #8a9491; background: #fafcfb; border: 1px solid #d8e1df; border-radius: 10px; transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.login-field > div:focus-within { color: var(--nav); background: #fff; border-color: #73a69b; box-shadow: 0 0 0 4px rgba(0, 85, 75, 0.1); }
.login-field > div > .icon { flex: 0 0 auto; width: 17px; height: 17px; margin-left: 15px; }
.login-field input { width: 100%; min-width: 0; padding: 14px 12px; color: var(--ink); font: inherit; font-size: 13px; background: transparent; border: 0; outline: 0; }
.login-field input::placeholder { color: #a4aba9; }
.login-field button { display: grid; flex: 0 0 auto; width: var(--touch-target); height: var(--touch-target); margin-right: 3px; place-items: center; color: #87918e; background: transparent; border: 0; border-radius: var(--control-radius); cursor: pointer; }
.login-field button:hover { color: var(--nav); background: #edf4f2; }

.login-feedback { margin: -5px 0 0; padding: 9px 11px; color: #a12d2d; font-size: 11px; line-height: 1.5; background: #fff1ef; border: 1px solid #f3d0cb; border-radius: 8px; }
.login-feedback.is-working { color: #34665c; background: #edf7f4; border-color: #c8e3dc; }
.login-feedback.is-success { color: #157344; background: #ecf8f1; border-color: #bfe5ce; }

.login-submit {
  display: flex;
  min-height: 52px;
  margin-top: 2px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--nav);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 85, 75, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.login-submit:hover { background: #06483f; box-shadow: 0 15px 28px rgba(0, 85, 75, 0.26); transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: 0.68; transform: none; }
.login-submit .icon { width: 18px; height: 18px; transform: rotate(180deg); }

.login-permission-note { display: flex; gap: 11px; margin-top: 20px; padding: 13px; color: #5d6966; background: #f4f7f6; border-left: 3px solid var(--copper); border-radius: 3px 9px 9px 3px; }
.login-permission-note > .icon { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; color: var(--copper); }
.login-permission-note strong, .login-permission-note span { display: block; }
.login-permission-note strong { margin-bottom: 3px; color: var(--ink-soft); font-size: 11px; }
.login-permission-note span { font-size: 9px; line-height: 1.6; }
.login-panel footer { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; color: #9a9f9e; font-size: 9px; border-top: 1px solid #e5e9e8; }
.login-panel footer b { color: #66716e; }

@keyframes login-flow { to { stroke-dashoffset: -176; } }

.login-screen { font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.login-panel { border-radius: 14px; box-shadow: 0 0 8px rgba(0, 25, 22, .28); }
.login-panel h2 { color: #143b37; font-size: 24px; font-weight: 800; }
.login-panel > p { color: #506d68; font-size: 12px; }
.login-role-button strong { font-size: 13px; }
.login-role-button small { font-size: 10px; }
.login-field > span { color: #365a55; font-size: 12px; }
.login-field input { font-size: 14px; }
.login-field input::placeholder { color: #687f7b; }
.login-submit { box-shadow: 0 0 8px rgba(0, 85, 75, .2); font-size: 14px; font-weight: 800; }
.login-submit:hover { box-shadow: 0 0 8px rgba(0, 85, 75, .28); }
.login-permission-note { color: #506d68; background: #f1f7f5; border: 1px solid #d4e5e1; border-radius: 9px; }
.login-permission-note strong { color: #284c47; font-size: 12px; }
.login-permission-note span,
.login-panel footer { font-size: 10px; }
.login-screen {font-family:"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;}
/* Login layout follows the Changfeng Zhuangmu station's shared visual system.
 * Scope every rule to the login screen; dashboard presentation is unchanged. */
#loginScreen {
  --login-gap: clamp(14px, 1.45vw, 26px);
  --login-radius: 18px;
  --focus: rgba(25, 139, 119, .55);
  isolation: isolate;
  display: grid;
  grid-template: auto / minmax(0, 1fr);
  min-height: 0;
  height: 100svh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  color: #f0fcf9;
  color-scheme: light;
  background:
    linear-gradient(115deg, rgba(0, 32, 31, .23), transparent 67%, rgba(0, 43, 40, .14)),
    radial-gradient(ellipse at 12% 90%, #005a52 0%, #003b38 68%);
}
#loginScreen::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 35%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(73, 239, 215, .36) .7px, transparent 1.2px) 1px 1px / 16px 16px;
  mask-image: radial-gradient(ellipse at 0% 0%, #000, transparent 63%);
  content: "";
}
#loginScreen .login-energy {
  position: relative;
  z-index: -1;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}
#loginScreen .login-energy canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#loginScreen .login-shell {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  grid-template-areas: "brand brand" "model panel" "flow flow";
  grid-template-columns: minmax(0, 1.6fr) minmax(22rem, 1fr);
  gap: var(--login-gap);
  align-content: safe center;
  width: min(112rem, 100% - clamp(24px, 3.6vw, 72px));
  margin-inline: auto;
  padding-block: max(clamp(16px, 3vh, 40px), env(safe-area-inset-top)) max(clamp(16px, 3vh, 40px), env(safe-area-inset-bottom));
}
#loginScreen .login-masthead {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 20px);
  padding-bottom: clamp(12px, 1.25vw, 22px);
  border-bottom: 1px solid rgba(171, 235, 221, .26);
}
#loginScreen .login-project-mark {
  display: block;
  flex: none;
  width: clamp(52px, 5vw, 82px);
  aspect-ratio: 1;
  background: #fff url("/assets/nanguo-hot-cold-logo.png") center / 78% auto no-repeat;
  border-radius: 12px;
}
#loginScreen .login-project-title {
  min-width: 0;
  margin: 0;
  color: #f0fcf9;
  font-size: clamp(2.125rem, 3.05vw, 3.625rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-wrap: initial;
}
#loginScreen .login-project-title span { display: inline-block; max-width: 100%; }
#loginScreen .login-plant-room {
  grid-area: model;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  background: rgba(20, 46, 50, .82);
  border: 1px solid rgba(165, 225, 215, .32);
  border-radius: var(--login-radius);
}
#loginScreen .login-plant-room img { display: block; position: relative; width: 100%; height: auto; }
@media (min-width: 901px) {
  #loginScreen .login-plant-room {
    background: linear-gradient(180deg, transparent 35%, rgba(60, 117, 120, .52)),
      radial-gradient(ellipse at 23% 32%, #175456, #062d30 60%, #031a1c);
  }
  #loginScreen .login-plant-room img {
    mask-image: linear-gradient(transparent, #000 10%, #000 94%, transparent);
  }
}
#loginScreen .login-flow {
  grid-area: flow;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: clamp(14px, 1.4vw, 26px) 0;
  background: linear-gradient(115deg, rgba(30, 111, 99, .42), rgba(1, 49, 47, .55));
  border: 1px solid rgba(155, 226, 211, .25);
  border-radius: var(--login-radius);
  list-style: none;
}
#loginScreen .login-flow li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1vw, 16px);
  padding: 3px 6px;
  text-align: center;
}
#loginScreen .login-flow li + li { border-inline-start: 1px solid rgba(155, 226, 211, .22); }
#loginScreen .login-flow .icon { flex: none; width: clamp(28px, 3vw, 49px); height: clamp(28px, 3vw, 49px); color: #9fffe9; stroke-width: 1.55; }
#loginScreen .login-flow span { font-size: clamp(.8125rem, 1.38vw, 1.4rem); font-weight: 650; line-height: 1.4; word-break: keep-all; }
#loginScreen .login-panel {
  grid-area: panel;
  display: flex;
  min-width: 0;
  width: auto;
  margin: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 2.2vw, 36px);
  color: #10302d;
  background: linear-gradient(145deg, #f7fcfa 25%, #e5f4ef);
  border: 1px solid rgba(225, 255, 250, .95);
  border-radius: var(--login-radius);
  box-shadow: 0 12px 36px rgba(0, 24, 23, .19);
}
#loginScreen .login-panel-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(16px, 2vh, 24px); padding-bottom: 14px; border-bottom: 1px solid #d4e6df; }
#loginScreen .login-logo { display: inline-flex; flex: none; align-items: center; gap: 5px; color: #024c42; font-size: clamp(1.125rem, 1.55vw, 1.45rem); font-weight: 800; line-height: 1; white-space: nowrap; }
#loginScreen .login-cloud-mark { display: block; width: clamp(34px, 2.8vw, 44px); aspect-ratio: 1; background: url("/assets/nanguo-hot-cold-logo.png") center / contain no-repeat; mix-blend-mode: multiply; }
#loginScreen .login-panel-head { display: inline-flex; align-items: center; gap: 9px; padding: 4px 9px; color: #425f5a; background: rgba(240, 251, 247, .69); border-radius: 100px; font-size: clamp(.8125rem, 1.02vw, 1rem); font-weight: 700; }
#loginScreen .service-dot { flex: 0 0 9px; width: 9px; height: 9px; background: #a77519; border-radius: 50%; }
#loginScreen[data-service="ready"] .login-panel-head { color: #285e52; background: rgba(201, 248, 231, .65); }
#loginScreen[data-service="ready"] .service-dot { background: #169752; box-shadow: 0 0 0 3px rgba(26, 159, 96, .14); }
#loginScreen[data-service="unavailable"] .login-panel-head { color: #8a3c33; background: #fff0ed; }
#loginScreen[data-service="unavailable"] .service-dot { background: #bf443d; }
#loginScreen .login-panel h2 { margin: 0 0 clamp(14px, 2vh, 20px); color: #112b28; font-size: clamp(1.625rem, 2.45vw, 2.85rem); font-weight: 820; line-height: 1.24; letter-spacing: -.026em; }
#loginScreen .login-role-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 clamp(17px, 2.7vh, 27px); padding: 0; background: none; border: 0; border-radius: 0; }
#loginScreen .login-role-button {
  display: flex;
  min-width: 0;
  min-height: clamp(52px, 3.9vw, 66px);
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1vw, 13px);
  padding: 9px clamp(8px, 1vw, 16px);
  color: #365451;
  text-align: left;
  background: rgba(109, 174, 168, .12);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
#loginScreen .login-role-button:hover:not(:disabled) { background: rgba(246, 255, 253, .9); }
#loginScreen .login-role-button.is-active { color: #00584b; background: #f2fffc; border-color: #179985; box-shadow: 0 5px 15px rgba(29, 170, 145, .15); }
#loginScreen .login-role-button:disabled { cursor: not-allowed; opacity: .65; }
#loginScreen .login-role-button .icon { flex: none; width: clamp(19px, 1.8vw, 26px); height: clamp(19px, 1.8vw, 26px); color: #51746e; }
#loginScreen .login-role-button.is-active .icon { color: #077d6b; }
#loginScreen .login-role-button span { min-width: 0; font-size: clamp(1rem, 1.38vw, 1.45rem); font-weight: 760; line-height: 1.3; }
#loginScreen .login-form, #loginScreen .login-credentials { display: grid; gap: clamp(13px, 1.8vh, 18px); }
#loginScreen .login-field label { display: block; margin-bottom: 7px; color: #1d3c38; font-size: clamp(1rem, 1.18vw, 1.25rem); font-weight: 750; }
#loginScreen .login-input { display: flex; min-height: clamp(48px, 3.7vw, 60px); align-items: center; padding-inline-start: 12px; background: #fbfefd; border: 1px solid #bdd5cc; border-radius: 10px; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
#loginScreen .login-input:focus-within { background: #f9fffe; border-color: #188e7f; box-shadow: 0 0 0 3px rgba(32, 166, 148, .15); }
#loginScreen .login-input .icon { flex: none; width: 18px; height: 18px; margin-left: 0; color: #537470; }
#loginScreen .login-field input { flex: 1; width: 100%; min-width: 0; height: 44px; padding: 0 10px; color: #143631; background: transparent; border: 0; outline: 0; font-size: clamp(1rem, 1.2vw, 1.25rem); }
#loginScreen .login-field input::placeholder { color: #5e7774; }
#loginScreen .login-password-toggle { display: grid; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; place-items: center; color: #4e716b; background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
#loginScreen .login-password-toggle:hover:not(:disabled) { background: rgba(37, 153, 136, .10); }
#loginScreen .login-password-toggle:disabled { cursor: not-allowed; opacity: .6; }
#loginScreen .login-password-toggle:focus-visible { outline-offset: -3px; }
#loginScreen .login-feedback { margin: 0; padding: 9px 11px; color: #922b27; background: #fff0ed; border: 0; border-radius: 8px; font-size: .9rem; }
#loginScreen .login-feedback.is-working { color: #34665c; background: #edf7f4; }
#loginScreen .login-feedback.is-success { color: #157344; background: #ecf8f1; }
#loginScreen .login-submit {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: clamp(54px, 4.1vw, 70px);
  margin-top: 2px;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(105deg, #087866, #005448);
  border: 1px solid #066757;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 86, 74, .14);
  font-size: clamp(1.0625rem, 1.5vw, 1.55rem);
  font-weight: 760;
}
#loginScreen .login-submit:hover:not(:disabled) { background: #005c4f; transform: none; }
#loginScreen .login-submit:disabled { cursor: progress; opacity: .5; }
#loginScreen .login-submit span { grid-column: 2; }
#loginScreen .login-submit .icon { grid-column: 3; justify-self: end; width: 21px; height: 21px; transform: none; }
#loginScreen.is-demo-login .login-credentials { display: none; }
#loginScreen button:focus-visible { outline: 3px solid #168e79; outline-offset: 3px; }
#loginScreen .login-field input:focus-visible { outline: none; }

@media (max-width: 900px) {
  #loginScreen .login-shell { grid-template-areas: "brand" "panel" "model" "flow"; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; width: min(52rem, 100% - clamp(18px, 3vw, 28px)); padding-block: max(16px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-bottom)); }
  #loginScreen .login-project-title { font-size: clamp(1.25rem, 6.2vw, 2.05rem); }
  #loginScreen .login-panel { padding: 24px clamp(16px, 4.3vw, 30px) 20px; }
  #loginScreen .login-plant-room { aspect-ratio: 16 / 9; }
  #loginScreen .login-flow li { flex-direction: column; gap: 7px; }
}
@media (max-width: 560px) {
  #loginScreen { --login-radius: 14px; }
  #loginScreen .login-masthead { gap: 10px; padding-bottom: 16px; }
  #loginScreen .login-project-mark { width: 44px; border-radius: 9px; }
  #loginScreen .login-panel-top { margin-bottom: 14px; padding-bottom: 10px; }
  #loginScreen .login-flow li { padding-inline: 3px; }
  #loginScreen .login-panel h2 { font-size: clamp(1.45rem, 6.2vw, 1.8rem); }
  #loginScreen .login-role-switch { gap: 8px; }
  #loginScreen .login-role-button { padding-inline: 7px; }
}
@media (max-width:720px) { :where(input,select,textarea,button) {max-width:100%} }
@media (prefers-reduced-motion: reduce) {
  #loginScreen *, #loginScreen *::before, #loginScreen *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
