:root {
  color-scheme: light;
  --ink: #191b22;
  --muted: #535b69;
  --border: #cbd2db;
  --accent: #ad4619;
  --accent-hover: #8d3513;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: #edf0f4;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
.login {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  min-height: calc(100svh - 32px);
  margin: 16px;
  background: #fff;
  padding: 12px;
  border: 1px solid #e1e5ea;
  border-radius: 24px;
}
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(27px, 4.05vw, 68px);
  min-height: 620px;
  border-radius: 17px;
  color: #f6f3ee;
  background:
    radial-gradient(ellipse at 70% 55%, #542e26 0%, transparent 57%),
    linear-gradient(145deg, #0b101b 22%, #171927 54%, #161524 76%, #261e2b);
}
.cover-copy { position: relative; }
.cover-copy::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  background: #e77947;
  border-radius: 3px;
  margin-bottom: 24px;
}
.cover h1 { margin: 0; font-size: clamp(2.5rem, 5.7vw, 5.6rem); letter-spacing: -.055em; line-height: 1.04; }
.illustration {
  position: absolute;
  z-index: -1;
  inset: 13% 0 17%;
  transform: rotate(-26deg);
  opacity: .9;
}
.sheet {
  position: absolute;
  inset: 14% 24% 10% 25%;
  border: 1px solid #f8c8ad45;
  border-radius: 12px;
  box-shadow: -24px 28px 65px #07090e9e;
}
.sheet-back { transform: translate(23%, -8%) rotate(13deg); background: linear-gradient(150deg, #513431, #211927); }
.sheet-mid { transform: translate(8%, -3%) rotate(6deg); background: linear-gradient(150deg, #55413d, #202436); }
.sheet-front {
  background: linear-gradient(130deg, #283042, #121a2d 76%);
  border-left: 4px solid #d07651;
  padding: 17% 14% 0 9%;
}
.sheet-front span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #c9d2e15a;
  margin-bottom: clamp(10px, 2vw, 33px);
}
.sheet-front span:first-child { width: 46%; background: #f2a078; }
.sheet-front span:nth-child(3) { width: 69%; }
.sheet-front span:last-child { width: 81%; }
.entry { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.entry-content { align-self: center; width: min(100%, 470px); padding: 32px; margin: 0 auto; }
.entry h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.045em; }
.intro { margin: 10px 0 30px; color: var(--muted); font-size: .96rem; }
form label { display: block; font-size: .9rem; font-weight: 650; margin: 18px 0 7px; }
input:not([type="hidden"]) {
  width: 100%;
  display: block;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f5f7fb;
  color: var(--ink);
  font: inherit;
}
input::placeholder { color: #626a79; }
input:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.password-field { position: relative; }
.password-field input { padding-right: 65px; }
#password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}
.message:not(:empty) {
  margin: 14px 0 0;
  border-left: 3px solid var(--accent);
  padding: 8px 10px;
  color: #8d3513;
  font-size: .86rem;
  background: #fdf2eb;
}
.message:empty { display: none; }
.submit {
  display: block;
  width: 100%;
  min-height: 49px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.submit:hover { background: var(--accent-hover); }
.submit:disabled { background: #866657; cursor: wait; }
.entry footer {
  padding: 16px 10px;
  border-top: 1px solid #eef0f4;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
  margin: 0 22px;
}
#captcha-element { width: 100%; }
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; margin: 0; border: 0; border-radius: 0; padding: 10px; min-height: 100svh; }
  .cover { min-height: 220px; padding: 22px 23px; }
  .cover h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .cover-copy::before { margin-bottom: 12px; }
  .illustration { inset: 2% -31% -39% 12%; opacity: .7; }
  .entry-content { padding: 24px 16px 32px; }
  .intro { margin-bottom: 19px; }
}
