/* 农产品电商登录注册页面样式 */
/* 主色调：绿色系，体现农产品天然属性 */

/* 重置部分样式 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 主容器样式 */
.zh_login_container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(67, 160, 71, 0.05) 100%);
    background-image: url('https://images.unsplash.com/photo-1560493676-04071c5f467b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 主要内容区域 */
.zh_main_content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* 修改遮罩层，只覆盖主要内容区域，不影响底部 */
.zh_main_content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

/* 确保底部有合适的层级和样式 */
.footer,
.zh_footer {
    position: relative;
    z-index: 10;
    background: #2d5016 !important;
    color: #fff !important;
}

/* 登录注册卡片容器 */
.zh_auth_wrapper {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* 左侧介绍区域 */
.zh_intro_section {
    padding: 40px;
}

.zh_intro_title {
    font-size: 42px;
    font-weight: bold;
    color: #2E7D32;
    margin-bottom: 20px;
    line-height: 1.2;
}

.zh_intro_subtitle {
    font-size: 20px;
    color: #388E3C;
    margin-bottom: 30px;
    font-weight: 300;
}

.zh_intro_content {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 40px;
}

.zh_intro_features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.zh_feature_item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.zh_feature_icon {
    color: #4CAF50;
    font-size: 24px;
    margin-right: 12px;
}

.zh_feature_text {
    color: #2E7D32;
    font-weight: 500;
}

/* 右侧表单区域 */
.zh_form_card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zh_form_header {
    text-align: center;
    margin-bottom: 40px;
}

.zh_form_title {
    font-size: 28px;
    color: #2E7D32;
    margin-bottom: 8px;
    font-weight: bold;
}

.zh_form_subtitle {
    color: #666;
    font-size: 14px;
}

/* 标签切换样式 */
.zh_tab_switcher {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
}

.zh_tab_btn {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 500;
}

.zh_tab_btn.active {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.zh_tab_btn:hover:not(.active) {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

/* 表单样式 */
.zh_form_group {
    margin-bottom: 20px;
    position: relative;
}

.zh_form_label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.zh_input_wrapper {
    position: relative;
}

.zh_form_input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.zh_form_input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.zh_input_icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.zh_form_input:focus + .zh_input_icon {
    color: #4CAF50;
}

/* 验证码样式 */
.zh_captcha_wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.zh_captcha_input {
    flex: 1;
}

.zh_captcha_image {
    width: 120px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.zh_captcha_image:hover {
    border-color: #4CAF50;
}

.zh_captcha_refresh {
    display: block;
    margin-top: 5px;
    color: #4CAF50;
    text-decoration: none;
    font-size: 12px;
    text-align: center;
}

.zh_captcha_refresh:hover {
    text-decoration: underline;
}

/* 短信验证码样式 */
.zh_sms_wrapper {
    display: flex;
    gap: 12px;
}

.zh_sms_input {
    flex: 1;
}

.zh_sms_btn {
    padding: 16px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.zh_sms_btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.zh_sms_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 提交按钮 */
.zh_submit_btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.zh_submit_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.zh_submit_btn:active {
    transform: translateY(0);
}

/* 链接样式 */
.zh_form_links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.zh_form_link {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_form_link:hover {
    color: #45a049;
    text-decoration: underline;
}

/* 协议确认 */
.zh_agreement {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #666;
}

.zh_agreement input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
}

.zh_agreement_link {
    color: #4CAF50;
    text-decoration: none;
}

.zh_agreement_link:hover {
    text-decoration: underline;
}

/* 第三方登录 */
.zh_third_party {
    margin-top: 30px;
    text-align: center;
}

.zh_divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

.zh_divider::before,
.zh_divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.zh_divider::before {
    margin-right: 16px;
}

.zh_divider::after {
    margin-left: 16px;
}

.zh_social_buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.zh_social_btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
}

.zh_social_btn.qq {
    background: #12B7F5;
}

.zh_social_btn.wechat {
    background: #2DC100;
}

.zh_social_btn.weibo {
    background: #E60026;
}

.zh_social_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 错误提示样式 */
.zh_error {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.zh_form_input.error {
    border-color: #f44336;
}

/* 成功提示样式 */
.zh_success {
    color: #4CAF50;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.zh_form_input.success {
    border-color: #4CAF50;
}

/* 推荐人信息 */
.zh_referrer_info {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.zh_referrer_icon {
    color: #4CAF50;
    font-size: 20px;
    margin-right: 10px;
}

.zh_referrer_text {
    color: #2E7D32;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .zh_auth_wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .zh_intro_section {
        padding: 20px;
        text-align: center;
    }
    
    .zh_intro_title {
        font-size: 32px;
    }
    
    .zh_intro_features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .zh_main_content {
        padding: 20px 15px;
    }
    
    .zh_form_card {
        padding: 30px 20px;
    }
    
    .zh_intro_title {
        font-size: 28px;
    }
    
    .zh_intro_subtitle {
        font-size: 18px;
    }
    
    .zh_form_title {
        font-size: 24px;
    }
    
    .zh_social_buttons {
        gap: 8px;
    }
    
    .zh_social_btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .zh_captcha_wrapper,
    .zh_sms_wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .zh_form_links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .zh_tab_switcher {
        flex-direction: column;
        gap: 4px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zh_form_card {
    animation: fadeInUp 0.6s ease;
}

.zh_intro_section {
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* 加载状态 */
.zh_loading {
    position: relative;
    pointer-events: none;
}

.zh_loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
