:root {
  color-scheme: light;
  color: #1c201f;
  background: #f8f7f4;
  font: 16px/1.55 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ink: #1c201f;
  --muted: #5b605d;
  --paper: #fff;
  --panel: #f8f7f4;
  --line: #deded8;
  --red: #c8202b;
  --red-hover: #a91c24;
  --radius: 4px;
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:where(input, button, a):focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.brand-bar {
  position: relative;
  z-index: 1;
  flex: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 82px;
  padding: 8px clamp(24px, 4.7vw, 80px);
}
.brand-inner img { display: block; height: auto; max-width: 100%; min-width: 0; }
.brand-zhiling { width: clamp(150px, 17.5vw, 225px); }
.brand-mitsubishi { width: clamp(105px, 10.2vw, 145px); }

.sign-in {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(372px, 2fr);
}
.entry-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #555849 0%, #343932 55%, #1b2520 100%);
}
.entry-architecture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
}
.entry-hero::after {
  position: absolute;
  z-index: 0;
  inset: 34% 0 0;
  content: "";
  background: linear-gradient(to top, #141916ea 0%, #151a17b3 44%, #151a1755 75%, #151a1700 100%);
  pointer-events: none;
}
.entry-intro {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 5.2vw, 96px);
}
.entry-intro h1 {
  color: var(--paper);
  font-size: clamp(38px, 4.35vw, 74px);
  line-height: 1.13;
  font-weight: 750;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.entry-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(32px, 7.6vh, 88px) clamp(36px, 6vw, 100px);
  background: var(--panel);
}
.entry-card { width: min(100%, 410px); min-width: 0; }
.entry-card h2 {
  color: var(--ink);
  font-size: 34px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.entry-note {
  margin-top: 9px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.entry-card form {
  display: grid;
  gap: 19px;
  margin-top: 26px;
}
#entry-unavailable, .entry-card noscript p {
  margin-top: 20px;
  color: var(--muted);
}
.entry-field { display: grid; gap: 7px; min-width: 0; }
.entry-field label { color: var(--ink); font-size: 14px; font-weight: 650; }
.entry-field input {
  width: 100%;
  min-width: 0;
  min-height: 53px;
  padding: 9px 14px;
  border: 1px solid #888d87;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
}
.entry-field input:focus { border-color: var(--red); }
.entry-password { position: relative; }
.entry-password input { padding-inline-end: 71px; }
.entry-password button {
  position: absolute;
  inset-inline-end: 3px;
  inset-block: 3px;
  min-width: 62px;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.entry-password button:hover { color: var(--ink); background: #f4f4f0; }
.entry-password button:focus-visible { outline-offset: -2px; }
.entry-error {
  padding: 9px 11px;
  border: 1px solid #e7c8cb;
  border-radius: var(--radius);
  color: #922731;
  background: #fff3f3;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.entry-submit {
  min-height: 53px;
  margin-block-start: 3px;
  padding: 10px 16px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--red);
  cursor: pointer;
  font-weight: 700;
}
.entry-submit:hover { border-color: var(--red-hover); background: var(--red-hover); }
.entry-submit:disabled { border-color: #b33d45; background: #b33d45; cursor: wait; }
.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #a71924;
  text-underline-offset: .2em;
}

@media (max-width: 800px) {
  .brand-inner { min-height: 61px; padding-inline: clamp(18px, 5vw, 40px); }
  .brand-zhiling { width: clamp(136px, 28vw, 178px); }
  .brand-mitsubishi { width: clamp(100px, 22vw, 128px); }
  .sign-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .entry-hero { min-height: clamp(164px, 28vh, 224px); min-height: clamp(164px, 28svh, 224px); }
  .entry-architecture { object-position: 50% 52%; }
  .entry-hero::after { inset-block-start: 12%; }
  .entry-intro { padding: 24px clamp(20px, 6vw, 44px); }
  .entry-intro h1 { font-size: clamp(29px, 7.2vw, 44px); }
  .entry-panel {
    align-items: start;
    padding: 26px clamp(20px, 6vw, 44px) 33px;
  }
  .entry-card h2 { font-size: 27px; }
  .entry-note { margin-top: 6px; padding-bottom: 15px; font-size: 14px; }
  .entry-card form { gap: 14px; margin-top: 15px; }
  .entry-field input, .entry-submit { min-height: 47px; }
  .entry-password button { inset-block: 1px; }
}

@media (max-width: 800px) and (max-height: 650px) {
  .entry-hero { min-height: 148px; }
  .entry-intro { padding-block: 19px; }
  .entry-panel { padding-block-start: 20px; }
  .entry-note { padding-bottom: 12px; }
  .entry-card form { margin-top: 13px; gap: 12px; }
}
