:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #17211d;
  background: #f3efe4;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; margin: 0; padding: 28px 20px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
:focus-visible { outline: 3px solid #16734b; outline-offset: 3px; }
.access-card { width: min(100%, 390px); padding: 32px; background: #fffdf7; border: 1px solid #c8c9bd; border-radius: 12px; }
.logo { display: block; width: 48px; height: 48px; margin: 0 auto 18px; }
h1, h2 { margin: 0 0 30px; text-align: center; font-size: 26px; line-height: 1.4; }
label { display: block; margin: 20px 0 10px; font-size: 15px; }
input { width: 100%; height: 50px; padding: 0 13px; color: #17211d; background: white; border: 1px solid #c8c9bd; border-radius: 5px; font-size: 16px; }
input:focus { border-color: #16734b; outline: 2px solid #9df3c76b; outline-offset: 1px; }
.password-field { position: relative; }
.password-field input { padding-right: 68px; }
.password-toggle { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 11px; border: 0; border-radius: 3px; background: transparent; color: #66706a; font-size: 14px; }
.password-toggle:hover { background: #f3efe4; }
.primary-button { width: 100%; min-height: 50px; margin-top: 28px; padding: 12px 16px; border: 1px solid #17211d; border-radius: 5px; background: #17211d; color: #fffdf7; font-size: 16px; font-weight: 600; }
.primary-button:hover:not(:disabled) { background: #2c4035; }
.error-message { margin: 16px 0 0; padding: 12px; background: #fff0ed; border: 1px solid #ebc4bb; border-radius: 5px; color: #b32c2c; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.text-button { display: block; margin: 20px auto 0; padding: 8px; color: #66706a; font-size: 14px; border: 0; background: none; }
.download-progress { margin-top: 24px; }
progress { display: block; width: 100%; height: 8px; accent-color: #16734b; }
.download-progress p { margin: 12px 0 0; color: #16734b; font-size: 14px; line-height: 1.7; }
noscript { color: #b32c2c; font-size: 16px; }
@media (max-width: 420px) {
  .access-card { padding: 28px 24px; }
}
