/* ============================================================
   听心树 — 登录 / 注册 / 注册结果  v4.0
   ============================================================ */

body.zh_auth_page .zh_main { display: flex; }

/* ===== 整体：左视觉 + 右表单 ===== */
.zh_auth_wrap {
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
    min-height: calc(100vh - 200px);
    width: 100%;
}

/* ---------- 左侧视觉区 ---------- */
.zh_auth_visual {
    background: var(--zh-grad-deep);
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: rgba(234, 244, 241, .7);
}
.zh_auth_visual::before {
    content: "";
    position: absolute;
    right: -140px; top: -120px;
    width: 440px; height: 440px;
    border-radius: 62% 38% 55% 45%;
    background: radial-gradient(circle at 40% 42%, rgba(155, 201, 138, .14), transparent 66%);
    pointer-events: none;
}
.zh_auth_visual::after {
    content: "";
    position: absolute;
    left: -100px; bottom: -140px;
    width: 360px; height: 360px;
    border-radius: 55% 45% 62% 38%;
    background: radial-gradient(circle at 55% 45%, rgba(240, 147, 123, .12), transparent 68%);
    pointer-events: none;
}
.zh_auth_brand { position: relative; z-index: 2; display: inline-block; margin-bottom: auto; }
.zh_auth_brand img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .95; }

.zh_auth_slogan { position: relative; z-index: 2; padding: 44px 0; }
.zh_auth_eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.6px;
    color: var(--zh-leaf);
    background: rgba(255, 255, 255, .08);
    padding: 5px 16px;
    border-radius: var(--zh-radius-pill);
    margin-bottom: 20px;
}
.zh_auth_title {
    margin: 0 0 16px;
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 700;
    line-height: 1.42;
    color: #fff;
    letter-spacing: -.01em;
}
.zh_auth_subtitle {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.95;
    color: rgba(234, 244, 241, .62);
}

.zh_auth_features { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.zh_auth_features li {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 13.5px;
    color: rgba(234, 244, 241, .68);
}
.zh_auth_features li i {
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: var(--zh-leaf);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ---------- 右侧表单区 ---------- */
.zh_auth_form_side {
    background: var(--zh-bg);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}
.zh_auth_card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius-xl);
    padding: 36px 38px 32px;
    box-shadow: var(--zh-shadow-card);
}
.zh_auth_card_wide { max-width: 660px; }

.zh_auth_mobile_logo { display: none; text-align: center; margin-bottom: 22px; }
.zh_auth_mobile_logo img { height: 42px; width: auto; margin: 0 auto; }

.zh_auth_card_head { margin-bottom: 24px; }
.zh_auth_card_head h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: var(--zh-text-primary);
    letter-spacing: -.01em;
}
.zh_auth_card_head p { margin: 0; font-size: 13.5px; color: var(--zh-text-muted); line-height: 1.7; }

/* 表单 */
.zh_auth_form .zh_btn_primary { width: 100%; padding: 14px 30px; }
.zh_auth_input_wrap { position: relative; }
.zh_auth_input_wrap > i {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    color: var(--zh-text-muted);
    font-size: 13.5px;
    pointer-events: none;
    transition: color .2s ease;
}
.zh_auth_input_wrap .zh_input { padding-left: 42px; }
.zh_auth_input_wrap:focus-within > i { color: var(--zh-primary); }

.zh_label_hint { font-weight: 400; font-size: 12px; color: var(--zh-text-muted); margin-left: 5px; }

.zh_form_row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }

/* 验证码 */
.zh_captcha_group { display: flex; gap: 12px; align-items: stretch; }
.zh_captcha_group .zh_auth_input_wrap { flex: 1; min-width: 0; }
.zh_captcha_img {
    height: 46px;
    width: auto;
    border-radius: var(--zh-radius-sm);
    border: 1.5px solid var(--zh-border);
    cursor: pointer;
    flex-shrink: 0;
    background: #fff;
}
.zh_captcha_img:hover { border-color: var(--zh-primary-mid); }

/* 提示条 */
.zh_session_error, .zh_session_success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--zh-radius-sm);
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 18px;
}
.zh_session_error { background: var(--zh-coral-soft); color: #A63A2B; border-left: 3px solid var(--zh-coral); }
.zh_session_success { background: var(--zh-primary-soft); color: var(--zh-primary-hover); border-left: 3px solid var(--zh-primary); }
.zh_session_error i, .zh_session_success i { margin-top: 3px; flex-shrink: 0; }

/* 底部 */
.zh_auth_foot {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--zh-border);
    text-align: center;
    font-size: 13.5px;
    color: var(--zh-text-muted);
}
.zh_auth_foot a { color: var(--zh-primary); font-weight: 600; }
.zh_auth_foot a:hover { color: var(--zh-coral-hover); }
.zh_auth_terms {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    color: var(--zh-text-muted);
}
.zh_auth_terms a { color: var(--zh-primary); }

/* ============================================================
   注册页专属
   ============================================================ */
.zh_register_notice {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    background: var(--zh-primary-soft);
    border-left: 3px solid var(--zh-primary);
    border-radius: 0 var(--zh-radius-sm) var(--zh-radius-sm) 0;
    padding: 13px 18px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--zh-text-body);
    margin-bottom: 24px;
}
.zh_register_notice i { color: var(--zh-primary); font-size: 14px; margin-top: 3px; flex-shrink: 0; }
.zh_register_notice strong { color: var(--zh-text-primary); font-weight: 600; }

