:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #243d36;
  background: #f5f6f0;
  --green: #174b3c;
  --ink: #173e32;
  --muted: #6e7b74;
  --line: #e0e5dc;
  --paper: #fff;
  --accent: #d2e9a9;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 22px;
}

.login-card {
  width: min(430px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 36px 32px;
  box-shadow: 0 18px 44px rgba(23, 62, 50, .07);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: var(--green);
  color: var(--accent);
  font-size: 35px;
  border-radius: 13px;
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 700;
  color: #65806c;
}

h1 {
  margin: 0 0 10px;
  font-size: 27px;
  letter-spacing: -.8px;
  color: var(--ink);
}

.intro {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.login-error {
  margin: 0 0 18px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #fbeceb;
  border: 1px solid #f0cdc9;
  color: #9c3a30;
  font-size: 12.5px;
  line-height: 1.6;
}

.field { display: block; margin-bottom: 16px; }

.field > span {
  display: block;
  font-size: 11px;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #d8ded2;
  border-radius: 9px;
  background: #fbfcf8;
  color: var(--ink);
}

.field input:focus-visible,
button:focus-visible {
  outline: 3px solid #7aa462;
  outline-offset: 2px;
}

button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #f3f8ec;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 13px 18px;
  cursor: pointer;
  transition: filter .15s;
}

button:hover { filter: brightness(1.08); }

.hint {
  margin: 20px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: #8b968f;
}

.login-shell footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
  color: #97a19a;
  max-width: 520px;
}

@media (max-width: 440px) {
  .login-card { padding: 30px 24px 26px; border-radius: 14px; }
  h1 { font-size: 24px; }
}
