*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:14px;
  line-height:1.6;
  color:#d4d4d4;
  background:transparent;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:24px 12px;
}

/* ── 表单卡片 ── */
.reg-card{
  width:100%;
  max-width:420px;
  background:#1a1a2e;
  border:1px solid #2a2a4a;
  border-radius:10px;
  padding:32px 28px 28px;
  box-shadow:0 4px 24px rgba(0,0,0,.35);
}

.reg-card h2{
  text-align:center;
  font-size:20px;
  font-weight:600;
  color:#e8e8f0;
  margin-bottom:24px;
  letter-spacing:1px;
}

/* ── 状态消息 ── */
.status-msg{
  display:none;
  padding:10px 14px;
  border-radius:6px;
  font-size:13px;
  margin-bottom:16px;
  line-height:1.5;
}
.status-msg.show{display:block}
.status-msg.info{background:#1a2a3a;color:#7eb8da;border:1px solid #2a4a6a}
.status-msg.error{background:#3a1a1a;color:#e87c7c;border:1px solid #6a2a2a}
.status-msg.success{background:#1a3a2a;color:#7cd8a8;border:1px solid #2a6a4a}

/* ── 分组标题 ── */
.section-label{
  font-size:12px;
  font-weight:600;
  color:#8888aa;
  text-transform:uppercase;
  letter-spacing:2px;
  margin:20px 0 12px;
  padding-bottom:6px;
  border-bottom:1px solid #2a2a4a;
}
.section-label:first-of-type{margin-top:0}

/* ── 表单字段 ── */
.field{margin-bottom:14px}
.field label{
  display:block;
  font-size:13px;
  color:#a0a0b8;
  margin-bottom:5px;
  font-weight:500;
}
.field label .req{color:#e87c7c;margin-left:2px}

.field input,.field select{
  width:100%;
  padding:10px 12px;
  background:#12122a;
  border:1px solid #2a2a4a;
  border-radius:6px;
  color:#e0e0f0;
  font-size:14px;
  outline:none;
  transition:border-color .2s;
}
.field input:focus,.field select:focus{
  border-color:#6c6cff;
  box-shadow:0 0 0 2px rgba(108,108,255,.15);
}
.field input::placeholder{color:#555568;font-size:13px}

.field .hint{
  font-size:12px;
  color:#666680;
  margin-top:4px;
  line-height:1.4;
}
.field .hint.is-error{color:#e87c7c}
.field .hint.is-success{color:#7cd8a8}
.field .hint.is-info{color:#7eb8da}

/* ── 密码强度 ── */
.pwd-strength{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  font-size:12px;
}
.pwd-strength .label{color:#666680}
.pwd-strength .bar{
  width:40px;height:4px;
  border-radius:2px;
  background:#2a2a4a;
  transition:background .2s;
}
.pwd-strength .bar.weak{background:#e87c7c}
.pwd-strength .bar.medium{background:#e8c87c}
.pwd-strength .bar.strong{background:#7cd8a8}

/* ── 性别选择 ── */
.sex-row{
  display:flex;
  gap:12px;
}
.sex-chip{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 20px;
  background:#10142c;      /* 暗藏蓝底色 */
  border:1px solid #25305a; /* 默认暗蓝边框 */
  border-radius:6px;
  cursor:pointer;
  font-size:14px;
  color:#9cb8e6;            /* 默认淡蓝文字 */
  transition:all .2s;
}
input:checked + span {
  background: #0055cc;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
}
.sex-chip input{display:none}

/* ── 验证码 ── */
.captcha-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.captcha-row input{flex:1}
.captcha-row img{
  height:42px;
  border-radius:6px;
  cursor:pointer;
  border:1px solid #2a2a4a;
}
.captcha-row .refresh-btn{
  background:none;
  border:1px solid #2a2a4a;
  color:#8888aa;
  padding:8px 12px;
  border-radius:6px;
  cursor:pointer;
  font-size:12px;
  white-space:nowrap;
  transition:all .2s;
}
.captcha-row .refresh-btn:hover{border-color:#6c6cff;color:#c0c0ff}

/* ── 协议勾选 ── */
.agree-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:18px 0 20px;
  font-size:13px;
  color:#8888aa;
  line-height:1.5;
  cursor:pointer;
}
.agree-row input[type="checkbox"]{
  margin-top:3px;
  accent-color:#6c6cff;
  flex-shrink:0;
}

/* ── 提交按钮 ── */
.submit-btn{
  width:100%;
  padding:12px;
  background:linear-gradient(135deg,#5252d4,#6c6cff);
  color:#fff;
  border:none;
  border-radius:6px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:all .2s;
  letter-spacing:1px;
}
.submit-btn:hover{
  background:linear-gradient(135deg,#6262e4,#7c7cff);
  box-shadow:0 4px 16px rgba(108,108,255,.3);
}
.submit-btn:active{transform:scale(.98)}
.submit-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