.zh_register_step { margin-bottom: 28px; }
.zh_register_step_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--zh-border);
}
.zh_register_step_num {
    width: 28px; height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--zh-grad-coral);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.zh_register_step_title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--zh-text-primary);
}
.zh_register_step_title small {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: var(--zh-text-muted);
}

/* Logo 上传 */
.zh_logo_upload {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1.5px dashed var(--zh-border-strong);
    border-radius: var(--zh-radius-md);
    padding: 14px 18px;
    cursor: pointer;
    transition: all .25s ease;
    background: var(--zh-bg-tint);
}
.zh_logo_upload:hover { border-color: var(--zh-primary); background: var(--zh-primary-ghost); }
.zh_logo_upload input[type="file"] { display: none; }
.zh_logo_avatar {
    width: 58px; height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--zh-border);
    color: var(--zh-primary-mid);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}
.zh_logo_avatar img { width: 100%; height: 100%; object-fit: cover; }
.zh_logo_upload_text strong { display: block; font-size: 14px; font-weight: 600; color: var(--zh-text-primary); }
.zh_logo_upload_text span { display: block; font-size: 12px; color: var(--zh-text-muted); margin-top: 2px; }

/* 身份证上传 */
.zh_upload_row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.zh_upload_id {
    position: relative;
    border: 1.5px dashed var(--zh-border-strong);
    border-radius: var(--zh-radius-md);
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
    background: var(--zh-bg-tint);
    overflow: hidden;
}
.zh_upload_id:hover { border-color: var(--zh-primary); background: var(--zh-primary-ghost); }
.zh_upload_id input[type="file"] { display: none; }
.zh_upload_id_icon {
    width: 44px; height: 44px;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: #fff;
    color: var(--zh-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.zh_upload_id_label { font-size: 13.5px; font-weight: 600; color: var(--zh-text-primary); }
.zh_upload_id_hint { font-size: 11.5px; color: var(--zh-text-muted); margin-top: 3px; }
.zh_upload_id_preview { display: none; margin-top: 12px; }
.zh_upload_id_preview img { width: 100%; border-radius: var(--zh-radius-sm); display: block; }
.zh_upload_id_preview.zh_show { display: block; }

/* 同意条款 */
.zh_agree_row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--zh-text-body);
    margin-bottom: 22px;
    cursor: pointer;
}
.zh_agree_row input[type="checkbox"] {
    accent-color: var(--zh-primary);
    width: 15px; height: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}
.zh_agree_row a { color: var(--zh-primary); }

/* ============================================================
   注册结果页
   ============================================================ */
.zh_result_page {
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(155, 201, 138, .16), transparent 42%),
        radial-gradient(circle at 85% 78%, rgba(240, 147, 123, .16), transparent 45%),
        var(--zh-bg);
}
.zh_result_card {
    width: 100%;
    max-width: 620px;
    background: #fff;
    border: 1px solid var(--zh-border);
    border-radius: var(--zh-radius-xl);
    padding: 44px 46px 40px;
    text-align: center;
    box-shadow: var(--zh-shadow-card);
}
.zh_result_logo { margin-bottom: 26px; }
.zh_result_logo img { height: 46px; width: auto; margin: 0 auto; }
.zh_result_icon {
    width: 84px; height: 84px;
    margin: 0 auto 20px;
    border-radius: 62% 38% 55% 45%;
    background: var(--zh-grad-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 14px 32px rgba(45, 110, 100, .28);
}
.zh_result_title {
    margin: 0 0 12px;
    font-size: 25px;
    font-weight: 700;
    color: var(--zh-text-primary);
    letter-spacing: -.01em;
}
.zh_result_desc {
    margin: 0 0 30px;
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--zh-text-body);
}

.zh_result_steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin-bottom: 32px;
    padding: 22px 10px;
    background: var(--zh-bg-tint);
    border-radius: var(--zh-radius-lg);
}
.zh_result_step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    position: relative;
}
.zh_result_step::after {
    content: "";
    position: absolute;
    top: 22px; left: 62%; right: -38%;
    height: 2px;
    background: var(--zh-border-strong);
}
.zh_result_step:last-child::after { display: none; }
.zh_result_step_icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--zh-border-strong);
    color: var(--zh-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    z-index: 2;
}
.zh_result_step.zh_done .zh_result_step_icon {
    background: var(--zh-grad-primary);
    border-color: transparent;
    color: #fff;
}
.zh_result_step.zh_done::after { background: var(--zh-primary-mid); }
.zh_result_step_label { font-size: 12.5px; color: var(--zh-text-muted); line-height: 1.5; }
.zh_result_step.zh_done .zh_result_step_label { color: var(--zh-text-primary); font-weight: 600; }

.zh_result_buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .zh_auth_wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .zh_auth_visual { display: none; }
    .zh_auth_mobile_logo { display: block; }
    .zh_auth_form_side { padding: 40px 24px 56px; }
}
@media (max-width: 768px) {
    .zh_auth_form_side { padding: 28px 16px 44px; }
    .zh_auth_card { padding: 26px 20px 24px; border-radius: var(--zh-radius-lg); }
    .zh_auth_card_head h2 { font-size: 21px; }
    .zh_form_row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .zh_upload_row { grid-template-columns: minmax(0, 1fr); }
    .zh_result_card { padding: 30px 20px 28px; border-radius: var(--zh-radius-lg); }
    .zh_result_title { font-size: 21px; }
    .zh_result_steps { flex-direction: column; align-items: stretch; gap: 14px; }
    .zh_result_step { flex-direction: row; gap: 12px; }
    .zh_result_step::after { display: none; }
    .zh_result_buttons .zh_btn { flex: 1; }
}
