/* 登录页专属样式（配色沿用生成页：浅蓝白底 + 深蓝主色） */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* .field 的 display:block 会盖掉 UA 的 [hidden]，注册/登录互斥的字段就藏不住 */
[hidden] { display: none !important; }

:root {
  --blue: #2b5aa6;
  --blue-deep: #1e3a6e;
  --coral: #f05548;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--text);
  background: #f7fafd;
  min-height: 100vh;
}

.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---- 左侧品牌区 ---- */
.brand-panel {
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.brand-panel::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.brand-panel::before {
  content: "";
  position: absolute;
  right: 60px; top: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 209, 59, 0.14);
}
.brand-logo {
  width: 92px; height: 92px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 24px;
  padding: 12px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(8, 26, 58, .22);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-panel h1 { font-size: 30px; letter-spacing: 1px; }
.brand-sub { margin: 10px 0 26px; font-size: 14.5px; opacity: 0.85; }
.brand-points { list-style: none; margin-bottom: 30px; }
.brand-points li {
  font-size: 14px;
  line-height: 2.1;
  opacity: 0.92;
}
.brand-price {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 16px 20px;
  max-width: 360px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  line-height: 2.2;
}
.price-row b { font-weight: 700; }
.price-row b::before { content: ""; }
.brand-back {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  text-decoration: none;
}
.brand-back:hover { color: #fff; }

/* ---- 右侧表单区 ---- */
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.form-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(43, 90, 166, 0.12);
  padding: 36px 34px 30px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef2f8;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}
.tab {
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(43, 90, 166, 0.15);
}

.form-tip {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

.field { display: block; margin-bottom: 16px; }
.field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.field input:focus { border-color: var(--blue); }

.form-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--coral);
  font-size: 13px;
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 16px;
}

.submit {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}
.submit:hover { opacity: 0.92; }
.submit:active { transform: scale(0.99); }
.submit:disabled { opacity: 0.6; cursor: wait; }

.form-foot {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ---- 窄屏：品牌区收起成顶栏 ---- */
@media (max-width: 760px) {
  .page { grid-template-columns: 1fr; }
  .brand-panel {
    padding: 30px 24px 26px;
    justify-content: flex-start;
  }
  .brand-points { display: none; }
  .brand-price { max-width: none; }
  .brand-back { margin-top: 14px; }
  .form-panel { padding: 26px 18px 40px; }
}

/* 邀请码输入 */
.field .opt { font-style: normal; font-weight: 400; font-size: 11.5px; color: #8a94a6; margin-left: 6px; }

/* ---- 短信验证码 ---- */
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; letter-spacing: 2px; }
.code-btn {
  flex: 0 0 116px;
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--blue);
  background: #eef4ff;
  border: 1.5px solid #cfe0ff;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.code-btn:hover:not(:disabled) { background: #e2ecff; }
.code-btn:disabled { color: #9aa4b2; background: #f4f6fa; border-color: #e3e8f0; cursor: default; }
.field #code-hint { display: block; margin-top: 6px; font-size: 11.5px; color: #8a94a6; }
.field #code-hint[hidden] { display: none; }

/* ---- 公告提示条 ---- */
.login-notice {
  margin-bottom: 18px; padding: 10px 13px;
  border-radius: 10px; font-size: 13px; line-height: 1.7;
  background: #eff5fe; border: 1px solid #c7dbfa; color: #1e3a6e;
  white-space: pre-wrap; word-break: break-word;
}
.login-notice.warn { background: #fff7ed; border-color: #fed7aa; color: #92400e; }

/* 渠道代理入口（登录页页脚） */
.agent-entry {
  display: inline-block;
  margin-top: 6px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.agent-entry:hover { text-decoration: underline; }
