@charset "utf-8";
/* 热血群侠录 · H5 登录页 */

:root {
    --ink: #06151b;
    --gold: #e3c27d;
    --gold-deep: #a87b34;
    --cyan: #79d9d2;
    --text: #eaf6f5;
    --muted: rgba(222, 240, 238, .58);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
ol, ul, li, dd, dl, dt { list-style: none; }
*:focus { outline: 0; }
em, i { font-style: normal; }
/* 整页走最普通的文档流滚动：不给 html/body/scene 设固定高度或 overflow 裁剪，
   否则在移动 WebView 中会出现滚动条到不了底、底部信息被裁掉的问题 */
body {
    max-width: 640px;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    color: var(--text);
    background: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- 场景与氛围底图 ---------- */
.auth-scene {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    isolation: isolate;
    background: var(--ink);
}

/* 装饰层用 fixed 固定在视口，不参与文档流、不撑高页面，因此无需 overflow 裁剪 */
.auth-scene__bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: url(/code/20181211_01/login/image/login_bg.png) center 22% / cover no-repeat;
    filter: blur(5px) brightness(.5) saturate(.82);
    transform: scale(1.06);
}

.auth-scene__tint {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(110% 60% at 50% 16%, rgba(44, 130, 138, .28), transparent 62%),
        linear-gradient(180deg, rgba(3, 13, 18, .35) 0%, rgba(3, 13, 18, .12) 30%, rgba(3, 13, 18, .62) 72%, #041117 100%);
}

.auth-scene__glow {
    position: fixed;
    z-index: -1;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.auth-scene__glow--left { left: -90px; top: 18%; background: #1c8d9a; opacity: .32; }
.auth-scene__glow--right { right: -100px; top: 8%; background: #b58238; opacity: .2; }

/* ---------- 主体容器 ---------- */
.auth-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top) + 24px) 22px calc(env(safe-area-inset-bottom) + 40px);
}
/* 表单区在剩余空间内居中，页脚由弹性布局吸底 */
.auth-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
}
.auth-stage {
    width: 100%;
    margin: auto 0;
}

/* ---------- 品牌区 ---------- */
.brand {
    text-align: center;
    margin-bottom: 18px;
    animation: rise .62s ease both;
}
.brand__seal {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border: 1px solid rgba(227, 194, 125, .5);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(230, 195, 125, .22), rgba(230, 195, 125, .04));
    color: var(--gold);
    font-size: 26px;
    font-weight: 700;
    transform: rotate(-4deg);
    box-shadow: 0 0 28px rgba(227, 194, 125, .18), inset 0 0 18px rgba(227, 194, 125, .08);
}
.brand__title {
    color: #f6efe0;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .2em;
    text-indent: .2em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}
.brand__sub {
    margin-top: 8px;
    color: rgba(210, 235, 232, .55);
    font-size: 12px;
    letter-spacing: .24em;
    text-indent: .24em;
}

/* ---------- 登录卡片 ---------- */
.auth-card {
    position: relative;
    width: 100%;
    padding: 22px 20px 18px;
    border: 1px solid rgba(158, 214, 210, .18);
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(13, 38, 46, .78), rgba(5, 19, 26, .9));
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
    overflow: hidden;
    animation: rise .7s .08s ease both;
}
.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 58%;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .8;
}
.auth-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(121, 217, 210, .12), transparent 70%);
    pointer-events: none;
}
.auth-card > * { position: relative; z-index: 1; }

/* ---------- 登录 / 注册标签 ---------- */
.auth-tabs {
    position: relative;
    display: flex;
    height: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.auth-tabs__item {
    flex: 1;
    border: 0;
    background: none;
    color: rgba(226, 240, 238, .48);
    font-family: inherit;
    font-size: 15px;
    letter-spacing: .14em;
    cursor: pointer;
    transition: color .2s ease;
}
.auth-tabs__item.is-active {
    color: #f7e7c4;
    font-weight: 600;
}
.auth-tabs__ink {
    position: absolute;
    bottom: -1px;
    left: 25%;
    width: 50px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    transform: translateX(-50%);
    transition: left .28s cubic-bezier(.4, 0, .2, 1);
}
.auth-card.is-register .auth-tabs__ink { left: 75%; }

/* ---------- 输入框 ---------- */
.auth-fields { display: flex; flex-direction: column; gap: 12px; }
.auth-field {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.auth-field:focus-within {
    border-color: rgba(227, 194, 125, .55);
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 0 0 3px rgba(227, 194, 125, .1);
}
.auth-field__icon {
    flex: none;
    width: 20px;
    height: 20px;
    color: rgba(160, 205, 202, .65);
}
.auth-field__icon svg, .auth-field__eye svg { display: block; width: 100%; height: 100%; }
.auth-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding-left: 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    outline: 0;
}
.auth-field input::placeholder { color: rgba(210, 232, 230, .38); }
.auth-field__eye {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 5px;
    border: 0;
    background: none;
    color: rgba(190, 215, 212, .5);
    cursor: pointer;
    transition: color .2s ease;
}
.auth-field__eye.is-open { color: var(--gold); }
.auth-fields--extra {
    margin: 16px 0 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, .12);
}

