/* 商户登录/注册 — B站风格分栏 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  --bili: #00a1d6;
  --bili-hover: #00b5e5;
  --ink: #18191c;
  --mute: #9499a0;
  --line: #e3e5e7;
  --bg: #f1f2f3;
  --panel: #ffffff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.auth-bili {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% 100%, rgba(0,161,214,.12), transparent 55%),
    radial-gradient(800px 380px at 90% 100%, rgba(251,114,153,.1), transparent 50%),
    linear-gradient(180deg, #eaf6fb 0%, var(--bg) 45%, #e8edf2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 80px;
  position: relative;
  overflow-x: hidden;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mute);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}
.auth-close:hover { color: var(--ink); background: #f1f2f3; }

.auth-card {
  width: min(760px, 100%);
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}

.auth-left {
  padding: 40px 28px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f7fbfe 100%);
}
.auth-left h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
}
.auth-qr {
  width: 180px;
  height: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.auth-qr img { width: 100%; height: 100%; display: block; }
.auth-left p {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.6;
  max-width: 220px;
}
.auth-left p em {
  font-style: normal;
  color: var(--bili);
  font-weight: 600;
}
.auth-brand-mini {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
  font-size: 12px;
}
.auth-brand-mini img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.auth-right {
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.auth-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.auth-tabs a {
  position: relative;
  padding: 0 0 12px;
  text-decoration: none;
  color: var(--mute);
  font-size: 15px;
  font-weight: 600;
}
.auth-tabs a.active { color: var(--bili); }
.auth-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--bili);
}

.auth-fields {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.auth-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  min-height: 48px;
  padding: 0 12px 0 14px;
  border-bottom: 1px solid var(--line);
}
.auth-row:last-child { border-bottom: 0; }
.auth-row label {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.auth-row input.form-control,
.auth-row input {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  height: 46px;
  padding: 0 8px !important;
  font-size: 14px;
  background: transparent !important;
  width: 100%;
}
.auth-row input::placeholder { color: #c0c4cc; }
.auth-row .auth-side {
  font-size: 13px;
  color: var(--bili);
  text-decoration: none;
  white-space: nowrap;
  padding-left: 8px;
}
.auth-row .auth-side:hover { color: var(--bili-hover); }
.auth-row .auth-side.btn-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-captcha {
  margin-top: 14px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.auth-btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.auth-btn--ghost:hover { border-color: #c9ccd0; background: #fafafa; }
.auth-btn--primary {
  background: var(--bili);
  color: #fff;
  border-color: var(--bili);
}
.auth-btn--primary:hover { background: var(--bili-hover); }
.auth-btn--block {
  width: 100%;
  margin-top: 12px;
}
.auth-btn[disabled] { opacity: .6; cursor: not-allowed; }

.auth-other {
  margin-top: 22px;
  text-align: center;
}
.auth-other__title {
  position: relative;
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 12px;
}
.auth-other__title::before,
.auth-other__title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--line);
}
.auth-other__title::before { left: 0; }
.auth-other__title::after { right: 0; }
.auth-other__icons {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.auth-other__icons button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.auth-other__icons button:hover { border-color: var(--bili); }
.auth-other__icons img { width: 20px; height: 20px; border-radius: 50%; }
.auth-other__icons i { font-size: 18px; }

.auth-agree {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  color: var(--mute);
  line-height: 1.7;
}
.auth-agree a { color: var(--bili); text-decoration: none; }
.auth-agree a:hover { text-decoration: underline; }
.auth-agree .checkbox,
.auth-agree label {
  font-weight: 400;
  color: var(--mute);
  margin: 0 0 8px;
}

.auth-mascots {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 4vw;
  z-index: 1;
}
.auth-mascots img {
  width: min(160px, 22vw);
  height: auto;
  opacity: .95;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.08));
}
.auth-mascots img:last-child { transform: scaleX(-1); }

.auth-home {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  backdrop-filter: blur(8px);
}
.auth-home img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

@media (max-width: 720px) {
  body.auth-bili { padding: 16px 12px 24px; align-items: flex-start; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-mascots { display: none; }
  .auth-right { min-height: auto; padding: 22px 18px 18px; }
}
