/* 登录页：左边说清楚这是什么后台，右边只做一件事 */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
}

/* ---------- 左：品牌区 ---------- */
.brand {
  position: relative;
  padding: 44px 52px;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(255, 255, 255, .14), transparent 62%),
    radial-gradient(720px 520px at 96% 108%, rgba(255, 122, 61, .42), transparent 66%),
    linear-gradient(158deg, #FF5000 0%, #C43C00 46%, #1A1A1A 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.brand::after {
  /* 右下角一层极淡的同心圆，让大片蓝不至于空 */
  content: "";
  position: absolute;
  right: -160px; bottom: -190px;
  width: 560px; height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .04), 0 0 0 140px rgba(255, 255, 255, .03);
  pointer-events: none;
}
.brand-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.brand-top .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.brand-top .mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-top b { font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.brand-top span { font-size: 12px; opacity: .7; margin-left: 2px; }

.brand-mid { margin: auto 0; position: relative; z-index: 1; max-width: 430px; }
.brand-mid h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: .5px;
}
.brand-mid h1 em { font-style: normal; color: #ffd9c4; }
/* 新店开通流程（2026-11-15）：替代原来那四条功能清单 —— 从官网/朋友那儿过来的人
   关心的是「我怎么有一个号」，不是「你们有哪些功能」。 */
.brand-signup { margin-top: 22px; }
.bs-title { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .92); letter-spacing: .3px; }
.bs-steps { list-style: none; margin: 10px 0 0; padding: 0; }
.bs-steps li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.65; color: rgba(255, 255, 255, .74); }
.bs-steps li + li { margin-top: 7px; }
.bs-steps i {
  flex: none; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 11px; font-style: normal; text-align: center; line-height: 17px;
}
.bs-steps b { color: #fff; font-weight: 600; }
.bs-qr { display: flex; align-items: center; gap: 12px; margin-top: 16px;
  padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12); }
