/* 登录注册页面样式 - 艺而亿定制商城 */

/* CSS变量定义 */
:root {
    --zh-primary-color: #D32F2F;
    --zh-primary-hover: #B71C1C;
    --zh-secondary-color: #FBC02D;
    --zh-text-primary: #333333;
    --zh-text-secondary: #666666;
    --zh-text-light: #999999;
    --zh-bg-light: #F5F5F5;
    --zh-bg-white: #FFFFFF;
    --zh-border-color: #E0E0E0;
    --zh-disabled-color: #9E9E9E;
    --zh-success-color: #4CAF50;
    --zh-error-color: #F44336;
    --zh-warning-color: #FF9800;
    --zh-shadow: 0 2px 12px rgba(0,0,0,0.1);
    --zh-shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --zh-radius: 12px;
    --zh-radius-small: 6px;
    --zh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式重置 */
* {
    box-sizing: border-box;
}

/* 页面基础样式 */
.zh_auth_body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.zh_login_container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主要内容区域 */
.zh_main_content {
    flex: 1;
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

/* 背景装饰 */
.zh_bg_decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.zh_bg_circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: zh_float 20s ease-in-out infinite;
}

.zh_circle_1 {
    width: 200px;
    height: 200px;
    background: var(--zh-primary-color);
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.zh_circle_2 {
    width: 150px;
    height: 150px;
    background: var(--zh-secondary-color);
    bottom: 20%;
    left: 10%;
    animation-delay: -7s;
}

.zh_circle_3 {
    width: 100px;
    height: 100px;
    background: var(--zh-primary-color);
    top: 50%;
    left: 5%;
    animation-delay: -14s;
}

@keyframes zh_float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-20px) rotate(120deg); 
    }
    66% { 
        transform: translateY(20px) rotate(240deg); 
    }
}

/* 认证容器 */
.zh_auth_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.zh_auth_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    background: var(--zh-bg-white);
    border-radius: var(--zh-radius);
    box-shadow: var(--zh-shadow);
    overflow: hidden;
    min-height: 700px;
}

/* 左侧介绍区域 */
.zh_intro_section {
    background: linear-gradient(135deg, var(--zh-primary-color) 0%, #E57373 100%);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.zh_intro_section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.zh_intro_header {
    position: relative;
    z-index: 1;
}

.zh_brand_logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 600;
}

.zh_brand_logo i {
    font-size: 24px;
    color: var(--zh-secondary-color);
}

.zh_intro_title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.zh_intro_subtitle {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.9;
    line-height: 1.4;
}

.zh_intro_content {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.zh_platform_desc {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

/* 平台特色 */
.zh_platform_features {
    position: relative;
    z-index: 1;
}

.zh_features_title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.zh_features_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.zh_feature_item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--zh-radius-small);
    backdrop-filter: blur(10px);
    transition: var(--zh-transition);
}

.zh_feature_item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.zh_feature_icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--zh-secondary-color);
    flex-shrink: 0;
}

.zh_feature_content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.zh_feature_content p {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

/* 会员权益 */
.zh_member_benefits {
    margin-top: 20px;
}

.zh_benefit_item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.4;
}

.zh_benefit_item i {
    color: var(--zh-secondary-color);
    width: 20px;
    text-align: center;
}

/* 平台数据统计 */
.zh_platform_stats {
    position: relative;
    z-index: 1;
}

.zh_stats_title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.zh_stats_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.zh_stat_item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--zh-radius-small);
    backdrop-filter: blur(10px);
}

.zh_stat_number {
    font-size: 28px;
    font-weight: 700;
    color: var(--zh-secondary-color);
    margin-bottom: 5px;
}

.zh_stat_label {
    font-size: 14px;
    opacity: 0.8;
}

/* 右侧表单区域 */
.zh_form_section {
    padding: 50px 40px;
}

.zh_form_card {
    max-width: 400px;
    margin: 0 auto;
}

.zh_form_header {
    text-align: center;
    margin-bottom: 40px;
}

.zh_form_title {
    font-size: 28px;
    font-weight: 700;
    color: var(--zh-text-primary);
    margin: 0 0 10px 0;
}

.zh_form_subtitle {
    font-size: 16px;
    color: var(--zh-text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* 选项卡切换 */
.zh_tab_switcher {
    display: flex;
    background: var(--zh-bg-light);
    border-radius: var(--zh-radius-small);
    padding: 4px;
    margin-bottom: 30px;
}

.zh_tab_btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--zh-text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--zh-radius-small);
    cursor: pointer;
    transition: var(--zh-transition);
}

.zh_tab_btn:hover {
    color: var(--zh-primary-color);
}

