:root {
  color-scheme: light;
  color: #11283b;
  background: #f2f6f8;
  font-family: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; }

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.login-card {
  width: min(100%, 420px);
  padding: clamp(24px, 6vw, 44px);
  background: #fff;
  border: 1px solid #d8e3ea;
  border-radius: 18px;
  box-shadow: 0 18px 50px #10283b12;
}

header { margin-bottom: 24px; }

header img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1 {
  margin: 16px 0 4px;
  font-size: 1.65rem;
  line-height: 1.3;
}

p { margin: 0; }

header p { color: #41566b; }

form {
  display: grid;
  gap: 8px;
}

label:not(:first-child) { margin-top: 6px; }

label { font-weight: 600; }

input, button { font: inherit; }

input {
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  color: inherit;
  background: #fff;
  border: 1px solid #8ba0b0;
  border-radius: 8px;
}

button {
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
}

button:disabled { cursor: default; }

:focus-visible {
  outline: 3px solid #145eb4;
  outline-offset: 3px;
}

.captcha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#captcha-refresh {
  flex-shrink: 0;
  color: #153951;
  background: #ecf3f7;
}

#login-submit {
  margin-top: 10px;
  color: #fff;
  background: #163e57;
}

button:disabled { opacity: 0.6; }

#login-status:not(:empty) { margin-top: 4px; }

noscript { display: block; margin-top: 12px; }
