:root {
  --ink: #0f1e2e;
  --muted: #6b7c8f;
  --line: #e3e9ef;
  --brand: #0f766e;
  --brand-2: #0d9488;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0; background: #eef3f6; color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
.login-shell { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 100vh; }

.login-visual {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 42px 50px 36px;
  color: #eefbf8;
  background:
    radial-gradient(700px 500px at 10% 0%, rgba(45,212,191,.24), transparent 60%),
    radial-gradient(520px 460px at 98% 96%, rgba(37,99,235,.18), transparent 60%),
    linear-gradient(145deg, #081521 0%, #0d2230 55%, #0a1824 100%);
}
.visual-grid {
  position: absolute; inset: 0; opacity: .32;
  background-image: linear-gradient(rgba(148,163,184,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.11) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 92%);
}
.visual-content { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 47px; height: 47px; display: grid; place-items: center; color: #7fe3d6;
  background: linear-gradient(145deg, rgba(13,148,136,.28), rgba(13,148,136,.08));
  border: 1px solid rgba(126,227,214,.25); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 26px rgba(0,0,0,.2);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand strong { display: block; color: #fff; font-size: 18px; letter-spacing: .1em; }
.brand span { display: block; margin-top: 2px; color: #7f96aa; font-size: 10px; letter-spacing: .36em; }

.visual-copy { margin-top: auto; margin-bottom: 38px; }
.eyebrow { margin: 0 0 13px; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: #2dd4bf; font-weight: 600; }
.visual-copy h1 { margin: 0; font-size: clamp(37px, 4.4vw, 62px); line-height: 1.28; letter-spacing: -.04em; font-weight: 650; color: #f3fffd; }
.visual-copy > p:last-child { margin: 22px 0 0; color: #8fa7b9; font-size: 13px; letter-spacing: .05em; }
.visual-stats { display: flex; gap: 45px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.1); }
.visual-stats div { display: flex; flex-direction: column; }
.visual-stats span { color: #7890a3; font-size: 10px; }
.visual-stats b { margin-top: 4px; font-family: var(--mono); font-size: 22px; font-weight: 550; color: #d8fff9; letter-spacing: -.03em; }
.visual-stats small { margin-top: 1px; color: #577084; font-size: 9px; }
.visual-ring { position: absolute; z-index: 1; border: 1px solid rgba(94,234,212,.13); border-radius: 50%; }
.ring-a { width: 560px; height: 560px; right: -260px; top: 12%; }
.ring-b { width: 390px; height: 390px; right: -160px; top: 28%; border-color: rgba(96,165,250,.12); }

.login-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 36px; background: #f7fafb; }
.login-card { width: min(380px, 100%); }
.mobile-brand { display: none; }
.login-card h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.login-sub { margin: 8px 0 30px; color: var(--muted); font-size: 12.5px; }
.login-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.login-field > span { color: #334c62; font-size: 11.5px; font-weight: 600; }
.login-field em { margin-left: 5px; color: #9aabb9; font-style: normal; font-size: 9.5px; font-weight: 400; letter-spacing: .03em; }
.login-field input {
  width: 100%; height: 47px; padding: 0 14px;
  color: var(--ink); background: #fff; border: 1px solid #d5dfe7; border-radius: 10px;
  font-size: 14px; outline: none; transition: border .15s, box-shadow .15s;
}
.login-field input::placeholder { color: #aebbc6; }
.login-field input:focus { border-color: #55b7ab; box-shadow: 0 0 0 4px rgba(13,148,136,.09); }
.login-error { margin: -4px 0 14px; padding: 10px 12px; color: #991b1b; background: #fef1f1; border: 1px solid #f5d2d2; border-radius: 8px; font-size: 11.5px; line-height: 1.5; }
.login-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 47px; margin-top: 5px;
  color: #fff; background: linear-gradient(145deg, #0f8b80, #0f766e);
  border: 0; border-radius: 10px; font-size: 13.5px; font-weight: 650;
  box-shadow: 0 9px 24px rgba(15,118,110,.23); cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(15,118,110,.3); }
.login-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.login-btn svg { width: 18px; height: 18px; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 22px; color: #95a6b4; font-size: 10px; }
.login-foot i { width: 3px; height: 3px; background: #b7c5d0; border-radius: 50%; }
.login-copyright { position: absolute; bottom: 25px; margin: 0; color: #a4b3c0; font-size: 9.5px; }

@media (max-width: 900px) {
  .login-shell { display: block; min-height: 100vh; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 30px 24px 70px; background: linear-gradient(180deg, #f4faf9, #f7fafb 32%, #f4f7fa); }
  .login-card { width: min(390px, 100%); padding-top: 14px; }
  .mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 45px; }
  .mobile-brand .brand-mark { width: 42px; height: 42px; border-radius: 12px; color: #0f766e; background: #e2f5f1; border-color: #c9ebe5; box-shadow: none; }
  .mobile-brand .brand-mark svg { width: 27px; height: 27px; }
  .mobile-brand strong { font-size: 16px; letter-spacing: .06em; }
  .login-card h2 { font-size: 27px; }
}
