:root {
  color-scheme: light;
  --canvas: #eef1f4;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --ink: #17212b;
  --ink-soft: #5f6b76;
  --ink-faint: #7d8994;
  --line: #d8dee4;
  --line-strong: #bac5cf;
  --brand: #c94438;
  --primary: #295f87;
  --primary-hover: #204f72;
  --primary-soft: #e9f1f6;
  --danger: #a9362e;
  --danger-soft: #fbecea;
  --focus: rgba(41, 95, 135, .28);
  font-family: "Segoe UI Variable", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

button, input { color: inherit; font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(480px, .95fr);
  min-height: 100dvh;
}

.product-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  background: #142736;
  color: #f5f8fa;
}

.product-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: min(100%, 650px);
  margin: 0 auto;
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand > span:last-child,
.mobile-brand > span:last-child { display: grid; gap: 1px; }
.brand strong,
.mobile-brand strong { font-size: 17px; line-height: 1.2; }
.brand small,
.mobile-brand small { color: #aab8c2; font-size: 12px; }

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 3px;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  border-radius: 8px;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}

.brand-mark span { display: block; border-radius: 2px; background: white; }
.brand-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2) { height: 19px; }
.brand-mark span:nth-child(3) { height: 15px; }

.product-copy { margin: auto 0 48px; max-width: 610px; }
.eyebrow {
  margin: 0 0 18px;
  color: #8fb3cc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}
.product-copy h1 {
  max-width: 570px;
  margin: 0 0 20px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.product-copy > p:last-child {
  max-width: 560px;
  margin: 0;
  color: #b6c4ce;
  font-size: 17px;
  line-height: 1.75;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.capability-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  min-height: 104px;
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}
.capability-list svg,
.secure-badge svg,
.login-help svg,
.login-button svg,
.password-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.capability-list svg { width: 24px; height: 24px; color: #91b7d0; }
.capability-list span { display: grid; align-content: start; gap: 6px; min-width: 0; }
.capability-list strong { font-size: 14px; }
.capability-list small { color: #aebbc4; font-size: 12px; line-height: 1.5; }
.product-footnote { position: relative; z-index: 1; margin: 32px auto 0; width: min(100%, 650px); color: #8797a3; font-size: 12px; }

.form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 48px clamp(28px, 6vw, 96px) 32px;
  background: var(--surface-soft);
}

.login-card { width: min(100%, 440px); }
.mobile-brand { display: none; margin-bottom: 48px; color: var(--ink); }
.mobile-brand small { color: var(--ink-faint); }

.form-heading { margin-bottom: 32px; }
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #356a52;
  font-size: 12px;
  font-weight: 650;
}
.secure-badge svg { width: 16px; height: 16px; }
.form-heading h2 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; letter-spacing: -.025em; }
.form-heading p { margin: 0; color: var(--ink-soft); font-size: 15px; }

#loginForm { display: grid; gap: 20px; }
.remember-setting { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.remember-setting input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); flex: 0 0 auto; }
.remember-setting span { display: grid; gap: 2px; }
.remember-setting strong { font-size: 14px; font-weight: 600; }
.remember-setting small { font-size: 12px; color: var(--ink-soft); }
.login-notice { margin: 0; padding: 12px 14px; border-radius: 6px; background: #e8f3ed; color: #24533e; font-size: 14px; }
.login-notice[hidden] { display: none; }
.field { display: grid; gap: 8px; color: #34414d; font-size: 14px; font-weight: 650; }
.field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 14px;
  font-size: 16px;
  font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:hover { border-color: #91a0ad; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(169,54,46,.13); }

.password-field { position: relative; display: block; }
.password-field input { padding-right: 52px; }
.password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.password-toggle:hover { background: var(--surface-soft); color: var(--ink); }
.password-toggle svg { width: 21px; height: 21px; }
.password-toggle .eye-off { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-off { display: block; }

.form-error {
  padding: 12px 14px;
  border-left: 3px solid var(--danger);
  border-radius: 6px;
  background: var(--danger-soft);
  color: #7e2822;
  font-size: 14px;
  line-height: 1.5;
}
.form-error[hidden] { display: none; }

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(41,95,135,.18);
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.login-button:hover { border-color: var(--primary-hover); background: var(--primary-hover); box-shadow: 0 10px 22px rgba(41,95,135,.24); }
.login-button:active { box-shadow: 0 4px 12px rgba(41,95,135,.18); }
.login-button:disabled { cursor: wait; opacity: .68; box-shadow: none; }
.login-button svg { width: 20px; height: 20px; }
.login-button.is-loading svg { animation: login-spin 800ms linear infinite; }

.login-help {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12px;
}
.login-help svg { width: 18px; height: 18px; margin-top: 1px; }
.form-footnote { width: min(100%, 440px); margin: 48px 0 0; color: var(--ink-faint); font-size: 12px; text-align: center; }

@keyframes login-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .login-shell { grid-template-columns: minmax(300px, .8fr) minmax(430px, 1.2fr); }
  .product-panel { padding: 40px; }
  .product-copy h1 { font-size: 38px; }
  .capability-list { grid-template-columns: 1fr; }
  .capability-list li { min-height: auto; }
  .capability-list li:nth-child(n+3) { display: none; }
}

@media (max-width: 767px) {
  .login-shell { display: block; min-height: 100dvh; background: var(--surface-soft); }
  .product-panel { display: none; }
  .form-panel { justify-content: flex-start; min-height: 100dvh; padding: 32px 24px 24px; }
  .mobile-brand { display: inline-flex; }
  .form-heading h2 { font-size: 28px; }
  .form-footnote { margin-top: auto; padding-top: 48px; }
}

@media (max-width: 374px) {
  .form-panel { padding-inline: 18px; }
  .mobile-brand { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
