:root {
  color-scheme: dark;
  --paper: #f7eddf;
  --muted: #c8bfc1;
  --gold: #f3ce90;
  --field: #262733;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--paper);
  background: #191b28;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.entry {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  isolation: isolate;
  position: relative;
}
.illustration {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #191b28 2%, #191b28f5 19%, #191b28d9 35%, #191b2825 61%, transparent 78%),
    url("/library-night.webp") 60% center / cover no-repeat, #191b28;
}
.content {
  width: min(91%, 1420px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  padding-block: clamp(24px, 4vh, 58px);
}
.brand, h1 { font-family: "Songti SC", STSong, "Noto Serif CJK SC", "SimSun", serif; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .12em;
}
.brand span {
  color: var(--gold);
  font: normal 38px/1 Georgia, serif;
  transform: rotate(-12deg);
}
.account {
  width: min(100%, 358px);
  margin: auto 0 auto clamp(0px, 3.5vw, 70px);
  padding-block: 40px;
}
h1 { margin: 0; font-size: clamp(34px, 3.4vw, 50px); letter-spacing: .05em; line-height: 1.2; }
.destination { margin: 12px 0 27px; color: var(--muted); line-height: 1.6; font-size: 15px; }
form > label, .password-label { margin-bottom: 7px; display: flex; }
form > label { flex-direction: column; gap: 7px; }
form > label, .password-label label { font-weight: 600; font-size: 14px; }
form > label + label, .password-label { margin-top: 18px; }
.password-label { align-items: center; justify-content: space-between; }
input {
  width: 100%;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid #77717a;
  border-radius: 6px;
  color: var(--paper);
  background: var(--field);
  font-size: 16px;
}
input:focus { border-color: var(--gold); }
input::placeholder { color: #b3abb1; font-size: 14px; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-field button {
  position: absolute;
  right: 0;
  inset-block: 1px;
  min-width: 56px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}
.primary {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 49px;
  margin-top: 25px;
  border: 0;
  border-radius: 6px;
  background: #f4c78b;
  color: #27202a;
  font-weight: 700;
  font-size: 16px;
}
.primary:hover { background: #ffdaa1; }
.primary:active { background: #e6b877; }
.primary:disabled { opacity: .7; }
.arrow { position: absolute; right: 17px; font: 24px/1 system-ui, sans-serif; }
.text-action {
  padding: 3px 0;
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.text-action:hover { text-decoration: underline; text-underline-offset: 4px; }
.switch { margin: 16px 0 0; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; }
.switch button { min-height: 38px; }
.notice { color: #ffb5a3; font-size: 14px; line-height: 1.6; margin: 16px 0 0; }
@media (max-width: 690px) {
  .content { width: min(100%, 440px); margin: 0 auto; padding: max(env(safe-area-inset-top), 15px) max(env(safe-area-inset-right), 24px) max(env(safe-area-inset-bottom), 18px) max(env(safe-area-inset-left), 24px); }
  .illustration { height: clamp(190px, 39svh, 340px); background-size: auto, auto, cover; background-position: center, center, right 47%; background-repeat: no-repeat; background-image: linear-gradient(0deg, #191b28 1%, #191b28c4 18%, #191b2800 62%), linear-gradient(115deg, #1414209c, transparent 60%), url("/library-night.webp"); }
  .brand { font-size: 18px; gap: 8px; text-shadow: 0 2px 8px #181522; }
  .brand span { font-size: 31px; }
  .account { align-self: start; margin: 0; padding: clamp(108px, 23svh, 200px) 0 20px; width: 100%; }
  h1 { font-size: 35px; }
  .destination { margin: 8px 0 21px; }
}
@media (max-height: 650px) and (max-width: 690px) {
  .illustration { height: 176px; }
  .account { padding-top: 79px; }
}
@media (max-height: 480px) {
  .content { padding-block: 12px; }
  .account { padding-block: 16px; }
  .illustration { opacity: .42; }
  .destination { margin-block: 5px 14px; }
  h1 { font-size: 28px; }
  .primary { margin-top: 16px; }
  .switch { margin-top: 3px; }
}

.site-filing {
  padding: 12px 20px max(12px, env(safe-area-inset-bottom));
  background: #191b28;
  color: #e3d5bb;
  text-align: center;
  font-size: 14px;
}
.site-filing a { color: inherit; text-underline-offset: .2em; }
