:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #192438;
  background: #f2f4f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 3px solid #345692; outline-offset: 3px; }
.boot-text { margin: max(40px, 17vh) auto; padding: 24px; text-align: center; }
#app-notice:not(:empty) {
  position: fixed; z-index: 80; bottom: 26px; left: 50%; transform: translateX(-50%);
  max-width: min(88vw, 640px); background: #19263d; color: white; border-radius: 10px;
  padding: 13px 21px; font-size: 14px; line-height: 1.55; box-shadow: 0 5px 24px #16243d2a;
}
.gate {
  min-height: 100dvh; display: grid; align-items: center; justify-items: center;
  padding: clamp(18px, 5vw, 64px); background: #f7f7f9;
}
.gate-shell {
  width: min(460px, 100%); background: white; color: #23252c;
  border: 1px solid #c8d2df; border-radius: 6px;
}
.gate-brand {
  display: flex; align-items: center; gap: 8px; padding: 12px 21px;
  border-bottom: 1px solid #e6e6e9; font-size: 16px;
}
.gate-brand img { width: 26px; height: 26px; border-radius: 4px; }
.gate-brand span { border-left: 1px solid #dcdde2; padding-left: 9px; font-size: 13px; color: #5d5f67; }
.gate-panel { padding: clamp(23px, 4vw, 37px); }
.gate-kicker { color: #586a84; font-size: 14px; font-weight: 650; }
.gate-panel h1 {
  font: 650 28px/1.35 "Microsoft YaHei UI","PingFang SC",sans-serif;
  color: #23252b; margin-block: 7px;
}
.gate-lead { font-size: 15px; line-height: 1.75; color: #5b616b; margin: 0 0 28px; }
.gate-form { display: grid; gap: 17px; }
.gate-field { display: block; }
.gate-field label { display: block; font-weight: 640; color: #313b4c; font-size: 14px; margin-bottom: 7px; }
.gate-field input { width: 100%; min-height: 47px; border: 1px solid #caced5; border-radius: 4px;
  font-size: 16px; padding: 10px 13px; color: #1e293b; background: #fff; }
.gate-field input::placeholder { color: #747981; }
.gate-field input:focus-visible { outline: 2px solid #4e6387; outline-offset: 1px; }
.gate-secret { position: relative; }
.gate-secret input { padding-right: 50px; }
.gate-reveal { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 46px; background: transparent; color: #5c636f; border: 0; display: grid; place-items:center; }
.gate-reveal svg { width: 20px; height: 20px; }
.gate-submit { border: 1px solid #454ba1; border-radius: 5px; color: #fff; background: #4a50ad;
  width: 100%; padding: 13px 16px; font-size: 16px; font-weight: 650; min-height: 48px; margin-top: 3px; }
.gate-submit:hover { background: #3f458f; }
.gate-submit:disabled { opacity: .68; }
.gate-error { background: #fff0e9; border-radius: 7px; padding: 8px 12px; color: #943814; font-size: 14px; line-height: 1.6; margin: 0; }
.gate-error:empty { display: none; }
.gate-hint { margin: 20px 0 0; font-size: 13px; color: #646971; line-height: 1.75; }
