/* 注册页面样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f5f5f5; font-family: "Microsoft YaHei", sans-serif; text-align: left !important; }

/* 重置全局样式 */
.reg-main *, .reg-step-bar *, .has-account * { text-align: left; }
.reg-third-section { text-align: center !important; }
.reg-third-section .third-title { text-align: center !important; }
.has-account { text-align: center !important; }

/* 步骤条 */
.reg-step-bar {
    background: #f5f5f5;
    padding: 35px 0;
    margin-bottom: 20px;
}
.reg-step-bar .step-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.reg-step {
    display: flex;
    align-items: center;
}
.step-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    background: #e0e0e0;
    color: #999;
    font-size: 16px;
    position: relative;
    text-align: center !important;
}
.step-item span {
    text-align: center !important;
}
.step-item.active {
    background: #5cadff;
    color: #fff;
}
.step-item.active::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 20px solid #5cadff;
    z-index: 2;
}
.step-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 20px solid #f5f5f5;
}
.step-item:not(:first-child) {
    padding-left: 50px;
}

/* 注册主体 */
.reg-main {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    min-height: 500px;
}

/* 左侧表单 */
.reg-form-section {
    flex: 1;
    padding: 40px 60px;
    border-right: 1px solid #e0e0e0;
}
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.form-label {
    width: 100px;
    text-align: right;
    padding-right: 15px;
    color: #666;
    font-size: 14px;
}
.form-label .required {
    color: #ff4d4f;
    margin-right: 4px;
}
.form-input {
    flex: 1;
}
.form-input input {
    width: 100%;
    max-width: 320px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}
.form-input input:focus {
    border-color: #5cadff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 173, 255, 0.2);
}
.form-input input.error {
    border-color: #ff4d4f;
}
.form-tips {
    margin-left: 10px;
    color: #999;
    font-size: 12px;
}
.form-tips.error {
    color: #ff4d4f;
}
.form-tips.success {
    color: #52c41a;
}

/* 协议 */
.agreement-row {
    margin: 30px 0 30px 100px;
    display: flex;
    align-items: center;
}
.agreement-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}
.agreement-row label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
}
.agreement-row a {
    color: #5cadff;
    text-decoration: none;
}

/* 注册按钮 */
.submit-row {
    margin-left: 100px;
    text-align: center !important;
}
.submit-btn {
    width: 100%;
    max-width: 320px;
    height: 44px;
    background: #5cadff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.submit-btn:hover {
    background: #4a9eff;
}

/* 右侧第三方登录 */
.reg-third-section {
    width: 280px;
    padding: 60px 40px;
    text-align: center;
}
.third-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}
.third-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.third-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}
.third-icon:hover {
    transform: scale(1.1);
}
.third-icon.qq {
    background: #f0f8ff;
}
.third-icon.qq img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.third-icon.wechat {
    background: #f0fff0;
}
.third-icon.wechat img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* 已有账号 */
.has-account {
    text-align: center;
    padding: 20px;
    background: #fff;
    max-width: 1000px;
    margin: 20px auto;
    border: 1px solid #e0e0e0;
}
.has-account a {
    color: #5cadff;
    text-decoration: none;
}
