:root {
  color-scheme: light;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #183238;
  background: #eef2ee;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(112, 158, 132, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 84%, rgba(26, 105, 116, 0.13), transparent 28rem),
    #eef2ee;
}

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

.login-card {
  width: min(100%, 420px);
  padding: 42px;
  border: 1px solid rgba(25, 58, 62, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(22, 48, 48, 0.12);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  color: #ecf7f2;
  background: #173f43;
}

.brand-mark svg { width: 28px; height: 28px; }
.eyebrow { margin: 0 0 7px; color: #71847d; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; }
h1 { margin: 0; color: #163337; font-size: 29px; letter-spacing: -0.04em; }
.intro { margin: 10px 0 30px; color: #71817c; font-size: 14px; line-height: 1.7; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: #405754; font-size: 13px; font-weight: 600; }

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cad5d0;
  border-radius: 11px;
  outline: none;
  color: #173337;
  background: #fbfcfb;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus { border-color: #24727a; box-shadow: 0 0 0 3px rgba(36, 114, 122, 0.12); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 62px; }

.password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 7px 8px;
  border: 0;
  color: #55706c;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.submit-button {
  height: 48px;
  margin-top: 3px;
  border: 0;
  border-radius: 11px;
  color: #f7fbf9;
  background: #176872;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.submit-button:hover { background: #125a63; }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { cursor: wait; opacity: 0.65; }
.login-error { padding: 10px 12px; border-radius: 9px; color: #8c3030; background: #fff0ef; font-size: 13px; line-height: 1.5; }
.security-hint { margin: 28px 0 0; color: #84938d; font-size: 12px; text-align: center; }
.security-hint span { margin-right: 6px; color: #64a279; font-size: 9px; }

@media (max-width: 520px) {
  .login-shell { align-items: start; padding: 14vh 18px 28px; }
  .login-card { padding: 30px 24px; border-radius: 18px; }
}
