/* 锦壶御品 · 认证中心（覆盖 LeptonX Lite Account 布局） */
:root {
    --jh-ink: #1a2f2a;
    --jh-ink-deep: #12211d;
    --jh-slate: #3c5562;
    --jh-gold: #c9a46c;
    --jh-gold-deep: #a9834b;
    --jh-ivory: #f7f3eb;
    --jh-paper: #fffdf8;
    --jh-text: #22322d;
    --jh-muted: #7a857f;
    --jh-line: rgba(26, 47, 42, .12);
    --lpx-logo: url('/images/logo/jh-logo-64.png');
    --lpx-logo-icon: url('/images/logo/jh-logo-64.png');
}

body.jh-auth {
    margin: 0;
    min-height: 100vh;
    background: var(--jh-ivory) !important;
    color: var(--jh-text);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.jh-auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ===== 左侧品牌区 ===== */
.jh-auth-brand {
    position: relative;
    flex: 0 0 44%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem 3.5rem 2rem;
    color: var(--jh-ivory);
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(201, 164, 108, .18), transparent 42%),
        radial-gradient(circle at 85% 88%, rgba(75, 116, 135, .45), transparent 50%),
        linear-gradient(160deg, #14241f 0%, #1a2f2a 45%, #243f45 100%);
}
.jh-auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .07;
    background-image:
        repeating-linear-gradient(45deg, var(--jh-gold) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(-45deg, var(--jh-gold) 0 1px, transparent 1px 22px);
    pointer-events: none;
}
.jh-auth-brand::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(201, 164, 108, .22);
    box-shadow: 0 0 0 40px rgba(201, 164, 108, .04), 0 0 0 90px rgba(201, 164, 108, .03);
    pointer-events: none;
}
.jh-auth-brand-inner {
    position: relative;
    z-index: 1;
    margin: auto 0;
    max-width: 420px;
}
.jh-auth-logo {
    width: 104px;
    height: 104px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
}
.jh-auth-title {
    margin: 1.75rem 0 .5rem;
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: .32em;
    color: #f3e6cf;
}
.jh-auth-tagline {
    margin: 0 0 2.25rem;
    font-size: 1rem;
    letter-spacing: .12em;
    color: rgba(247, 243, 235, .72);
}
.jh-auth-tagline::before {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-bottom: 1.1rem;
    background: linear-gradient(90deg, var(--jh-gold), transparent);
}
.jh-auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .9rem;
}
.jh-auth-features li {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: rgba(247, 243, 235, .86);
    font-size: .95rem;
}
.jh-auth-features i {
    flex: 0 0 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--jh-gold);
    background: rgba(201, 164, 108, .12);
    border: 1px solid rgba(201, 164, 108, .25);
}
.jh-auth-brand-foot {
    position: relative;
    z-index: 1;
    font-size: .8rem;
    letter-spacing: .08em;
    color: rgba(247, 243, 235, .45);
}

/* ===== 右侧表单区 ===== */
.jh-auth-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(201, 164, 108, .12), transparent 38%),
        var(--jh-ivory);
}
.jh-auth-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.25rem 2rem;
}
.jh-auth .jh-auth-mini-brand {
    display: none;
    align-items: center;
    gap: .6rem;
    margin-right: auto;
    color: var(--jh-ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .2em;
}
.jh-auth-mini-brand img { width: 34px; height: 34px; }
.jh-auth-lang .btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--jh-line);
    background: rgba(255, 253, 248, .8);
    color: var(--jh-text);
    font-size: .85rem;
}
.jh-auth-lang .btn:hover, .jh-auth-lang .btn:focus { border-color: var(--jh-gold); color: var(--jh-ink); }
.jh-auth-lang .dropdown-item.active, .jh-auth-lang .dropdown-item:active {
    background: rgba(201, 164, 108, .18);
    color: var(--jh-ink);
}

.jh-auth-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem 3rem;
}
.jh-auth-panel {
    width: 100%;
    max-width: 440px;
    padding: 2.6rem 2.5rem 2.2rem;
    border-radius: 20px;
    background: var(--jh-paper);
    border: 1px solid rgba(201, 164, 108, .22);
    box-shadow: 0 24px 60px rgba(26, 47, 42, .10), 0 2px 6px rgba(26, 47, 42, .04);
}

.jh-auth-panel:has(table) { max-width: 760px; }

