:root {
  color-scheme: light;
  color: #18382f;
  background: #f4f6f4;
  font-family: "Inter", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
header { display: flex; align-items: center; gap: .65rem; min-height: 4.5rem; padding: .8rem max(1.25rem,calc((100vw - 1200px)/2)); background: #fff; border-bottom: 1px solid #dce4df; font-size: 1.15rem; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; background: #126653; color: #fff; font: 800 1.68rem/1 Arial,sans-serif; }
main { min-height: calc(100svh - 4.5rem); display: grid; place-items: center; padding: 2rem 1rem; }
.login-card { width: min(100%,26rem); padding: clamp(1.3rem,4vw,2.35rem); border: 1px solid #d6e1da; border-top: 4px solid #126653; border-radius: 1rem; background: #fff; box-shadow: 0 .8rem 2.5rem #194b3610; }
h1 { font-size: 1.62rem; margin: 0; line-height: 1.4; }
.intro { color: #52665d; margin: .45rem 0 1.4rem; line-height: 1.55; }
fieldset { display: grid; min-width: 0; margin: 0; border: 0; padding: 0; }
.method-switch { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .15rem; border-radius: .55rem; padding: .2rem; background: #edf2ef; margin-bottom: 1.1rem; }
.method-switch button { min-width: 0; min-height: 2.45rem; padding: .25rem .12rem; background: transparent; color: #52665d; font-size: clamp(.875rem,3.8vw,.94rem); line-height: 1.35; }
.method-switch button[aria-pressed="true"] { background: #fff; color: #126653; box-shadow: 0 1px 4px #18382f1a; }
.method-switch button:hover:enabled { background: #fff; }
.sms-row { display: flex; align-items: stretch; gap: .5rem; margin: .35rem 0 1rem; }
.sms-row input { min-width: 0; margin: 0; }
.sms-row button { flex: none; padding: .3rem .65rem; color: #126653; background: #edf5ef; border: 1px solid #bdd6c6; font-size: .91rem; }
.sms-row button:hover:enabled { background: #daeade; }
.scan-help { margin: 0 0 1rem; color: #52665d; font-size: .95rem; line-height: 1.6; }
label { font-size: .94rem; font-weight: 650; }
input,button { min-height: 2.7rem; border-radius: .5rem; font: inherit; }
input { width: 100%; padding: .5rem .7rem; margin: .35rem 0 1rem; color: #18382f; background: #fff; border: 1px solid #bccfc3; }
button { padding: .5rem .85rem; border: 0; color: #fff; background: #126653; font-weight: 650; cursor: pointer; }
button:hover:enabled { background: #0e5042; }
button:focus-visible,input:focus-visible { outline: 3px solid #488aaf; outline-offset: 2px; }
input:disabled { background: #f3f5f3; }
button:disabled { opacity: .5; cursor: default; }
#login-message { margin: 1rem 0 0; color: #52665d; font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; }
#login-message:empty { display: none; }
#login-message.error { color: #923f30; }
#retry-options { min-height: 2.15rem; margin-top: .45rem; padding: .3rem 0; color: #126653; background: transparent; font-size: .9rem; }
#retry-options:hover { text-decoration: underline; background: transparent; }
@media (max-width: 500px) {
  header { min-height: 3.75rem; font-size: 1rem; }
  main { min-height: calc(100svh - 3.75rem); align-items: start; padding-top: 2.5rem; }
}
