:root {
  --blue: #0646ef;
  --ink: #141820;
  --line: #c8d1df;
  font: 17px/1.6 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box }

body {
  display: grid;
  place-items: center;
  min-height: 100svh;
  margin: 0;
  padding: 24px;
}

#login-panel { width: min(100%, 360px) }
#login-form { display: grid; gap: 18px }
#login-form label { display: grid; gap: 7px }

input, button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  touch-action: manipulation;
  font-family: inherit;
  line-height: 1.5;
}

input {
  min-width: 0;
  height: 46px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  caret-color: var(--blue);
  font-size: 17px;
}

button {
  padding: 10px 16px;
  border-color: var(--blue);
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 550;
  cursor: pointer;
}

button:hover { background: #0738c8 }
button:disabled {
  opacity: .68;
  border-color: #d4deec;
  background: #e0e7f4;
  color: #5a6a85;
  cursor: not-allowed;
}

input:focus-visible, button:focus-visible {
  outline: 3px solid #648efb;
  outline-offset: 2px;
}

input[aria-invalid=true] { border-color: #b42318 }
#login-error { min-height: 2.8em; margin: 0; color: #b42318; font-size: 15px; line-height: 1.4 }