/* 其他账户页（注册、忘记密码、授权确认等）沿用模块自带卡片，嵌入面板时去掉重复外框 */
.jh-auth-panel .card {
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
.jh-auth-panel .card > .card-body { padding: 0 !important; }
.jh-auth-panel .card > .card-header { background: transparent; padding: 0 0 1rem; border-bottom: 1px solid var(--jh-line); margin-bottom: 1rem; }
.jh-auth-panel h4, .jh-auth-panel .card-title {
    color: var(--jh-ink);
    font-weight: 700;
}

.jh-auth-tenant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: .7rem .9rem;
    border-radius: 12px;
    background: rgba(201, 164, 108, .08);
    border: 1px dashed rgba(201, 164, 108, .45);
}
.jh-auth-tenant-label { font-size: .72rem; letter-spacing: .1em; color: var(--jh-muted); text-transform: uppercase; }
.jh-auth-tenant-name { font-size: .95rem; color: var(--jh-ink); }

.jh-auth-heading { margin-bottom: 1.75rem; }
.jh-auth-heading h2 {
    margin: 0 0 .4rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--jh-ink);
    letter-spacing: .04em;
}
.jh-auth-heading p { margin: 0; color: var(--jh-muted); font-size: .9rem; }

.jh-auth .form-label {
    font-size: .85rem;
    font-weight: 600;
    color: #4a5752;
    margin-bottom: .4rem;
}
.jh-auth .form-control {
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--jh-line);
    background: #fff;
    color: var(--jh-text);
    box-shadow: none;
}
.jh-auth .form-control:focus {
    border-color: var(--jh-gold);
    box-shadow: 0 0 0 4px rgba(201, 164, 108, .18);
}
.jh-auth-input { position: relative; }
.jh-auth-input > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    color: #a1aaa5;
    font-size: .9rem;
    pointer-events: none;
}
.jh-auth-input > .form-control { padding-left: 2.6rem; }
.jh-auth-input.input-group > .form-control {
    margin-left: 0 !important;
    border-radius: 12px 0 0 12px !important;
}
.jh-auth-input > .btn {
    height: 46px;
    border: 1px solid var(--jh-line);
    border-left: 0;
    border-radius: 0 12px 12px 0 !important;
    background: #fff;
    color: #8a948f;
}
.jh-auth-input > .btn:hover { color: var(--jh-ink); background: #faf6ee; }

.jh-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: .25rem 0 1.5rem;
    font-size: .88rem;
}
.jh-auth-row .form-check, .jh-auth-row .mb-3 { margin-bottom: 0 !important; }
.jh-auth .form-check-input:checked { background-color: var(--jh-ink); border-color: var(--jh-ink); }
.jh-auth .form-check-input:focus { box-shadow: 0 0 0 4px rgba(201, 164, 108, .18); border-color: var(--jh-gold); }

.jh-auth a { color: var(--jh-gold-deep); text-decoration: none; }
.jh-auth a:hover { color: var(--jh-ink); }

.jh-auth .btn-primary {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #22403a 0%, var(--jh-ink) 60%, #16271f 100%);
    color: #f3e6cf;
    box-shadow: 0 10px 22px rgba(26, 47, 42, .22);
}
.jh-auth .btn-primary:hover, .jh-auth .btn-primary:focus {
    background: linear-gradient(135deg, #2b4f47 0%, #203a33 60%, #1a2f2a 100%);
    color: #fff;
}
.jh-auth-submit {
    height: 48px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .3em;
}
.jh-auth .btn-outline-secondary { border-radius: 12px; }

.jh-auth-external { margin-top: 1.5rem; }
.jh-auth-external form { display: flex; flex-wrap: wrap; gap: .5rem; }
.jh-auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    color: var(--jh-muted);
    font-size: .8rem;
}
.jh-auth-divider::before, .jh-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--jh-line); }

.jh-auth-register {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: .88rem;
    color: var(--jh-muted);
}

@media (max-width: 991.98px) {
    .jh-auth-brand { display: none; }
    .jh-auth .jh-auth-mini-brand { display: inline-flex; }
}
@media (max-width: 575.98px) {
    .jh-auth-top { padding: 1rem 1.25rem; }
    .jh-auth-center { padding: .5rem 1rem 2rem; align-items: flex-start; }
    .jh-auth-panel { padding: 2rem 1.4rem 1.6rem; border-radius: 16px; }
}
