:root {
  --ink: #172723;
  --muted: #70827d;
  --primary: #0e7c66;
  --primary-dark: #0a5b4b;
  --line: #dce8e3;
  --bg: #f3f7f5;
  --danger: #b93f3f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
  color: var(--ink);
  background:
    radial-gradient(620px 420px at 12% 0%, rgba(42, 154, 126, .32), transparent 68%),
    radial-gradient(520px 400px at 95% 100%, rgba(219, 166, 68, .13), transparent 65%),
    linear-gradient(140deg, #0a2b26 0%, #0d3a32 48%, #09231f 100%);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) .7px, transparent .7px);
  background-size: 19px 19px;
  opacity: .28;
}
.login-shell { width: 100%; display: flex; justify-content: center; }
.login-card {
  width: min(430px, 100%);
  padding: 27px 28px 21px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 30px 80px rgba(2, 20, 16, .34);
  backdrop-filter: blur(14px);
  animation: card-in .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  color: #eafff8;
  background: linear-gradient(145deg, #35b394, #0b5344);
  box-shadow: 0 7px 18px rgba(8, 64, 51, .22);
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
  font-weight: 700;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 18px; letter-spacing: .1em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .06em; }
.lan-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 20px;
  color: #256c59;
  background: #edf8f3;
  font-size: 9px;
  font-weight: 600;
}
.lan-pill i { width: 5px; height: 5px; border-radius: 50%; background: #1cb386; box-shadow: 0 0 0 3px rgba(28, 179, 134, .11); }
.headline { margin: 26px 0 22px; }
.eyebrow { margin: 0 0 6px; color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.headline h1 { margin: 0; color: #14231f; font-size: 29px; line-height: 1.18; letter-spacing: -.035em; }
.headline p { margin-top: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
form { display: flex; flex-direction: column; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: #40534e; font-size: 11px; font-weight: 650; }
.field input {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fbfdfc;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus { border-color: #7eb6a6; background: #fff; box-shadow: 0 0 0 3px rgba(14, 124, 102, .09); }
.field input::placeholder { color: #a4b2ad; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 47px; }
.password-wrap button {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 38px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
  transform: translateY(-50%);
}
.password-wrap button:hover { color: var(--primary); background: #eef7f3; }
.password-hint { margin: -4px 0 0; color: var(--muted); font-size: 9.5px; }
.form-error {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #f0d0cd;
  border-radius: 8px;
  color: var(--danger);
  background: #fdf1f0;
  font-size: 11px;
  line-height: 1.5;
}
.submit-btn {
  height: 46px;
  margin-top: 3px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #12836b, #0a5f4d);
  box-shadow: 0 8px 20px rgba(14, 124, 102, .22);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(14, 124, 102, .28); }
.submit-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.setup-note {
  margin-top: 17px;
  padding: 11px 12px;
  border: 1px solid #d7e9e2;
  border-radius: 9px;
  background: #f4faf7;
}
.setup-note strong { font-size: 10.5px; color: #2a5e50; }
.setup-note p { margin-top: 3px; color: var(--muted); font-size: 9.5px; line-height: 1.55; }
.security-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid #edf2f0;
  color: #899993;
  font-size: 9px;
  line-height: 1.55;
}
.security-note .dot { width: 5px; height: 5px; flex: none; margin-top: 4px; border-radius: 50%; background: #2eb58e; }
.login-foot { margin: 12px 0 0; color: #a4b1ad; font-size: 8.5px; text-align: center; letter-spacing: .04em; }
@media (max-width: 520px) {
  body { padding: 16px 12px calc(18px + env(safe-area-inset-bottom)); align-items: start; }
  .login-card { margin-top: 7vh; padding: 23px 20px 18px; border-radius: 19px; }
  .headline { margin: 22px 0 19px; }
  .headline h1 { font-size: 26px; }
  .field input { height: 47px; font-size: 16px; }
  .submit-btn { height: 48px; }
  .lan-pill { font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
