/* ============================================================
   登录页 V3 · 东方艺术馆
   墨色 + 象牙白 + 赤金，独立作用域 .sx-login，不影响其他页面
   ============================================================ */

.sx-login {
    --sx-ink: #1b1510;    --sx-ink-2: #2a2118;
    --sx-gold: #b08d57;
    --sx-gold-2: #a3762d;
    --sx-gold-3: #d8bd8e;
    --sx-paper: #fffdf8;
    --sx-ivory: #fbf7ef;
    --sx-bg: #faf5ea;
    --sx-line: #e4d8c4;
    --sx-muted: #8b7d6b;
    --sx-text: #211b15;

    position: relative;
    padding: 44px 0 64px;
    background:
        radial-gradient(1100px 480px at 8% -10%, rgba(176, 141, 87, .14), transparent 62%),
        radial-gradient(900px 520px at 100% 110%, rgba(163, 118, 45, .08), transparent 60%),
        var(--sx-bg);
}

/* 站点 home.css 里有 * { box-sizing: content-box !important }，这里按作用域覆盖 */
.sx-login *,
.sx-login *::before,
.sx-login *::after { box-sizing: border-box !important; }

/* ---------- 舞台：左视觉 + 右表单 ---------- */
.sx-stage {
    width: 1200px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    min-height: 620px;
    background: var(--sx-paper);
    border: 1px solid var(--sx-line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(27, 21, 16, .16),
        0 1px 0 rgba(255, 255, 255, .7) inset;
}

/* ---------- 左侧品牌视觉 ---------- */
.sx-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 60px;
    color: #f3e8d6;
    background:
        radial-gradient(620px 420px at 18% 8%, rgba(216, 189, 142, .22), transparent 62%),
        radial-gradient(520px 360px at 92% 96%, rgba(176, 141, 87, .16), transparent 60%),
        linear-gradient(135deg, var(--sx-ink) 0%, var(--sx-ink-2) 55%, var(--sx-ink) 100%);
    overflow: hidden;
}

.sx-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(216, 189, 142, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 189, 142, .055) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(120% 100% at 30% 20%, #000 35%, transparent 80%);
    mask-image: radial-gradient(120% 100% at 30% 20%, #000 35%, transparent 80%);
    pointer-events: none;
}

.sx-visual::after {
    content: "艺";
    position: absolute;
    right: -18px;
    bottom: -84px;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 360px;
    line-height: 1;
    color: rgba(216, 189, 142, .07);
    pointer-events: none;
    user-select: none;
}

.sx-visual__inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.sx-kicker {
    margin: 0 0 26px;
    font-size: 12px;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--sx-gold-3);
}

.sx-visual h1 {
    margin: 0 0 22px;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 52px;
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: .06em;
    color: #fbf4e7;
}

.sx-visual__sub {
    margin: 0 0 34px;
    font-size: 15px;
    line-height: 1.9;
    color: #cdbfa8;
    letter-spacing: .04em;
}

.sx-visual__line {
    width: 56px;
    height: 2px;
    margin: 0 0 34px;
    background: linear-gradient(90deg, var(--sx-gold-3), transparent);
}

.sx-visual__points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sx-visual__points li {
    position: relative;
    margin: 0 0 14px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #d9ccb7;
}

.sx-visual__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sx-gold-3);
    box-shadow: 0 0 0 4px rgba(216, 189, 142, .12);
}

/* ---------- 右侧表单 ---------- */
.sx-panel {
    display: flex;
    align-items: center;
    padding: 56px 56px 48px;
    background:
        radial-gradient(500px 320px at 80% 0%, rgba(216, 189, 142, .12), transparent 65%),
        var(--sx-paper);
}

.sx-panel .login_form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    float: none;
}

.sx-card-head { margin-bottom: 28px; }

.sx-card-head h2 {
    margin: 0 0 8px;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--sx-text);
}

.sx-card-head p {
    margin: 0;
    font-size: 13px;
    color: var(--sx-muted);
    letter-spacing: .04em;
}

