/* 主要内容 */
.main {
    min-height: calc(100vh - 80px - 60px);
    background: var(--bg-color);
    padding: 40px 0;
}

/* 注册区域 */
.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 注册表单 */
.register-form {
    padding: 40px;
}

.register-form h2 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}

/* 表单项 */
.form-item {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.input-wrapper .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.input-wrapper input {
    flex: 1;
    height: 40px;
    border: none;
    padding: 0 10px;
    font-size: 14px;
}

.input-wrapper input:focus {
    outline: none;
}

/* 输入提示 */
.input-tips {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 错误提示 */
.error-message {
    font-size: 12px;
    color: #f56c6c;
    margin-top: 5px;
    min-height: 17px;
}

/* 密码可见性切换 */
.toggle-password {
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* 验证码 */
.captcha-wrapper {
    gap: 10px;
}

.captcha-image {
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
}

/* 短信验证码 */
.sms-wrapper {
    gap: 10px;
}

.btn-send-code {
    min-width: 120px;
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-send-code:hover {
    background: #c13026;
}

.btn-send-code:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 用户协议 */
.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    color: var(--text-color);
}

.link-agreement,
.link-privacy {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.link-agreement:hover,
.link-privacy:hover {
    color: #c13026;
}

/* 注册按钮 */
.btn-register {
    width: 100%;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-register:hover {
    background: #c13026;
}

.btn-register:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 登录入口 */
.login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.login-link a:hover {
    color: #c13026;
}

/* 注册广告 */
.register-banner {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.register-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式布局 */
@media screen and (max-width: 1024px) {
    .register-wrapper {
        grid-template-columns: 1fr 400px;
    }
}

@media screen and (max-width: 768px) {
    .register-wrapper {
        grid-template-columns: 1fr;
    }

    .register-banner {
        display: none;
    }

    .register-form {
        padding: 30px 20px;
    }
}

/* 图标字体 */
.icon {
    font-family: "iconfont" !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-user::before {
    content: "\e7ae";
}

.icon-phone::before {
    content: "\e7b2";
}

.icon-email::before {
    content: "\e7bd";
}

.icon-lock::before {
    content: "\e7c9";
}

.icon-eye::before {
    content: "\e7a5";
}

.icon-shield::before {
    content: "\e7b2";
}

.icon-message::before {
    content: "\e7d2";
} 