/* Boss AI 前端公共样式 —— 还原登录/注册页设计 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-weak: #8a8a8a;
  --border: #e5e5e5;
  --card: #ffffff;
  --btn: #1a1a1a;
  --btn-text: #ffffff;
  --input-bg: #ffffff;
  --link: #1a1a1a;
}
[data-theme="dark"] {
  --bg: #0f0f0f;
  --text: #f0f0f0;
  --text-weak: #9a9a9a;
  --border: #2a2a2a;
  --card: #161616;
  --btn: #f0f0f0;
  --btn-text: #1a1a1a;
  --input-bg: #1c1c1c;
  --link: #f0f0f0;
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 0 20px 60px; }

/* 顶部栏 */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--border);
}
.brand { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.theme-toggle {
  width: 26px; height: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-weak); font-size: 20px;
}
.topbar-right a { color: var(--text-weak); text-decoration: none; font-size: 15px; }
.topbar-right a:hover { color: var(--text); }

/* 标题区 */
.hero { padding: 40px 4px 28px; }
.hero h1 { font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.hero p { margin-top: 10px; color: var(--text-weak); font-size: 16px; }

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* 表单 */
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.field input[type="text"], .field input[type="password"] {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--input-bg); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 16px; outline: none; transition: border-color .2s;
}
.field input[type="text"]:focus, .field input[type="password"]:focus {
  border-color: var(--text);
}

/* 协议勾选 */
.agreement {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 6px 0 22px; font-size: 15px; color: var(--text);
}
.agreement input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px; accent-color: #1a1a1a; cursor: pointer; flex-shrink: 0;
}
.agreement a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 按钮 */
.btn {
  display: block; width: 100%; height: 54px;
  background: var(--btn); color: var(--btn-text);
  border: none; border-radius: 12px;
  font-size: 17px; font-weight: 600; cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 底部链接 */
.switch-link { text-align: center; margin-top: 20px; }
.switch-link a { color: var(--text-weak); text-decoration: none; font-size: 15px; }
.switch-link a:hover { color: var(--text); text-decoration: underline; }

/* 支付方式 */
.pay-row { display: flex; gap: 14px; margin-bottom: 8px; }
.pay-option {
  flex: 1; height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer;
  font-size: 16px; font-weight: 600; background: var(--card); color: var(--text);
  transition: all .2s; position: relative;
}
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option .dot {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c0c0c0;
  display: flex; align-items: center; justify-content: center;
}
.pay-option .dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1a1a1a;
  transform: scale(0); transition: transform .15s;
}
.pay-option.checked { border-color: var(--text); background: #f2f2f2; }
[data-theme="dark"] .pay-option.checked { background: #262626; }
.pay-option.checked .dot { border-color: #1a1a1a; }
.pay-option.checked .dot::after { transform: scale(1); }
.pay-tip { color: var(--text-weak); font-size: 14px; margin: 8px 0 6px; }

/* 提示消息 */
.msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.msg.error { background: #fff0f0; color: #c0392b; border: 1px solid #ffd0d0; }
.msg.success { background: #f0fff4; color: #27ae60; border: 1px solid #c8f0d8; }
[data-theme="dark"] .msg.error { background: #3a1f1f; border-color: #6b3a3a; }
[data-theme="dark"] .msg.success { background: #1f3a28; border-color: #3a6b4a; }

/* 协议正文页 */
.doc { max-width: 720px; margin: 40px auto; padding: 0 20px; }
.doc h1 { font-size: 26px; margin-bottom: 18px; }
.doc h2 { font-size: 18px; margin: 22px 0 10px; }
.doc p { color: var(--text-weak); margin-bottom: 12px; font-size: 15px; }
