:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #3f4652;
  --muted: #6b7280;
  --line: #d8dee8;
  --blue: #4096ff;
  --green: #07c160;
  --red: #dc3f45;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 12px 28px 40px;
}

.login-panel {
  width: min(100%, 305px);
}

.login-card {
  width: 100%;
}

.login-brand {
  display: inline-flex;
  margin-bottom: 26px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 720;
}

.login-title {
  margin-bottom: 30px;
}

.login-title h1 {
  margin: 0;
  color: #3f4652;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 820;
}

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

.wechat-login {
  width: 100%;
  min-height: 39px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.wechat-login::before {
  content: "微信";
  display: inline-block;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 820;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  color: #a0a7b2;
  font-size: 13px;
  font-weight: 720;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

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

label span {
  color: #5f6673;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 41px;
  border: 1px solid #d5dbe5;
  border-radius: 3px;
  background: #fff;
  color: #28313d;
  padding: 0 10px;
  font-size: 15px;
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.12);
}

.form-row {
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.submit {
  min-width: 70px;
  min-height: 40px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.form-row a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.message {
  min-height: 20px;
  margin-top: -9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.message.bad { color: var(--red); }
.message.ok { color: #15956b; }

.register-row {
  margin-top: 55px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 650;
}

.register-row a {
  color: var(--blue);
}

@media (max-width: 420px) {
  .login-shell {
    padding: 12px 28px 32px;
  }
}
