:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #3c2d23;
  background: #f3eee5;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
main {
  width: 100%;
  max-width: 360px;
  padding: 36px 30px 24px;
  background: linear-gradient(135deg, #ead3a7 0%, #fff5df 48%, #e5cfaa 100%);
  border: 1px solid #cfb384;
  border-radius: 16px;
  box-shadow: 0 18px 54px #62432412, inset 0 1px 0 #fff9ed;
}
h1 { margin: 0 0 32px; font-family: "Songti SC", "STSong", serif; font-size: 26px; line-height: 1.4; font-weight: 600; color: #624324; }
label { display: block; margin-bottom: 10px; font-size: 14px; line-height: 1.5; color: #75614e; }
input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #cfb88f;
  border-radius: 8px;
  background: #fffcf6;
  color: #3c2d23;
  font: inherit;
  font-size: 16px;
}
button {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding: 13px;
  border: 1px solid #704c27;
  border-radius: 8px;
  background: linear-gradient(135deg, #886035, #624324);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}
button:hover { background: #624324; }
button:disabled { opacity: .6; cursor: wait; }
input:focus-visible, button:focus-visible { outline: 3px solid #a67c41; outline-offset: 3px; }
#error { min-height: 22px; margin: 16px 0 0; color: #783f38; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 380px) { main { padding: 30px 22px 22px; } }