/* 选项卡：保留 .mt 供原脚本科切换 */
.sx-panel .login_form .mt {
    display: flex;
    gap: 30px;
    height: auto;
    margin: 0 0 26px;
    padding: 0;
    border-bottom: 1px solid var(--sx-line);
    text-align: left;
}

.sx-panel .login_form .mt a {
    position: relative;
    float: none;
    width: auto;
    height: auto;
    padding: 0 2px 14px;
    font-size: 15px;
    line-height: 1.2;
    color: var(--sx-muted);
    text-decoration: none;
    transition: color .2s;
}

.sx-panel .login_form .mt a span { display: inline; margin: 0; }

.sx-panel .login_form .mt a.on {
    color: var(--sx-text);
    font-weight: 600;
}

.sx-panel .login_form .mt a.on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--sx-gold-3), var(--sx-gold-2));
}

.sx-panel .login_form .mt a i { display: none; }
.sx-panel .login_form .mc { margin-top: 0; }

/* 输入项：保留 .item / .text-area 供校验脚本使用 */
.sx-panel .login_form .item {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    line-height: normal;
}

.sx-panel .login_form .text-area {
    position: relative;
    width: 100%;
    height: auto;
}

.sx-field-ico {
    position: absolute;
    left: 16px;
    top: 27px;
    z-index: 2;
    width: 20px;
    height: 20px;
    color: #b6a68d;
    pointer-events: none;
}

.sx-panel .login_form .text-area .text {
    position: static;
    width: 100%;
    height: 54px;
    padding: 0 46px 0 46px;
    border: 1px solid var(--sx-line);
    border-radius: 12px;
    background: #fffefb;
    color: var(--sx-text);
    font-size: 15px;
    line-height: 52px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.sx-panel .login_form .text-area .text::placeholder { color: #b4a794; }

.sx-panel .login_form .text-area .text:hover { border-color: #d3c3a8; }

.sx-panel .login_form .text-area .text:focus {
    outline: none;
    border-color: var(--sx-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(176, 141, 87, .13);
}

.sx-panel .login_form .text-area.error .text {
    border-color: #c05043;
    box-shadow: 0 0 0 4px rgba(192, 80, 67, .10);
}

.sx-panel .login_form label.error {
    display: block;
    margin: 7px 0 0 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #b03a2e;
}

.sx-panel .login_form label.error .iconfont { margin-right: 4px; }

/* 密码显隐 */
.sx-eye {
    position: absolute;
    right: 14px;
    top: 15px;
    z-index: 2;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: #b6a68d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
}

.sx-eye:hover { color: var(--sx-gold-2); }
.sx-eye svg { width: 19px; height: 19px; }

/* 验证码 */
.sx-captcha { display: flex; gap: 10px; align-items: stretch; }.sx-captcha .text-area { flex: 1; min-width: 0; }
.sx-captcha .text-area .text { padding-right: 14px; }

.sx-code {
    position: relative;
    flex: 0 0 132px;
    width: 132px;
    height: 54px;
    border: 1px solid var(--sx-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--sx-ivory);
    cursor: pointer;
}

.sx-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sx-code .makecode {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 21, 16, .58);
    color: #fbf4e7;
    font-size: 12px;
    letter-spacing: .04em;
    opacity: 0;
    transition: opacity .2s;
    text-decoration: none;
}

.sx-code:hover .makecode { opacity: 1; }

/* 短信验证码按钮 */
.sx-panel .send_code {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--sx-line);
    border-radius: 9px;
    background: var(--sx-ivory);
    color: var(--sx-gold-2);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.sx-panel .send_code:hover {
    background: #f3ead9;
    border-color: #d3c3a8;
}

.sx-panel #sms_captcha.text { padding-right: 120px; }

/* 提交按钮 */
.sx-submit {
    display: block;
    width: 100%;
    height: 54px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #cfae72 0%, var(--sx-gold-2) 100%);
    color: #1b1510;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .24em;
    text-indent: .24em;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(163, 118, 45, .24);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.sx-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 32px rgba(163, 118, 45, .30);
}

.sx-submit:active { transform: none; }

/* 辅助链接 */
.sx-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 13px;
    color: var(--sx-muted);
}

.sx-links a {
    color: var(--sx-muted);
    text-decoration: none;
    transition: color .2s;
}

.sx-links a:hover { color: var(--sx-gold-2); }

/* 第三方登录 */
.sx-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 18px;
    font-size: 12px;
    letter-spacing: .12em;
    color: #a99a84;
}

.sx-divider::before,
.sx-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--sx-line);
}

