@charset "UTF-8";
/* ============ 登录 / 注册 ============ */
.auth-body {
  min-height: 100vh; background:
    radial-gradient(900px 560px at 8% 18%, rgba(36, 189, 135, .09), transparent 62%),
    radial-gradient(700px 480px at 92% 84%, rgba(16, 161, 113, .08), transparent 60%),
    #fbfdfc;
  color: var(--ink); overflow-x: hidden;
}
.auth-atmosphere { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.glow-a { width: 680px; height: 680px; left: -240px; top: -230px; background: radial-gradient(circle, rgba(36,189,135,.16), transparent 68%); }
.glow-b { width: 640px; height: 640px; right: -220px; bottom: -240px; background: radial-gradient(circle, rgba(12,98,72,.11), transparent 68%); }
.grid-plane {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,74,55,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,74,55,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 72%);
  opacity: .7;
}

.auth-shell {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(540px, 1.12fr) minmax(430px, .88fr);
  min-height: 100vh; max-width: 1560px; margin: 0 auto;
}
.auth-visual { display: flex; flex-direction: column; padding: 40px 52px 30px; position: relative; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-mark {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: linear-gradient(148deg, #0a4433, #0d7f5b 58%, #14ab77);
  color: #b6f5d9; border: 1px solid rgba(19, 128, 92, .4);
  box-shadow: 0 10px 24px rgba(9, 74, 54, .22), inset 0 1px 0 rgba(255,255,255,.24);
}
.auth-brand .brand-mark svg { width: 32px; height: 32px; }
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.auth-brand-text strong { font-size: 15px; font-weight: 700; color: var(--green-950); letter-spacing: .3px; }
.auth-brand-text em { font-style: normal; font-size: 8.5px; letter-spacing: 2.1px; color: var(--faint); margin-top: 2px; }

.auth-copy { margin-top: 66px; max-width: 600px; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: 2px; color: var(--green-700); }
.auth-eyebrow i { width: 18px; height: 1px; background: var(--brand); display: inline-block; }
.auth-eyebrow.small { font-size: 8.5px; letter-spacing: 2.2px; color: var(--faint); }
.auth-copy h1 { margin-top: 15px; font-size: 44px; line-height: 1.22; font-weight: 700; letter-spacing: -1.4px; color: var(--green-950); }
.auth-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #0b6d50, #16b57f 72%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.auth-copy p { margin-top: 16px; font-size: 13.5px; line-height: 1.85; color: var(--muted); max-width: 530px; }

.auth-flow { position: relative; margin-top: 24px; max-width: 660px; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-track { fill: none; stroke: url(#flowLine); stroke-width: 1.4; stroke-dasharray: 5 7; animation: dash 12s linear infinite; }
.flow-track.second { opacity: .55; animation-duration: 16s; }
.flow-node { fill: #fff; stroke: #12a171; stroke-width: 2; filter: url(#softGlow); }
.flow-node.ghost { stroke: #9fdcc3; stroke-width: 1.5; }
.flow-card rect { fill: rgba(255, 255, 255, .92); stroke: #dfeee7; stroke-width: 1; filter: drop-shadow(0 8px 18px rgba(10, 60, 44, .08)); }
.flow-card .card-label { font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; fill: #173e33; }
.flow-card .card-sub { font-family: var(--font-sans); font-size: 8.5px; fill: #849a91; letter-spacing: .4px; }
.flow-card .card-dot { fill: #17b87c; opacity: .9; }
.flow-card .card-dot.amber { fill: #dcae63; }
.flow-card .card-dot.deep { fill: #0c6a4e; }
.card-a { animation: floatY 7s ease-in-out infinite; }
.card-b { animation: floatY 8.5s ease-in-out infinite .6s; }
.card-c { animation: floatY 7.8s ease-in-out infinite 1.2s; }
.flow-badge {
  position: absolute; right: 6px; bottom: 2px; display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 13px;
  box-shadow: 0 14px 36px rgba(9, 60, 43, .1);
}
.flow-badge .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #17b87c; animation: pulse 2s infinite; box-shadow: 0 0 0 4px rgba(23,184,124,.13); }
.flow-badge div { display: flex; flex-direction: column; line-height: 1.35; }
.flow-badge b { font-size: 10.5px; font-weight: 700; color: var(--ink); }
.flow-badge span { font-size: 9px; color: var(--faint); letter-spacing: .3px; }

.auth-points { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px 30px; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.pt-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.8); border: 1px solid var(--mint-200); color: var(--green-700); box-shadow: 0 4px 12px rgba(10,60,44,.05); }
.pt-ic svg { width: 16px; height: 16px; }
.auth-points b { display: block; font-size: 11.8px; font-weight: 700; color: var(--ink); }
.auth-points em { display: block; font-style: normal; font-size: 10.3px; color: var(--faint); margin-top: 1px; }
.auth-company { margin-top: auto; padding-top: 30px; font-size: 9.5px; letter-spacing: .8px; color: var(--faint); }

.register-metrics { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 480px; }
.rm-item { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; display: flex; align-items: baseline; gap: 8px; }
.rm-item b { font-family: var(--font-num); font-size: 22px; font-weight: 700; color: var(--green-800); letter-spacing: .3px; }
.rm-item span { font-size: 10.5px; color: var(--muted); }

.auth-panel { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 42px 48px; position: relative; }
.auth-card {
  width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 33px 31px 27px; position: relative;
  box-shadow: 0 36px 90px rgba(8, 52, 38, .1), 0 2px 6px rgba(8,52,38,.04);
  animation: fadeUp .55s var(--ease) both;
}
.auth-card::before {
  content: ""; position: absolute; left: 31px; right: 31px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--mint-300) 60%, transparent);
  border-radius: 2px;
}
.auth-card-head h2 { font-size: 25px; font-weight: 700; letter-spacing: -.7px; color: var(--green-950); margin-top: 7px; }
.auth-card-head p { font-size: 12px; color: var(--muted); margin-top: 5px; }
#loginForm, #registerForm { margin-top: 23px; display: flex; flex-direction: column; gap: 15px; }
.auth-card .field-label { font-size: 11.5px; color: var(--ink-2); }
.auth-card .input-wrap { min-height: 45px; border-radius: 11px; background: #fbfdfc; }
.auth-card .input-wrap:focus-within { background: #fff; }
.auth-card .input-wrap input { font-size: 13px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -1px; }
.secure-note { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--faint); }
.secure-note .ic { width: 13px; height: 13px; color: #4caf8b; }
.link-muted { font-size: 11px; color: var(--green-700); font-weight: 600; }
.link-muted:hover { text-decoration: underline; }
.auth-error { background: var(--red-bg); border: 1px solid #f1d6d2; color: var(--red); font-size: 11.5px; padding: 9px 11px; border-radius: 8px; line-height: 1.5; }
.auth-card .btn-lg { margin-top: 3px; }
.auth-card .btn-ghost { border-color: var(--line-strong); background: #fff; color: var(--ink-2); font-weight: 600; }
.auth-card .btn-ghost:hover { background: var(--mint-50); border-color: var(--mint-300); color: var(--green-700); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font-size: 10px; color: var(--faint); letter-spacing: .6px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-note { margin-top: 13px; font-size: 9.8px; color: var(--faint); text-align: center; line-height: 1.7; }
.auth-foot { position: absolute; bottom: 20px; display: flex; gap: 7px; font-size: 9.5px; color: var(--faint); flex-wrap: wrap; justify-content: center; padding: 0 12px; }

.register-card { max-width: 520px; padding: 28px 30px 24px; }
.register-card .auth-card-head h2 { font-size: 23px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.register-card #registerForm { gap: 14px; margin-top: 19px; }
.pwd-meter { display: block; height: 3px; border-radius: 3px; background: #eef4f1; margin-top: 6px; overflow: hidden; }
.pwd-meter i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 3px; transition: width .2s, background .2s; }
.agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 10.8px; color: var(--muted); line-height: 1.55; cursor: pointer; }
.agree-row input { width: 14px; height: 14px; margin-top: 1px; accent-color: var(--brand); flex: none; }

/* 登录页 toast */
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 9px; }
.toast {
  min-width: 250px; max-width: 380px; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: 11px; padding: 12px 14px;
  box-shadow: 0 20px 50px rgba(6, 42, 30, .16); font-size: 12px; line-height: 1.55;
  animation: slideRight .25s var(--ease); color: var(--ink-2);
}
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }

@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(430px, 1fr) minmax(400px, .92fr); }
  .auth-visual { padding: 34px 38px 24px; }
  .auth-copy h1 { font-size: 37px; }
  .auth-copy { margin-top: 48px; }
  .auth-points { gap: 12px 20px; }
}
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 34px 22px 60px; }
  .auth-card { box-shadow: 0 24px 70px rgba(8,52,38,.12); }
}
@media (max-width: 560px) {
  .auth-card { padding: 26px 20px 22px; border-radius: 17px; }
  .auth-card-head h2 { font-size: 22px; }
  .register-card .form-grid { grid-template-columns: 1fr; }
  .auth-foot { position: static; margin-top: 26px; }
  .auth-panel { justify-content: flex-start; padding-top: 24px; }
}
