:root {
  color-scheme: light;
  --ink: #22312b;
  --muted: #708078;
  --line: #e3e8e3;
  --card: #fffdf8;
  --accent: #2f6b55;
  --accent-dark: #24523f;
  --error: #a33f3f;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(116, 176, 143, .45), transparent 34rem),
    radial-gradient(circle at 88% 82%, rgba(214, 167, 94, .22), transparent 30rem),
    linear-gradient(145deg, #173129 0%, #1c3d31 45%, #10241d 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.login-card {
  width: min(440px, 100%);
  padding: 34px 34px 28px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(3, 20, 14, .35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  letter-spacing: .02em;
}
.brand b { display: block; font-size: 18px; }
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  font-size: 20px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}

.lead {
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f0f4ef;
}
.tab {
  flex: 1;
  padding: 10px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.tab.active {
  color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 2px 8px rgba(28, 62, 47, .12);
}

.login-form {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.login-form label {
  font-size: 13px;
  font-weight: 700;
}
.login-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 85, .13);
}
.login-form input::placeholder { color: #a2afa8; }
.hint {
  margin: 1px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.error {
  min-height: 18px;
  margin: 0;
  color: var(--error);
  font-size: 12px;
  line-height: 1.55;
}
.submit {
  height: 46px;
  margin-top: 4px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.submit:hover { background: var(--accent-dark); }
.submit:active { transform: translateY(1px); }
.submit:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.foot {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .login-card { padding: 28px 22px 24px; border-radius: 18px; }
  .login-shell { padding: 18px 12px; }
}
