:root {
  color-scheme: dark;
  font: 100%/1.5 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #0b1523;
  color: #edf4f8;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh; min-height: 100svh;
  margin: 0; padding: 1rem;
  display: grid; align-content: safe center; justify-items: center;
  background: radial-gradient(ellipse at 50% 22%, #152c3d 0, #0b1523 62%);
}
main {
  width: min(100%, 25rem);
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid #354a5c; border-radius: .875rem; background: #111f2e;
}
h1 { margin: 0; font-size: clamp(1.55rem, 5vw, 1.85rem); line-height: 1.35; }
#login-intro { margin: .5rem 0 1.65rem; color: #acbdcb; }
form { display: grid; gap: .95rem; }
.field { display: grid; gap: .35rem; font-weight: 600; }
input, button { width: 100%; min-height: 2.875rem; font: inherit; border-radius: .45rem; }
input { color: inherit; padding: .6rem .75rem; background: #0b1523; border: 1px solid #506579; }
button { cursor: pointer; padding: .55rem .8rem; background: #8ce1d5; color: #102b2d; border: 0; font-weight: 700; }
button.secondary { background: transparent; color: #a5e8e0; font-weight: 500; }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .65; cursor: wait; }
:is(input, button):focus-visible { outline: 2px solid #9af1e5; outline-offset: 2px; }
.account-hint { color: #adbdcb; font-size: .82rem; font-weight: 400; }
[role="alert"], [role="status"] { margin: 0; overflow-wrap: anywhere; }
[role="alert"] { color: #ffc5bd; }
[role="status"] { color: #9ae6d9; margin-bottom: .85rem; }
[hidden], [role="alert"]:empty, [role="status"]:empty { display: none; }
