/* 注册页面样式 - 高端大气卡片模式 */

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

body.register-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 50%, #e8f4f8 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.bg-circle.c1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
}

.bg-circle.c2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

.bg-circle.c3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 30%;
    background: rgba(255, 255, 255, 0.3);
}

/* 头部 */
.reg-header {
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.back-home {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 主内容区 */
.reg-main {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
}

.reg-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    min-height: 600px;
}

/* 左侧欢迎区 */
.welcome-box {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-box h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.welcome-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.features .icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 右侧注册卡片 */
.reg-card {
    flex: 1;
    padding: 40px 50px;
    background: #fff;
}

.card-hd {
    text-align: center;
    margin-bottom: 30px;
}

.card-hd h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.card-hd p {
    color: #999;
    font-size: 14px;
}

.card-hd a {
    color: #e84393;
    text-decoration: none;
}

.card-hd a:hover {
    text-decoration: underline;
}

/* 注册类型切换 */
.reg-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.reg-tabs .tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.reg-tabs .tab:hover {
    color: #e84393;
}

.reg-tabs .tab.active {
    color: #e84393;
    border-bottom-color: #e84393;
    font-weight: 500;
}

/* 表单样式 */
.reg-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-item {
    position: relative;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-wrap:focus-within {
    border-color: #e84393;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.1);
}

.input-icon {
    font-size: 18px;
    margin-right: 10px;
    opacity: 0.6;
}

.input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 14px;
    outline: none;
}

.input-wrap input::placeholder {
    color: #aaa;
}

/* 验证码 */
.verify-wrap {
    padding-right: 5px;
}

.verify-img {
    height: 36px;
    cursor: pointer;
    border-radius: 6px;
}

/* 短信验证码 */
.sms-wrap {
    padding-right: 5px;
}

.sms-btn {
    padding: 8px 15px;
    background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sms-btn:hover {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    transform: scale(1.05);
}

.sms-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 密码强度 */
.pwd-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.strength-item {
    padding: 2px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 11px;
    transition: all 0.3s ease;
}

.strength-item.active {
    background: #52c41a;
    color: #fff;
}

.strength-item.active:nth-child(2) {
    background: #ff4d4f;
}

.strength-item.active:nth-child(3) {
    background: #faad14;
}

.strength-item.active:nth-child(4) {
    background: #52c41a;
}

/* 提示信息 */
.tip {
    display: block;
    font-size: 12px;
    color: #ff4d4f;
    margin-top: 5px;
    min-height: 18px;
}

/* 协议 */
.agreement {
    margin-top: 10px;
}

.agreement label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e84393;
}

.agreement a {
    color: #e84393;
    text-decoration: none;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* 第三方登录 */
.third-login {
    margin-top: 25px;
    text-align: center;
}

.third-login p {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    position: relative;
}

.third-login p::before,
.third-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: #e0e0e0;
}

.third-login p::before {
    left: 0;
}

.third-login p::after {
    right: 0;
}

.third-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.third-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 20px;
}

.third-icons .wx {
    background: #07c160;
    color: #fff;
}

.third-icons .qq {
    background: #12b7f5;
    color: #fff;
}

.third-icons .wb {
    background: #e6162d;
    color: #fff;
}

.third-icons a:hover {
    transform: scale(1.1);
}

/* 底部 */
.reg-footer {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    position: relative;
    z-index: 10;
}

/* 响应式 */
@media (max-width: 768px) {
    .reg-container {
        flex-direction: column;
    }
    
    .welcome-box {
        padding: 40px 30px;
        text-align: center;
    }
    
    .welcome-box h1 {
        font-size: 28px;
    }
    
    .features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .reg-card {
        padding: 30px 25px;
    }
    
    .header-wrap {
        padding: 0 20px;
    }
}
