/* ============================================
   auth.css — 登录 / 注册
   ============================================ */

.zh_auth {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: stretch;
    background: var(--zh-bg);
    padding: 40px 20px;
}

.zh_auth_wrap {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--zh-radius-lg);
    box-shadow: var(--zh-shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 480px;
    min-height: 540px;
}

/* 左侧品牌 */
.zh_auth_brand {
    position: relative;
    background: var(--zh-grad-primary);
    color: #fff;
    padding: 56px 44px 44px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.zh_auth_brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/uploads/banner/banner.jpg') right center / cover no-repeat;
    opacity: 0.2;
    mix-blend-mode: screen;
}

.zh_auth_brand::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(212,168,58,0.12);
}

.zh_auth_brand_inner {
    position: relative;
    z-index: 2;
}

.zh_auth_logo {
    margin-bottom: 30px;
}
.zh_auth_logo img {
    height: 54px;
    filter: brightness(0) invert(1);
}

.zh_auth_slogan {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 14px;
}
.zh_auth_slogan span { color: var(--zh-gold-light); }

.zh_auth_subslogan {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 360px;
}

.zh_auth_features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.zh_auth_feat {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.zh_auth_feat_icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(212,168,58,0.2);
    border: 1px solid var(--zh-gold);
    color: var(--zh-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* 右侧表单 */
.zh_auth_panel {
    padding: 56px 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zh_auth_head {
    margin-bottom: 28px;
}

.zh_auth_head h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--zh-primary);
    margin-bottom: 6px;
}

.zh_auth_head p {
    font-size: 13px;
    color: var(--zh-text-3);
    letter-spacing: 2px;
}

.zh_auth_alert {
    padding: 12px 16px;
    border-radius: var(--zh-radius-sm);
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
}
.zh_auth_alert.error { background: #fdecec; color: #8c2623; border-left: 3px solid var(--zh-accent); }
.zh_auth_alert.success { background: #e8f5ec; color: #1f6b3b; border-left: 3px solid #3a8f5c; }

.zh_auth_field { margin-bottom: 16px; position: relative; }

.zh_auth_field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--zh-text-2);
    font-weight: 500;
    margin-bottom: 6px;
}
.zh_auth_field label i { color: var(--zh-gold); }

.zh_auth_field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius-sm);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #fff;
}

.zh_auth_field input:focus {
    border-color: var(--zh-primary);
    box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.08);
}

.zh_auth_hint {
    font-size: 11px;
    color: var(--zh-text-3);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.zh_auth_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.zh_auth_captcha {
    display: flex;
    gap: 10px;
    align-items: center;
}
.zh_auth_captcha input { flex: 1; }
.zh_auth_captcha img {
    width: 108px;
    height: 42px;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius-sm);
    cursor: pointer;
}

.zh_auth_row_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 16px;
    font-size: 12px;
    color: var(--zh-text-2);
}

.zh_auth_row_meta label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.zh_auth_row_meta input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--zh-primary); }
.zh_auth_row_meta a { color: var(--zh-primary); }
.zh_auth_row_meta a:hover { color: var(--zh-gold); }

.zh_auth_agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--zh-text-2);
    margin: 8px 0 16px;
}
.zh_auth_agree input { margin-top: 2px; width: 14px; height: 14px; accent-color: var(--zh-primary); }
.zh_auth_agree a { color: var(--zh-primary); }

.zh_auth_submit {
    width: 100%;
    padding: 13px;
    background: var(--zh-grad-primary);
    color: #fff;
    border: none;
    border-radius: var(--zh-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    margin-top: 4px;
    box-shadow: 0 6px 18px rgba(27,58,107,0.25);
}
.zh_auth_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(27,58,107,0.35);
}

.zh_auth_foot {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--zh-text-3);
}
.zh_auth_foot a {
    color: var(--zh-primary);
    font-weight: 600;
    margin-left: 6px;
}
.zh_auth_foot a:hover { color: var(--zh-gold); }

/* 响应式 */
@media (max-width: 991px) {
    .zh_auth_wrap { grid-template-columns: 1fr; max-width: 480px; min-height: 0; }
    .zh_auth_brand { display: none; }
    .zh_auth_panel { padding: 40px 36px 36px; }
}

@media (max-width: 480px) {
    .zh_auth { padding: 20px 12px; }
    .zh_auth_panel { padding: 28px 22px 28px; }
    .zh_auth_head h1 { font-size: 22px; }
    .zh_auth_row { grid-template-columns: 1fr; gap: 0; }
}