.bs-qr img { width: 68px; height: 68px; border-radius: 8px; background: #fff; object-fit: contain; }
.bs-qr-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bs-qr-t b { font-size: 12.5px; color: #fff; }
.bs-qr-t span { font-size: 11.5px; color: rgba(255, 255, 255, .66); line-height: 1.5; }
.bs-qr-t a { font-size: 11.5px; color: #ffd9c4; text-decoration: none; }
.bs-qr-t a:hover { text-decoration: underline; }

.brand-mid p {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .78);
}

.brand-points { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.brand-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
}
.brand-points i {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-style: normal;
  flex: none;
}

.brand-foot {
  position: relative; z-index: 1;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
  display: flex; gap: 14px; align-items: center;
}

/* ---------- 右：表单 ---------- */
.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.form { width: 340px; }
.form h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: .2px; }
.form .sub { margin: 7px 0 18px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 登录方式切换 ---------- */
.switch {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.switch button {
  position: relative;
  border: 0;
  background: none;
  padding: 0 0 9px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
}
.switch button:hover { color: var(--ink-2); }
.switch button.on { color: var(--ink); font-weight: 600; }
.switch button.on::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* 两个面板等高（2026-11-15 老板：切页签时卡片高度会跳）：
   扫码面板 334、密码面板 368，取大的那个做下限，切页签时外框不再变。
   用 min-height 而不是固定 height —— 密码错误提示多一两行时不会压住下面的条款。 */
.pane { min-height: 368px; }
.pane[hidden] { display: none; }

/* ---------- 扫码登录 ---------- */
/* 二维码放在白框里，四周留 16px 静区——少了静区，手机端识别会变慢 */
.qr-frame {
  position: relative;
  width: 212px;
  height: 212px;
  margin: 2px auto 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.qr-frame canvas { display: block; width: 180px; height: 180px; }
.qr-frame img { display: block; width: 180px; height: 180px; object-fit: cover; }
.qr-frame #qrLoading { z-index: 3; }

.qr-mask {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #fff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.qr-mask.on { display: flex; }
.qr-mask button {
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-ink);
  font-size: 12.5px;
  cursor: pointer;
}
.qr-mask button:hover { background: #f7f9fc; }

.qr-tip { margin-top: 16px; text-align: center; }
.qr-tip b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.qr-tip span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-4); line-height: 1.6; }

.qr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  font-size: 11.5px;
  color: var(--ink-4);
}

.link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 11.5px;
  color: var(--brand-ink);
  cursor: pointer;
}
.link:hover { text-decoration: underline; }

.demo-line {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 7px;
  background: var(--warm-bg);
  border: 1px solid #f4e4cd;
  font-size: 11.5px;
  line-height: 1.75;
  color: #7f4d14;
}
.demo-line .link { color: #7f4d14; font-weight: 500; text-decoration: underline; }

.fld { margin-bottom: 14px; }
.fld > label {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.fld > label a { margin-left: auto; font-size: 12px; color: var(--brand-ink); cursor: pointer; }

.inp {
  position: relative;
}
.inp input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inp input::placeholder { color: var(--ink-4); }
.inp input:focus { border-color: #FFC7A8; box-shadow: 0 0 0 3px rgba(255, 80, 0, .14); }
.inp .eye {
  position: absolute; right: 6px; top: 6px;
  width: 42px; height: 28px;
  white-space: nowrap;
  border: 0; background: transparent;
  color: var(--ink-4);
  cursor: pointer;
  border-radius: 5px;
  font-size: 12px;
}
.inp .eye:hover { background: #f3f5f8; color: var(--ink-2); }

.row-between { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 20px; }
.remember { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.remember input { width: 14px; height: 14px; accent-color: var(--brand); }

.submit {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .15s;
}
.submit:hover { background: #1a63d6; }
.submit:disabled { opacity: .6; cursor: not-allowed; }

.err {
  display: none;
  margin: 0 0 14px;
  padding: 9px 11px;
  border-radius: 6px;
  background: var(--danger-bg);
  color: var(--danger-ink);
  font-size: 12.5px;
  line-height: 1.6;
}
.err.on { display: block; }

.hint-box {
  margin-top: 26px;
  padding: 11px 13px;
  border-radius: 7px;
  background: #f7f9fc;
  border: 1px solid #eef1f6;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}
.hint-box b { color: var(--ink-2); font-weight: 600; }
.hint-box .code { font-family: var(--mono); color: var(--brand-ink); }

.legal { margin-top: 22px; font-size: 11.5px; color: var(--ink-4); line-height: 1.7; }
/* 协议名可点开看全文（2026-11-06）：与正文同色只加下划线，避免登录页出现两处抢眼的蓝 */
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #1f6feb; }

@media (max-width: 900px) {
  body { grid-template-columns: 1fr; }
  .brand { display: none; }
}

/* 矮屏（笔记本 600~640 高）收紧一档：加了开通流程后，620 高的窗口会把小程序码截掉 */
@media (max-height: 660px) and (min-width: 901px) {
  .brand { padding: 30px 44px; }
  .brand-mid h1 { font-size: 27px; }
  .brand-signup { margin-top: 16px; }
  .bs-steps li { font-size: 12px; line-height: 1.6; }
  .bs-qr { margin-top: 12px; padding: 8px 10px; }
  .bs-qr img { width: 56px; height: 56px; }
}

/* ============================================================
   登录页 · 与后台新版对齐（2026-10-27）
   右栏从「表单直接浮在白底上」改成一张有边界的登录卡：
   浅灰页面 + 白卡 + 双层柔光，输入与主按钮统一到 10px 圆角、
   主按钮带上品牌投影。小屏（品牌区隐藏时）自动退回无卡平铺。
   ============================================================ */
body { background: #f7f9fc; }

@media (min-width: 901px) {
  .panel { padding: 48px 40px; background: #f7f9fc; }
  .form {
    width: 396px;
    padding: 34px 36px 30px;
    border: 1px solid #e6ecf5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(24, 36, 56, .04), 0 24px 60px rgba(24, 36, 56, .09);
  }
}

.form h2 { font-size: 22px; font-weight: 650; letter-spacing: .2px; }
.form .sub { margin: 8px 0 20px; }

.switch { gap: 22px; margin-bottom: 22px; }
.switch button.on::after { height: 2.5px; border-radius: 3px 3px 0 0; background: var(--brand-grad); }

.inp input {
  height: 44px;
  padding: 0 13px;
  border-color: #dfe4ee;
  border-radius: 10px;
  font-size: 14px;
}
.inp input:hover { border-color: #cfd8e6; }
.inp input:focus { border-color: #FFC7A8; box-shadow: var(--ring); }
.inp .eye { top: 7px; right: 6px; width: 44px; height: 30px; border-radius: 8px; }

.submit {
  height: 46px;
  border-radius: 10px;
  background: var(--brand-grad);
  box-shadow: var(--shadow-brand);
  font-size: 15px;
  letter-spacing: 1px;
  transition: background .15s, box-shadow .15s;
}
.submit:hover { background: linear-gradient(135deg, #3379ef 0%, #1a63d6 58%, #12489f 100%); }

.qr-frame { border-radius: 14px; border-color: #e3e9f2; box-shadow: 0 1px 2px rgba(24, 36, 56, .04), 0 10px 24px rgba(24, 36, 56, .06); }
.qr-mask { border-radius: 14px; }
.qr-mask button { border-radius: 8px; }

.err { border-radius: 9px; }
.demo-line { border-radius: 10px; }
.hint-box { border-radius: 10px; border-color: #e9eef7; background: #f8fafd; }


/* 账号说明收成一行 + ?（2026-11-21） */
.hint-line { margin-top: 14px; font-size: 11.5px; color: #8b93a1; text-align: center; }
