:root { --cyan: #22d3ee; --violet: #a78bfa; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  display: grid; place-items: center;
  background: #070910; color: #e8ecf4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.bg span { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .4; }
.bg span:first-child { width: 440px; height: 440px; top: -140px; left: -100px; background: rgba(34,211,238,.4); }
.bg span:last-child { width: 460px; height: 460px; bottom: -160px; right: -120px; background: rgba(167,139,250,.35); }

.login-card {
  position: relative; z-index: 1;
  width: min(400px, calc(100% - 36px));
  padding: 34px 32px 28px;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.13);
  background: rgba(15,19,30,.82);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.95);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.brand img { width: 38px; height: 38px; }
.brand b { display: block; font-size: 17px; }
.brand small { display: block; margin-top: 3px; font-size: 9px; letter-spacing: .18em; color: rgba(203,213,235,.45); }
form button.disabled,
form button:disabled{opacity:.75;cursor:not-allowed;transform:none}
form button .btn-lock{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.err {
  margin-bottom: 16px; padding: 10px 12px; border-radius: 8px;
  background: rgba(226,86,107,.12); border: 1px solid rgba(226,86,107,.3);
  color: #ff9aab; font-size: 12.5px;
}
form label { display: block; margin-bottom: 16px; font-size: 12px; color: rgba(203,213,235,.7); }
form input {
  display: block; width: 100%; margin-top: 8px; height: 44px;
  padding: 0 14px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.05); color: #fff;
  font: inherit; font-size: 13px; outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
form input:focus { border-color: var(--cyan); box-shadow: 0 0 22px -8px var(--cyan); }
form input::placeholder { color: rgba(203,213,235,.3); }
form button {
  width: 100%; height: 46px; margin-top: 6px;
  border: 0; border-radius: 9px; cursor: pointer;
  background: linear-gradient(100deg, var(--cyan), #6366f1);
  color: #05121a; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .14em;
  transition: filter .2s, transform .2s;
}
form button:hover { filter: brightness(1.08); transform: translateY(-1px); }
form button span { margin-left: 6px; }
.tip { margin: 20px 0 0; text-align: center; font-size: 11px; line-height: 1.8; color: rgba(203,213,235,.45); }
.tip code { padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.07); color: #a5f3fc; }
.back { position: absolute; z-index: 1; bottom: 24px; font-size: 12px; color: rgba(203,213,235,.4); }
.back:hover { color: var(--cyan); }

@media (max-width: 480px) {
  .login-card { padding: 26px 20px 22px; }
  .brand b { font-size: 15px; }
  .back { bottom: 14px; }
}

/* 检测浏览器自动填充，配合脚本清空（不阻止点击时弹出保存的凭据） */
@keyframes nav-autofill-clear { to { visibility: visible; } }
#loginForm input:-webkit-autofill {
  animation-name: nav-autofill-clear;
  animation-duration: 0.01s;
}