.sx-social {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.sx-social__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 10px 4px 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--sx-muted);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.sx-social__item:hover {
    background: var(--sx-ivory);
    border-color: var(--sx-line);
    color: var(--sx-text);
    transform: translateY(-2px);
}

.sx-social__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--sx-line);
    border-radius: 50%;
    background: #fffefb;
    transition: box-shadow .2s, border-color .2s;
}

.sx-social__item:hover .sx-social__ico {
    border-color: #d3c3a8;
    box-shadow: 0 6px 16px rgba(27, 21, 16, .10);
}

.sx-social__ico svg { width: 21px; height: 21px; display: block; }

.sx-social__ico--dingtalk {
    border-color: #0089ff;
    background: #0089ff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.sx-social__item.is-soon { position: relative; }

.sx-social__item.is-soon::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sx-gold-3);
    opacity: .9;
}

.sx-agree {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.75;
    color: #a99a84;
}

.sx-agree a { color: var(--sx-gold-2); text-decoration: none; }
.sx-agree a:hover { text-decoration: underline; }

/* 注册页邀请人 */
.sx-register .sx-inviter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -6px 0 20px;
    padding: 12px 15px;
    border: 1px solid var(--sx-line);
    border-radius: 10px;
    background: var(--sx-ivory);
    font-size: 13px;
    color: var(--sx-muted);
}

.sx-register .sx-inviter strong {
    color: var(--sx-gold-2);
    font-weight: 600;
}

/* 轻提示 */
.sx-toast {
    position: fixed;
    left: 50%;
    bottom: 48px;
    z-index: 9999;
    max-width: 80vw;
    padding: 12px 22px;
    border-radius: 10px;
    background: rgba(27, 21, 16, .92);
    color: #f7f1e5;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translate(-50%, 16px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}

.sx-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .sx-stage { grid-template-columns: 1.2fr 1fr; }
    .sx-visual { padding: 52px 42px; }
    .sx-visual h1 { font-size: 44px; }
    .sx-panel { padding: 46px 38px 42px; }
}

@media (max-width: 900px) {
    body.sx-register-page { min-width: 0; }
    body.sx-register-page .public-top,
    body.sx-register-page .header,
    body.sx-register-page .mall_nav,
    body.sx-register-page .ds-appbar { display: none; }
    body.sx-register-page .footer-info .links {
        width: auto;
        max-width: calc(100% - 32px);
        line-height: 1.8;
    }
    .sx-stage { grid-template-columns: 1fr; min-height: 0; }
    .sx-visual { min-height: 210px; padding: 38px 34px; justify-content: center; }
    .sx-visual h1 { font-size: 34px; margin-bottom: 12px; }
    .sx-visual__sub { margin-bottom: 16px; }
    .sx-visual__line { margin-bottom: 0; }
    .sx-visual__points { display: none; }
    .sx-kicker { margin-bottom: 16px; }
    .sx-panel { padding: 38px 30px 42px; }
}

@media (max-width: 640px) {
    .sx-login { padding: 20px 0 40px; }
    .sx-stage {
        max-width: calc(100% - 24px);
        border-radius: 18px;
        box-shadow: 0 18px 44px rgba(27, 21, 16, .14);
    }
    .sx-visual { min-height: 170px; padding: 28px 24px; }
    .sx-visual h1 { font-size: 27px; letter-spacing: .04em; }
    .sx-visual__sub { font-size: 13px; margin: 0; }
    .sx-visual__line { display: none; }
    .sx-visual::after { font-size: 220px; bottom: -54px; }
    .sx-panel { padding: 28px 20px 32px; }
    .sx-card-head h2 { font-size: 25px; }
    .sx-social { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
    .sx-code { flex-basis: 112px; width: 112px; }
}
