/* ============================================================
   星连欢云 · 登录 / 注册 / 找回密码 亮色毛玻璃主题
   只作用于认证页面，不影响用户中心内部页面
   ============================================================ */

:root {
    --xhy-green: #0f5132;
    --xhy-green-deep: #0a3d26;
    --xhy-ink: #1f2d3d;
    --xhy-ink-2: #55636f;
    --xhy-line: rgba(15, 81, 50, .14);
    --xhy-glass-border: rgba(255, 255, 255, .62);
    --xhy-shadow: 0 18px 50px rgba(31, 45, 64, .16);
}

html {
    background: #eef2ef !important;
}

html::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--scenery-bg, none) center / cover no-repeat;
    pointer-events: none;
}

html::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, .48);
    pointer-events: none;
}

body.login,
body {
    background: transparent !important;
    color: var(--xhy-ink);
    overflow-x: hidden;
}

/* ---------- 页面容器 ---------- */
#main-wrapper {
    background: none !important;
    min-height: 100vh;
}

.xhy-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.xhy-auth-stage {
    width: 100%;
    max-width: 1060px;
    display: flex;
    align-items: stretch;
    gap: 26px;
    margin: 0 auto;
}

/* ---------- 左侧品牌卡 ---------- */
.xhy-brand {
    flex: 1 1 46%;
    min-width: 0;
    background: rgba(255, 255, 255, .52);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid var(--xhy-glass-border);
    border-radius: 22px;
    box-shadow: var(--xhy-shadow);
    padding: 46px 44px;
    color: var(--xhy-ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.xhy-brand-logo {
    margin-bottom: 26px;
}

.xhy-brand-logo img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.xhy-brand h1 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--xhy-green) !important;
    margin: 0 0 10px;
}

.xhy-brand-sub {
    font-size: 16px;
    color: var(--xhy-ink-2);
    margin-bottom: 30px;
    line-height: 1.7;
}

.xhy-brand-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.xhy-brand-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, .55);
}

.xhy-brand-list li:first-child {
    border-top: none;
}

.xhy-brand-list .tag {
    flex: 0 0 auto;
    display: inline-block;
    font-size: 12px;
    line-height: 22px;
    padding: 0 9px;
    border-radius: 8px;
    color: var(--xhy-green);
    border: 1px solid rgba(15, 81, 50, .35);
    background: rgba(255, 255, 255, .6);
    white-space: nowrap;
}

.xhy-brand-list .txt b {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--xhy-ink);
    margin-bottom: 3px;
}

.xhy-brand-list .txt span {
    display: block;
    font-size: 13px;
    color: #6b7a87;
    line-height: 1.6;
}

.xhy-brand-desc {
    font-size: 13px;
    color: var(--xhy-ink-2);
    line-height: 1.75;
    margin: 0;
    opacity: .9;
}

/* ---------- 右侧表单区 ---------- */
.xhy-form-wrap {
    flex: 0 0 420px;
    width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xhy-card {
    width: 100%;
    margin: 0 !important;
    padding: 38px 34px 32px !important;
    background: rgba(255, 255, 255, .82) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--xhy-glass-border) !important;
    border-radius: 22px !important;
    box-shadow: var(--xhy-shadow) !important;
}

.xhy-card .header_top.logo {
    margin-bottom: 26px;
}

.xhy-card .header_top.logo img {
    height: 46px !important;
    width: auto;
}

/* 顶部切换标签 */
.xhy-card .affs-nav {
    border-bottom: none !important;
    gap: 8px;
    margin-bottom: 6px;
}

.xhy-card .affs-nav .nav-item {
    flex: 1;
}

.xhy-card .affs-nav .nav-link {
    display: block;
    padding: 10px 4px !important;
    font-size: 15px;
    font-weight: 500;
    color: #7b8896 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0;
    text-align: center;
}

.xhy-card .affs-nav .nav-link.active {
    color: var(--xhy-green) !important;
    border-bottom-color: var(--xhy-green) !important;
    font-weight: 600;
}

.xhy-card .affs-nav .nav-link::after {
    background: var(--xhy-green) !important;
}

.xhy-card .affs-nav .nav-link::before {
    display: none !important;
}

.xhy-card .text-primary {
    color: var(--xhy-green) !important;
    font-size: 13px !important;
}

.xhy-card .text-primary:hover {
    color: var(--xhy-green-deep) !important;
}

/* 表单 */
.xhy-card .form-group {
    margin-bottom: 16px;
}

.xhy-card .form-control {
    height: 48px;
    line-height: 26px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(31, 45, 64, .15) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-size: 14px;
    color: var(--xhy-ink) !important;
}

.xhy-card .form-control:focus {
    border-color: var(--xhy-green) !important;
    box-shadow: 0 0 0 3px rgba(15, 81, 50, .12) !important;
}

.xhy-card .form-control::placeholder {
    color: #99a6b2;
}

.xhy-card .input-group-append {
    height: 48px;
}

.xhy-card .input-group-append .btn,
.xhy-card .input-group-prepend .form-control {
    height: 48px;
    border-radius: 0 12px 12px 0 !important;
    background: var(--xhy-green) !important;
    border-color: var(--xhy-green) !important;
    color: #fff !important;
    font-size: 13px;
}

.xhy-card .input-group-prepend .form-control {
    background: rgba(255, 255, 255, .96) !important;
    color: var(--xhy-ink) !important;
    border-color: rgba(31, 45, 64, .15) !important;
    border-radius: 12px 0 0 12px !important;
}

/* 主按钮 */
.xhy-card .thm_btn,
.xhy-card .btn-primary.btn-block {
    width: 100%;
    height: 48px;
    line-height: 26px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: none;
    color: #fff !important;
    background: var(--xhy-green) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(15, 81, 50, .22) !important;
    transition: all .18s ease;
}

.xhy-card .thm_btn:hover,
.xhy-card .thm_btn:focus,
.xhy-card .btn-primary.btn-block:hover {
    background: var(--xhy-green-deep) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 81, 50, .28) !important;
    color: #fff !important;
}

/* 辅助链接 */
.xhy-card a,
.xhy-card .text-primary {
    color: var(--xhy-green) !important;
    font-size: 13px;
}

.xhy-card a:hover {
    color: var(--xhy-green-deep) !important;
}

.xhy-card .mt-4.text-center p,
.xhy-card p {
    color: var(--xhy-ink-2);
    font-size: 13px !important;
}

.xhy-card .mt-4.text-center {
    margin-top: 18px !important;
    padding-top: 16px;
    border-top: 1px solid rgba(31, 45, 64, .08);
}

.xhy-card .mt-4.text-center a {
    font-weight: 600;
    font-size: 13px;
}

.xhy-card .mt-4.text-center a.font-weight-medium {
    font-weight: 600;
}

/* 验证码图片 */
.xhy-card .captcha,
.xhy-card img.captcha {
    border-radius: 10px;
    border: 1px solid rgba(31, 45, 64, .12) !important;
    height: 44px;
}

/* 二次验证弹窗 */
.modal-content {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: var(--xhy-shadow);
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .xhy-auth-stage {
        flex-direction: column;
        max-width: 460px;
    }

    .xhy-brand {
        display: none;
    }

    .xhy-form-wrap {
        flex: 1 1 auto;
        width: 100%;
    }

    .xhy-auth-page {
        padding: 28px 16px;
        align-items: flex-start;
    }

    .xhy-card {
        padding: 28px 22px 24px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 575px) {
    .xhy-auth-page {
        padding: 18px 12px;
    }

    .xhy-card .header_top.logo img {
        height: 40px !important;
    }
}
