* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #0f172a;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.auth-page.auth-grand {
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  background: #eef3f9;
  display: flex;
  flex-direction: column;
}
.auth-public-bar {
  flex-shrink: 0;
  background: linear-gradient(90deg, #171b27, #22283a 55%, #1a1f2c);
  color: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.auth-public-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.auth-public-brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
}
.auth-public-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.auth-public-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  font-weight: 650;
  font-size: 13px;
}
.auth-public-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.auth-public-nav a.is-active { color: #fff; background: rgba(59,130,246,.28); }
.auth-public-cta {
  padding: 7px 14px;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  font-size: 13px;
}
.auth-stage {
  flex: 1;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 0.72fr);
  overflow: hidden;
}
.auth-hero-pane {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background-color: #eef4fb;
  background-image:
    linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px),
    radial-gradient(circle at 16% 10%, rgba(37,99,235,.13), transparent 28rem),
    radial-gradient(circle at 88% 90%, rgba(14,165,233,.1), transparent 22rem),
    linear-gradient(165deg, #f7fbff 0%, #e8eef8 100%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  overflow: hidden;
}
.auth-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.auth-hero-brand .auth-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 18px rgba(37,99,235,.28);
  overflow: hidden;
}
.auth-hero-brand .auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.auth-hero-brand strong { display: block; font-size: 18px; letter-spacing: .02em; }
.auth-hero-brand small { color: #64748b; font-size: 12px; }
.auth-hero-copy { max-width: 42rem; }
.auth-hero-copy .auth-kicker {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 800;
}
.auth-hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  font-weight: 800;
}
.auth-hero-copy p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
  max-width: 38rem;
}

.auth-hero-media {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}
.auth-net-svg {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 98%;
  height: 64%;
  transform: translate(-50%, -50%);
  display: block;
  overflow: visible;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 52%, #000 46%, transparent 82%);
  mask-image: radial-gradient(ellipse 78% 72% at 50% 52%, #000 46%, transparent 82%);
}
.auth-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 28px 18px;
  background:
    linear-gradient(180deg, rgba(247,251,255,.7) 0%, rgba(247,251,255,.16) 16%, transparent 32%),
    linear-gradient(0deg, rgba(238,244,251,.7) 0%, rgba(238,244,251,.16) 14%, transparent 30%);
  pointer-events: none;
}
.auth-hero-top { max-width: 44rem; }
.auth-hero-top .auth-hero-brand { margin-bottom: 14px; }
.auth-hero-caption { display: flex; flex-direction: column; gap: 10px; }
.auth-ping {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 1.05;
}
.auth-core {
  fill: #1d4ed8;
  stroke: none;
}
.auth-core-sm {
  fill: #3b82f6;
}
.auth-land {
  shape-rendering: geometricPrecision;
}

.auth-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.auth-metric b {
  color: #1d4ed8;
  font-size: 14px;
}
.auth-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}
.auth-checks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.auth-checks li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2l2.3 2.3 4.7-5'/></svg>") center/10px 10px no-repeat;
}

.auth-form-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 36px 20px;
  background: #ffffff;
  border-left: 1px solid #e5eaf2;
  min-height: 0;
  overflow: auto;
}
.auth-card-light {
  width: min(400px, 100%);
  margin: 0 auto;
}
.auth-card-light h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #0f172a;
  font-weight: 800;
}
.auth-card-light .auth-subtitle {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.55;
  font-size: 14px;
}
.auth-form { display: grid; gap: 12px; }
.auth-card-light .auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dbe1ea;
  border-radius: 10px;
  background: #fff;
}
.auth-card-light .auth-field:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}
.auth-card-light .auth-field .field-ico { width: 18px; color: #94a3b8; text-align: center; }
.auth-card-light .auth-field input {
  border: 0;
  outline: none;
  width: 100%;
  height: 100%;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
}
.captcha-row {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 10px;
  align-items: stretch;
}
.captcha-image-btn {
  height: 44px;
  padding: 0;
  border: 1px solid #dbe1ea;
  border-radius: 10px;
  background:
    linear-gradient(90deg, #f1f5f9 25%, #fff 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: auth-shimmer 1.2s ease-in-out infinite;
  cursor: pointer;
  overflow: hidden;
}
.captcha-image-btn.is-ready { animation: none; background: #f8fafc; }
.captcha-image-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes auth-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
.auth-agree a { color: #2563eb; }
.auth-warn {
  margin: 0;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.6;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 8px 10px;
}
.auth-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(37,99,235,.22);
}
.auth-submit:hover { filter: brightness(1.03); }
.auth-switch { margin-top: 14px; text-align: center; }
.link-btn {
  border: 0;
  background: transparent;
  color: #2563eb;
  padding: 0;
  font-weight: 700;
}
.auth-form-pane .auth-footer {
  margin-top: 18px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  flex: 0 0 auto;
}
.login-message { min-height: 22px; margin-top: 12px; color: #16a34a; }
.login-message.error { color: #dc2626; }
.auth-register-only[hidden],
label.auth-register-only[hidden],
p.auth-register-only[hidden] {
  display: none !important;
}
.auth-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
.auth-success-overlay[hidden] { display: none !important; }
.auth-success-card {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  text-align: center;
}
.auth-success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #059669;
  font-size: 26px;
  font-weight: 800;
}
.auth-success-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}
.auth-success-card p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}
.auth-success-card .auth-submit { margin-top: 0; }

@media (max-width: 1180px) {
  .auth-stage { grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr); }
  .auth-hero-overlay { padding: 18px 20px 14px; }
  .auth-form-pane { padding: 24px 28px 16px; }
}
@media (max-width: 980px) {
  .auth-page.auth-grand { height: auto; max-height: none; overflow: auto; }
  .auth-stage { grid-template-columns: 1fr; height: auto; }
  .auth-hero-pane { min-height: auto; }
  .auth-hero-media { flex: none; height: min(58vh, 420px); }
  .auth-hero-overlay { padding: 16px 16px 12px; }
  .auth-form-pane {
    border-left: 0;
    border-top: 1px solid #e5eaf2;
    padding: 22px 18px 20px;
    overflow: visible;
  }
}

.login-support {
  margin-top: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 14px;
  background: rgba(248,250,252,.9);
  text-align: left;
}
.login-support-title {
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  font-size: 14px;
}
.login-support-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.login-support-row span { color: #64748b; min-width: 40px; font-weight: 700; }
.login-support-row strong, .login-support-row a { color: #0f172a; font-weight: 700; word-break: break-all; }
.login-support-wechat { padding-top: 8px; display: grid; gap: 8px; }
.login-support-wechat span { color: #64748b; font-size: 12px; font-weight: 700; }
.login-support-wechat img {
  width: 132px; height: 132px; object-fit: contain;
  border-radius: 10px; border: 1px solid #e2e8f0; background: #fff;
}
