:root {
  color-scheme: light;
  font-family:
    system-ui,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #182538;
  background: #f3f6fa;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 48px 20px 76px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at top, #e4efff, transparent 65%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px #243b6410;
}

.brand-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #2563eb;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 25px;
  text-align: center;
}
.login-intro {
  margin: 12px 0 30px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}
label {
  display: block;
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #182538;
  font: inherit;
  font-size: 16px;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid #bfdbfe;
  outline-offset: 2px;
  border-color: #2563eb;
}

button {
  width: 100%;
  margin-top: 24px;
  padding: 13px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.login-error {
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.5;
}
.login-note {
  margin: 22px 0 0;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 24px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .login-card {
    padding: 30px 24px;
  }
  h1 {
    font-size: 22px;
  }
}
