/* ========== 注册页专属样式 ========== */

.register-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, var(--bg) 0%, var(--bg-alt) 60%, #FFF0F3 100%);
}

.register-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.register-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* ========== 左侧品牌介绍 ========== */
.register-intro {
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content {
    max-width: 420px;
}

.intro-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    text-decoration: none;
}

.logo-img-lg {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text-lg {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--dark);
}

.intro-content h1 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.intro-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 36px;
}

.intro-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.feat-icon { font-size: 1rem; }

.intro-stats {
    padding: 16px 20px;
    background: rgba(193, 53, 74, 0.06);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text);
}

.intro-stats strong {
    color: var(--primary);
    font-weight: 800;
}

/* ========== 右侧注册表单 ========== */
.register-form-wrap {
    display: flex;
    justify-content: center;
}

.form-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 32px;
    text-align: center;
}

/* ========== 微信注册按钮 ========== */
.wechat-section {
    margin-bottom: 28px;
}

.wechat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #07C160;
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.3);
}

.wechat-btn:hover {
    background: #06AD56;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(7, 193, 96, 0.4);
}

.wechat-btn:active {
    transform: translateY(0);
}

.wechat-icon {
    flex-shrink: 0;
}

/* ========== 分割线 ========== */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    white-space: nowrap;
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.input-wrap:focus-within {
    border-color: var(--primary);
    background: var(--white);
}

.input-wrap input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--dark);
    font-family: inherit;
    outline: none;
    width: 100%;
}

.input-wrap input::placeholder {
    color: #C0C0C8;
}

.input-prefix {
    padding: 14px 0 14px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    border-right: 1px solid var(--border);
    padding-right: 12px;
    margin-right: 4px;
}

/* 验证码输入 */
.input-wrap-code input {
    padding-right: 120px;
}

.btn-code {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-code:hover {
    background: var(--primary-dark);
}

.btn-code:disabled {
    background: #C0C0C8;
    cursor: not-allowed;
}

/* 密码切换 */
.btn-toggle-pwd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s ease;
}

.btn-toggle-pwd:hover {
    background: rgba(0,0,0,0.04);
    color: var(--text);
}

/* 协议勾选 */
.form-agreement {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked ~ .checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* 全宽按钮 */
.btn-full {
    width: 100%;
    justify-content: center;
    padding: 15px 36px;
    font-size: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 注册成功弹窗 */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: var(--dark);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #07C160;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .register-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .register-intro {
        text-align: center;
    }

    .intro-content {
        max-width: 440px;
        margin: 0 auto;
    }

    .intro-features {
        justify-content: center;
    }

    .intro-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .register-section {
        padding: 120px 0 48px;
    }

    .form-card {
        padding: 36px 24px;
    }

    .intro-content h1 {
        font-size: 1.7rem;
    }

    .intro-features {
        grid-template-columns: 1fr;
    }

    .intro-content br {
        display: none;
    }
}
