/* ===================================================================
   注册页面专属样式 (register.css) - 最终修正版
   [修正日期] 2025-08-25
   [说明] 移除了 .reg-container 依赖，使样式直接应用于 .section 内的表单。
=================================================================== */

/*
 * .section 的基础样式由 common.css 控制。
 * 我们在这里为其添加最大宽度，使其成为居中的表单容器。
 */
.main > .section {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}

#registerForm fieldset {
  border: none;
  padding: 0;
  margin: 0 0 30px 0;
  border-bottom: 1px solid var(--input-border);
  padding-bottom: 20px;
}

#registerForm fieldset:last-of-type {
  border-bottom: none;
  margin-bottom: 10px;
}

#registerForm legend {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 0;
  color: var(--text-main);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 14px;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group .input {
  flex-grow: 1;
}

.input-group .btn {
  flex-shrink: 0;
  padding: 8px 16px;
}

.form-hint {
  font-size: 12px;
  color: #666;
  min-height: 1.5em;
}

.form-status {
  text-align: center;
  margin-bottom: 15px;
  font-weight: 500;
  min-height: 1.5em;
}

.error {
  color: #e74a3b;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
}
.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

#registerBtn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

/* 服务条款弹窗 (样式保持不变) */
.agreement-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.agreement-content {
    background: var(--container-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.agreement-text {
    margin: 15px 0;
    line-height: 1.7;
}

.agreement-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}