:root {
  --teal: #0f9187;
  --teal-dark: #0f766e;
  --ink: #17324d;
  --muted: #718096;
  --line: #e2e8f0;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f3f8f7; font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(15, 145, 135, .2); outline-offset: 2px; }
.login-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 42px 20px 26px;
  background:
    radial-gradient(circle at 15% 22%, rgba(45, 212, 191, .09), transparent 30%),
    radial-gradient(circle at 85% 76%, rgba(14, 116, 144, .07), transparent 29%),
    linear-gradient(145deg, #f7fbfa 0%, #eef5f4 100%);
}
.login-page::before, .login-page::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(15, 145, 135, .08); border-radius: 50%; }
.login-page::before { width: 420px; height: 420px; left: -240px; top: -150px; }
.login-page::after { width: 540px; height: 540px; right: -330px; bottom: -270px; }
.login-brand { margin-bottom: 28px; text-align: center; }
.login-brand-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 13px; border-radius: 14px; background: var(--teal-dark); box-shadow: 0 9px 24px rgba(15, 118, 110, .18); color: #fff; font: 700 26px/1 Arial, sans-serif; }
.login-brand h1 { margin: 0; color: #183b56; font-size: 29px; line-height: 1.35; letter-spacing: .08em; }
.login-brand p { margin: 9px 0 0; color: #3caea2; font: 600 11px/1.4 Arial, sans-serif; letter-spacing: .34em; }
.login-card { width: min(100%, 402px); padding: 30px 30px 25px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 21px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 48px rgba(51, 65, 85, .09); }
.login-tab { margin-bottom: 25px; padding: 11px 14px; border: 1px solid #d5e6e3; border-radius: 10px; background: #fbfdfd; box-shadow: 0 2px 5px rgba(15, 118, 110, .06); color: #188f84; text-align: center; font-size: 15px; font-weight: 600; }
.login-message { margin: -8px 0 17px; padding: 10px 12px; border-radius: 9px; font-size: 13px; line-height: 1.55; }
.login-message.notice { border: 1px solid #bce5d4; background: #f0faf5; color: #23785a; }
.login-message.error { border: 1px solid #fecaca; background: #fff5f5; color: #b42318; }
.login-field { position: relative; margin-bottom: 17px; }
.login-field input { display: block; width: 100%; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.login-field input::placeholder { color: #a0aec0; }
.login-field input:focus { border-color: #62bdb4; box-shadow: 0 0 0 4px rgba(15, 145, 135, .07); outline: none; }
.password-field input { padding-right: 61px; }
.password-toggle { position: absolute; top: 50%; right: 7px; min-width: 45px; min-height: 34px; transform: translateY(-50%); border: 0; border-radius: 7px; background: transparent; color: #66827f; font-size: 12px; }
.password-toggle:hover { background: #eff7f6; color: var(--teal-dark); }
.login-submit { width: 100%; min-height: 46px; margin-top: 4px; border: 0; border-radius: 10px; background: linear-gradient(100deg, #0f9488, #139e90); box-shadow: 0 9px 18px rgba(15, 145, 135, .19); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .15em; }
.login-submit:hover { background: linear-gradient(100deg, #0f857c, #118f83); }
.login-help { margin: 16px 0 20px; color: #8a99a8; text-align: center; font-size: 12px; }
.login-scope { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #e1ecea; border-radius: 10px; background: #f7faf9; text-align: center; }
.login-scope strong { color: #5b7471; font-size: 12px; font-weight: 500; }
.login-scope span { color: #93a19f; font-size: 11px; }
.login-footer { display: flex; flex-direction: column; gap: 3px; margin-top: 24px; color: #91a39f; text-align: center; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .login-page { justify-content: flex-start; padding: 34px 16px 22px; }
  .login-brand { margin-bottom: 22px; }
  .login-brand-mark { width: 43px; height: 43px; margin-bottom: 10px; border-radius: 12px; font-size: 23px; }
  .login-brand h1 { font-size: 25px; }
  .login-card { padding: 24px 20px 21px; border-radius: 18px; }
  .login-tab { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