.zh_tab_btn.zh_active {
    background: var(--zh-primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.zh_tab_btn i {
    font-size: 16px;
}

/* 推荐人信息 */
.zh_referrer_info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: var(--zh-radius-small);
    padding: 15px;
    margin-bottom: 25px;
}

.zh_referrer_content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1976d2;
    font-size: 14px;
}

.zh_referrer_content i {
    font-size: 16px;
}

/* 表单样式 */
.zh_login_form,
.zh_register_form {
    transition: var(--zh-transition);
}

.zh_hidden {
    display: none !important;
}

.zh_form_group {
    margin-bottom: 25px;
}

.zh_form_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--zh-text-primary);
    margin-bottom: 8px;
}

.zh_form_label i {
    color: var(--zh-primary-color);
    font-size: 16px;
}

.zh_input_wrapper {
    position: relative;
}

.zh_form_input {
    width: 100%;
    height: 50px;
    padding: 15px 45px 15px 15px;
    border: 2px solid var(--zh-border-color);
    border-radius: var(--zh-radius-small);
    font-size: 16px;
    color: var(--zh-text-primary);
    background: var(--zh-bg-white);
    transition: var(--zh-transition);
    outline: none;
}

.zh_form_input:focus {
    border-color: var(--zh-primary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.zh_form_input.zh_error {
    border-color: var(--zh-error-color);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.zh_form_input.zh_success {
    border-color: var(--zh-success-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.zh_input_icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--zh-text-light);
    font-size: 16px;
    pointer-events: none;
}

.zh_password_toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--zh-text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--zh-transition);
}

.zh_password_toggle:hover {
    color: var(--zh-primary-color);
    background: rgba(211, 47, 47, 0.1);
}

/* 验证码样式 */
.zh_captcha_wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.zh_captcha_input {
    flex: 1;
}

.zh_captcha_area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.zh_captcha_image {
    width: 100px;
    height: 40px;
    border: 2px solid var(--zh-border-color);
    border-radius: var(--zh-radius-small);
    cursor: pointer;
    transition: var(--zh-transition);
}

.zh_captcha_image:hover {
    border-color: var(--zh-primary-color);
}

.zh_captcha_refresh {
    background: var(--zh-bg-light);
    border: 1px solid var(--zh-border-color);
    color: var(--zh-text-secondary);
    padding: 6px 10px;
    border-radius: var(--zh-radius-small);
    font-size: 12px;
    cursor: pointer;
    transition: var(--zh-transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.zh_captcha_refresh:hover {
    background: var(--zh-primary-color);
    color: white;
    border-color: var(--zh-primary-color);
}

/* 短信验证码样式 */
.zh_sms_wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.zh_sms_input {
    flex: 1;
}

.zh_sms_btn {
    height: 50px;
    padding: 0 20px;
    background: var(--zh-primary-color);
    color: white;
    border: none;
    border-radius: var(--zh-radius-small);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.zh_sms_btn:hover {
    background: var(--zh-primary-hover);
    transform: translateY(-1px);
}

.zh_sms_btn.zh_disabled {
    background: var(--zh-disabled-color);
    cursor: not-allowed;
    transform: none;
}

/* 表单选项 */
.zh_form_options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.zh_checkbox_wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--zh-text-secondary);
}

.zh_checkbox_wrapper input[type="checkbox"] {
    display: none;
}

.zh_checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--zh-border-color);
    border-radius: 4px;
    background: var(--zh-bg-white);
    position: relative;
    transition: var(--zh-transition);
}

.zh_checkbox_wrapper input[type="checkbox"]:checked + .zh_checkbox {
    background: var(--zh-primary-color);
    border-color: var(--zh-primary-color);
}

.zh_checkbox_wrapper input[type="checkbox"]:checked + .zh_checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.zh_forgot_link {
    color: var(--zh-primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--zh-transition);
}

.zh_forgot_link:hover {
    color: var(--zh-primary-hover);
    text-decoration: underline;
}

/* 协议确认 */
.zh_agreement {
    margin-bottom: 30px;
}

.zh_agreement_text {
    font-size: 14px;
    color: var(--zh-text-secondary);
    line-height: 1.5;
}

.zh_agreement_link {
    color: var(--zh-primary-color);
    text-decoration: none;
    transition: var(--zh-transition);
}

.zh_agreement_link:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.zh_submit_btn {
    width: 100%;
    height: 50px;
    background: var(--zh-primary-color);
    color: white;
    border: none;
    border-radius: var(--zh-radius-small);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.zh_submit_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.zh_submit_btn:hover {
    background: var(--zh-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--zh-shadow-hover);
}

.zh_submit_btn:hover::before {
    left: 100%;
}

.zh_submit_btn:active {
    transform: translateY(0);
}

/* 表单链接 */
.zh_form_links {
    text-align: center;
    font-size: 14px;
    color: var(--zh-text-secondary);
}

.zh_no_account,
.zh_has_account {
    margin-right: 5px;
}

.zh_register_link,
.zh_login_link {
    color: var(--zh-primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--zh-transition);
}

.zh_register_link:hover,
.zh_login_link:hover {
    color: var(--zh-primary-hover);
    text-decoration: underline;
}

/* 第三方登录 */
.zh_third_login {
    margin-top: 30px;
}

.zh_divider {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.zh_divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--zh-border-color);
}

