:root {
  color-scheme: light;
  --ink: #1f302d;
  --muted: #687976;
  --line: #d8e0de;
  --teal: #147d73;
  --teal-dark: #0d625a;
  --teal-soft: #e7f4f1;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--ink);
  background: #eef1f3;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.login-screen {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 40px 20px 18px;
}

.login-panel {
  width: min(380px, 100%);
  padding: 30px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(24, 38, 46, 0.12);
}

.login-panel h1 {
  margin: 0 0 8px;
  font-size: 28px;
  text-align: center;
  letter-spacing: 0;
}

.login-panel label {
  display: grid;
  gap: 7px;
  color: #435a56;
  font-size: 14px;
  font-weight: 700;
}

.login-panel input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cbd8d5;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.login-panel input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 125, 115, 0.12);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 21px;
  line-height: 1;
}

.password-toggle:hover {
  border-radius: 6px;
  background: var(--teal-soft);
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 13px;
}

.primary-button {
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.primary-button:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.primary-button:focus-visible,
.password-toggle:focus-visible {
  outline: 3px solid rgba(20, 125, 115, 0.28);
  outline-offset: 2px;
}

.filing-footer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.filing-footer a {
  color: inherit;
  text-decoration: none;
}

.filing-footer a:hover {
  color: var(--teal);
  text-decoration: underline;
}