/* ---------- 协议勾选 ---------- */
.auth-agree-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.auth-agree {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(220, 235, 233, .62);
    font-size: 11px;
    line-height: 1.55;
    cursor: pointer;
}
.auth-agree input {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 15px;
    height: 15px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.auth-agree__box {
    position: relative;
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    border: 1px solid rgba(227, 194, 125, .5);
    border-radius: 4px;
    background: rgba(255, 255, 255, .04);
    transition: background .2s ease, border-color .2s ease;
}
.auth-agree input:checked + .auth-agree__box {
    border-color: #e6c984;
    background: linear-gradient(135deg, #e6c984, #9c6f2e);
}
.auth-agree input:checked + .auth-agree__box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #1c1408;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.auth-agree__text a {
    color: var(--gold);
    text-decoration: none;
}
.auth-agree--sensitive .auth-agree__box { border-color: rgba(121, 217, 210, .55); }
.auth-agree--sensitive input:checked + .auth-agree__box {
    border-color: var(--cyan);
    background: linear-gradient(135deg, #8fe3dc, #2e8f8a);
}

/* ---------- 提示 ---------- */
.tishi { display: none; margin: 12px 0 2px; }
.tishi span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 120, 120, .22);
    border-radius: 8px;
    background: rgba(255, 99, 99, .1);
    color: #ffb0a8;
    font-size: 12px;
    line-height: 1.4;
    animation: tipIn .25s ease both;
}

/* ---------- 按钮与链接 ---------- */
.auth-actions { margin-top: 16px; }
.btn-primary {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #e6c984 0%, #c39a4e 48%, #9c6f2e 100%);
    color: #1c1408;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .18em;
    text-indent: .18em;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(176, 128, 46, .26), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .15s ease, filter .2s ease;
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-22deg);
    animation: shine 4.2s ease-in-out infinite;
}
.btn-primary:active { transform: translateY(1px) scale(.99); filter: brightness(.95); }
.btn-primary.is-loading { pointer-events: none; opacity: .85; filter: saturate(.6); }

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 20px;
    margin-top: 14px;
}
.auth-links--center { justify-content: center; }
.auth-link {
    color: rgba(225, 238, 236, .62);
    font-size: 12px;
    text-decoration: none;
    transition: color .2s ease;
}
.auth-link:active { color: var(--gold); }
.auth-link span { margin-left: 2px; color: var(--gold); }
.auth-link--ghost {
    padding: 4px 9px;
    border: 1px solid rgba(121, 217, 210, .25);
    border-radius: 999px;
    color: rgba(150, 220, 214, .75);
}

/* ---------- 底部合规信息（始终吸底） ---------- */
.legal {
    flex: none;
    width: 100%;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(215, 232, 230, .12);
    color: rgba(215, 232, 230, .46);
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}
.legal__tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border: 1px solid rgba(227, 194, 125, .35);
    border-radius: 999px;
    color: rgba(227, 194, 125, .85);
    font-size: 10px;
    letter-spacing: .08em;
}
.legal p { margin: 0; }
.legal__health {
    color: rgba(215, 232, 230, .5);
    font-size: 10px;
}
.legal__info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(215, 232, 230, .1);
}
.legal__info p {
    font-size: 9px;
    line-height: 1.75;
    word-break: break-all;
}
.legal__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}
.legal__nav a {
    color: rgba(121, 217, 210, .8);
    font-size: 11px;
    text-decoration: none;
}
.legal__nav a:active { opacity: .6; }

/* ---------- 第三方登录样式兼容（预留） ---------- */
.p_login_2 { position: relative; height: 20px; margin-bottom: 5px; color: #999; font-size: 12px; line-height: 20px; text-align: center; }
.p_login_em, .p_login_em_left, .p_login_em_right { position: absolute; top: 10px; height: 1px; background: rgba(255, 255, 255, .16); }
.p_login_em { left: 0; width: 100%; }
.p_login_em_left { left: 0; width: 40%; }
.p_login_em_right { right: 0; width: 40%; }
.p_login_span { display: inline-block; padding: 0 3px; background: none; font-size: 13px; }
.di_bd_css { height: 50px; border-bottom: 0; background: none; }
.third_login_img { width: 45px; }
.link_third_css { padding: 0 10px; text-decoration: none; }
.other_Lg .style a { display: inline-block; width: 33.3%; height: 32px; text-align: center; }
.other_Lg .style_higt { height: 50px; }
.middle_platform { float: left; width: 100%; font-size: 14px; line-height: 40px; }
.middle_platform a { display: block; border-top: 1px solid rgba(255, 255, 255, .1); color: #9ab6b4; text-align: center; text-decoration: none; }

/* ---------- 动效 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes shine { 0%, 60% { left: -70%; } 85%, 100% { left: 130%; } }

/* ---------- 小屏适配 ---------- */
@media all and (max-height: 680px) {
    .auth-shell { padding-top: calc(env(safe-area-inset-top) + 22px); }
    .brand { margin-bottom: 18px; padding-bottom: 0; }
    .brand__seal { width: 44px; height: 44px; margin-bottom: 10px; font-size: 22px; }
    .brand__title { font-size: 23px; }
    .brand__sub { margin-top: 5px; font-size: 11px; }
    .auth-card { padding: 18px 18px 16px; }
    .auth-tabs { margin-bottom: 14px; }
    .auth-fields { gap: 10px; }
    .auth-field { height: 48px; }
    .btn-primary { height: 46px; line-height: 46px; }
    .legal { padding-top: 8px; }
}
@media all and (max-width: 320px) {
    .auth-shell { padding-right: 16px; padding-left: 16px; }
    .brand__title { font-size: 21px; }
    .auth-card { padding: 16px 15px 14px; }
    .auth-field { padding: 0 11px; }
    .auth-field input { font-size: 14px; }
    .btn-primary { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .brand, .auth-card, .tishi span, .btn-primary::after { animation: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