.zh_divider span {
    background: var(--zh-bg-white);
    color: var(--zh-text-light);
    font-size: 12px;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.zh_third_btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.zh_third_btn {
    width: 60px;
    height: 50px;
    border: 2px solid var(--zh-border-color);
    background: var(--zh-bg-white);
    border-radius: var(--zh-radius-small);
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
}

.zh_third_btn i {
    font-size: 20px;
}

.zh_third_btn span {
    font-size: 10px;
    font-weight: 500;
}

.zh_third_btn.zh_wechat {
    color: #07c160;
    border-color: #07c160;
}

.zh_third_btn.zh_wechat:hover {
    background: #07c160;
    color: white;
}

.zh_third_btn.zh_qq {
    color: #1296db;
    border-color: #1296db;
}

.zh_third_btn.zh_qq:hover {
    background: #1296db;
    color: white;
}

.zh_third_btn.zh_weibo {
    color: #e6162d;
    border-color: #e6162d;
}

.zh_third_btn.zh_weibo:hover {
    background: #e6162d;
    color: white;
}

/* 错误消息样式 */
.zh_error_msg {
    display: block;
    color: var(--zh-error-color);
    font-size: 12px;
    margin-top: 5px;
    padding-left: 15px;
    position: relative;
}

.zh_error_msg::before {
    content: '\f06a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .zh_auth_wrapper {
        gap: 40px;
    }
    
    .zh_intro_section {
        padding: 40px 30px;
    }
    
    .zh_form_section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .zh_main_content {
        padding: 20px 0;
    }
    
    .zh_auth_container {
        padding: 0 15px;
    }
    
    .zh_auth_wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }
    
    .zh_intro_section {
        padding: 40px 30px;
        text-align: center;
    }
    
    .zh_intro_title {
        font-size: 28px;
    }
    
    .zh_intro_subtitle {
        font-size: 16px;
    }
    
    .zh_features_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .zh_feature_item {
        padding: 15px;
    }
    
    .zh_stats_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .zh_stat_item {
        padding: 15px;
    }
    
    .zh_stat_number {
        font-size: 24px;
    }
    
    .zh_form_section {
        padding: 30px 20px;
    }
    
    .zh_form_title {
        font-size: 24px;
    }
    
    .zh_captcha_wrapper,
    .zh_sms_wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .zh_captcha_area {
        flex-direction: row;
        justify-content: center;
    }
    
    .zh_sms_btn {
        width: 100%;
    }
    
    .zh_form_options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .zh_third_btns {
        gap: 10px;
    }
    
    .zh_third_btn {
        width: 50px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .zh_auth_container {
        padding: 0 10px;
    }
    
    .zh_intro_section {
        padding: 30px 20px;
    }
    
    .zh_intro_title {
        font-size: 24px;
    }
    
    .zh_features_grid {
        gap: 10px;
    }
    
    .zh_feature_item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
    
    .zh_feature_icon {
        margin: 0 auto;
    }
    
    .zh_stats_grid {
        gap: 10px;
    }
    
    .zh_stat_item {
        padding: 10px;
    }
    
    .zh_stat_number {
        font-size: 20px;
    }
    
    .zh_form_section {
        padding: 20px 15px;
    }
    
    .zh_form_title {
        font-size: 20px;
    }
    
    .zh_form_subtitle {
        font-size: 14px;
    }
    
    .zh_tab_btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .zh_tab_btn i {
        font-size: 14px;
    }
    
    .zh_form_input {
        height: 45px;
        padding: 12px 40px 12px 12px;
        font-size: 14px;
    }
    
    .zh_submit_btn {
        height: 45px;
        font-size: 15px;
    }
    
    .zh_bg_circle {
        display: none;
    }
}

/* 加载动画 */
@keyframes zh_pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.zh_loading {
    animation: zh_pulse 1.5s ease-in-out infinite;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --zh-bg-white: #1a1a1a;
        --zh-bg-light: #2d2d2d;
        --zh-text-primary: #ffffff;
        --zh-text-secondary: #cccccc;
        --zh-text-light: #999999;
        --zh-border-color: #404040;
    }
    
    .zh_auth_body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .zh_form_input {
        background: var(--zh-bg-light);
        color: var(--zh-text-primary);
    }
    
    .zh_divider span {
        background: var(--zh-bg-white);
    }
    
    .zh_third_btn {
        background: var(--zh-bg-light);
    }
}
