/* ============================
   后台登录页 - 电竞护航风格
   参考: club.68api.cn
   ============================ */

:root {
    --login-bg: #070b17;
    --login-panel: rgba(13, 20, 39, .86);
    --login-line: rgba(148, 163, 184, .18);
    --login-text: #f8fafc;
    --login-muted: #8e9bb0;
    --login-primary: #6c63ff;
    --login-cyan: #22d3ee;
}

* { box-sizing: border-box; }

html, body {
    width: 100%;
    min-width: 320px;
    height: 100%;
    min-height: 100%;
    margin: 0;
}

body.login-page {
    overflow: hidden;
    background-color: var(--login-bg);
    background-image: var(--login-bg-image, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--login-text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 69% 42%, rgba(55, 83, 150, .08) 0, rgba(7, 11, 23, .15) 24%, rgba(7, 11, 23, .5) 58%, rgba(7, 11, 23, .82) 100%),
        linear-gradient(90deg, rgba(7, 11, 23, .92) 0%, rgba(7, 11, 23, .8) 43%, rgba(7, 11, 23, .61) 100%),
        linear-gradient(180deg, rgba(7, 11, 23, .12), rgba(7, 11, 23, .76));
    pointer-events: none;
}

/* ===== 外层容器 ===== */
.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100%;
    overflow: hidden;
    isolation: isolate;
}

/* ===== 装饰：网格 ===== */
.login-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .22;
    background-image:
        linear-gradient(rgba(108, 99, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, .12) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to right, #000, transparent 78%);
    -webkit-mask-image: linear-gradient(to right, #000, transparent 78%);
}
.login-grid::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 56%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .75), transparent);
    box-shadow: 0 0 20px rgba(34, 211, 238, .45);
    opacity: .62;
}

/* ===== 装饰：环境光晕 ===== */
.login-ambient {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(12px);
    pointer-events: none;
}
.login-ambient-one {
    width: 480px; height: 480px;
    left: -180px; top: -180px;
    background: radial-gradient(circle, rgba(108, 99, 255, .26), transparent 68%);
}
.login-ambient-two {
    width: 520px; height: 520px;
    right: -160px; bottom: -230px;
    background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 68%);
}

/* ===== 装饰：品牌能量轨 ===== */
.brand-energy-rail {
    position: absolute;
    z-index: 0;
    top: 24px; bottom: 24px;
    left: clamp(218px, 12.7vw, 258px);
    width: 84px;
    pointer-events: none;
}
.brand-energy-rail::before {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent 0%, #766dff 8%, #29d4e5 42%, rgba(57,201,226,.32) 78%, transparent 100%);
    box-shadow: 0 0 8px rgba(108,99,255,.58), 0 0 18px rgba(34,211,238,.22);
    content: "";
}
.brand-energy-rail::after {
    position: absolute;
    top: 28%; bottom: 28%;
    left: -2px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(78,225,239,.95), transparent);
    filter: blur(2px);
    content: "";
    opacity: .72;
}
.energy-branch {
    position: absolute;
    left: 1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(34,211,238,.88), rgba(108,99,255,.24), transparent);
    box-shadow: 0 0 7px rgba(34,211,238,.36);
}
.energy-branch::before {
    position: absolute;
    top: -2px; left: 0;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #55e7f0;
    box-shadow: 0 0 9px #22d3ee;
    content: "";
}
.energy-branch-top    { top: 16%; width: 62px; transform: rotate(-10deg); transform-origin: left center; }
.energy-branch-mid    { top: 52%; width: 82px; }
.energy-branch-bottom { top: 82%; width: 54px; transform: rotate(11deg); transform-origin: left center; }
.energy-node {
    position: absolute;
    left: -5px;
    width: 12px; height: 12px;
    border: 2px solid rgba(109,238,246,.9);
    border-radius: 50%;
    background: #101a31;
    box-shadow: 0 0 0 4px rgba(34,211,238,.08), 0 0 14px rgba(34,211,238,.55);
}
.energy-node-top    { top: 16%; }
.energy-node-mid    { top: 51.5%; }
.energy-node-bottom { top: 81.5%; }
.energy-flow {
    position: absolute;
    top: -80px; left: -2px;
    width: 6px; height: 76px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, #fff 48%, #34dbea 62%, transparent);
    filter: blur(.3px);
    box-shadow: 0 0 12px rgba(34,211,238,.8);
    animation: brand-energy-flow 5.8s linear infinite;
}
@keyframes brand-energy-flow {
    0%   { opacity: 0; transform: translateY(0); }
    8%   { opacity: 1; }
    84%  { opacity: .9; }
    100% { opacity: 0; transform: translateY(calc(100vh + 120px)); }
}

/* ===== 顶部品牌头 ===== */
.login-brand {
    position: absolute;
    top: 42px;
    left: clamp(56px, 3.6vw, 72px);
    display: flex;
    align-items: center;
    gap: 13px;
    z-index: 5;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 46px; height: 50px;
    color: var(--login-cyan);
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, .24));
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark img {
    display: block;
    width: 50px; height: 50px;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 7px 16px rgba(34, 211, 238, .22));
}
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 17px; letter-spacing: .06em; color: #f8fafc; font-weight: 600; }
.brand-copy span { color: var(--login-muted); font-size: 11px; letter-spacing: .22em; }

/* ===== 主舞台 ===== */
.login-stage {
    display: grid;
    grid-template-columns: minmax(680px, 1fr) 440px;
    align-items: center;
    gap: clamp(70px, 6vw, 100px);
    width: min(1320px, calc(100% - 100px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 104px 0 86px;
    position: relative;
    z-index: 2;
}

/* ===== 左侧：品牌叙事 ===== */
.login-story {
    max-width: 720px;
    padding-left: 10px;
}
@media (min-width: 1051px) {
    .login-story { transform: translateY(-28px); }
}
.story-kicker,
.panel-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--login-cyan);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
}
.story-kicker span,
.panel-badge span {
    width: 24px; height: 2px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}
.login-story h1 {
    display: flex;
    margin: 30px 0 28px;
    flex-direction: column;
    gap: 18px;
    color: #f8fafc;
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: .012em;
    text-shadow: 0 10px 36px rgba(0, 0, 0, .26);
}
.login-story h1 br { display: none; }
.login-story h1 em {
    display: block;
    color: transparent;
    font-style: normal;
    letter-spacing: .025em;
    background: linear-gradient(100deg, #8b85ff 5%, #22d3ee 90%);
    -webkit-background-clip: text;
    background-clip: text;
}
.login-story > p {
    max-width: 540px;
    margin: 0;
    color: #a8b4c7;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: .02em;
}
.story-features {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 720px;
    margin-top: 56px;
    padding: 31px 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.story-features::before {
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, .82), rgba(148, 163, 184, .25) 72%, rgba(148, 163, 184, .06));
    content: "";
}
.story-feature,
.story-feature:first-child,
.story-feature:last-child {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 72px;
    padding: 0 28px;
    align-items: start;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
}
.story-feature:first-child { padding-left: 0; }
.story-feature:last-child  { padding-right: 0; }
.story-feature + .story-feature { border-left: 1px solid var(--login-line); }
.story-feature::before {
    position: absolute;
    top: -35px;
    left: 28px;
    width: 7px; height: 7px;
    border: 2px solid #0c1727;
    border-radius: 50%;
    background: #36d3df;
    box-shadow: 0 0 12px rgba(34, 211, 238, .68);
    content: "";
}
.story-feature:first-child::before { left: 0; }
.feature-index {
    display: inline !important;
    margin-right: 7px;
    color: #61d9ed !important;
    font-size: 14px !important;
    font-weight: 750;
    line-height: inherit;
    letter-spacing: .06em;
    overflow: visible !important;
}
.feature-icon {
    display: inline-flex !important;
    width: 38px; height: 44px;
    align-items: center;
    justify-content: center;
    color: #66cde4 !important;
    font-size: 27px !important;
    line-height: 1;
}
.story-feature div { min-width: 0; }
.story-feature strong,
.story-feature div > span { display: block; }
.story-feature strong {
    margin: 1px 0 10px;
    color: #eef3fa;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: .03em;
    white-space: nowrap;
}
.story-feature div > span {
    color: #8392a7;
    font-size: 11px;
    line-height: 1.65;
    white-space: nowrap;
}

/* ===== 右侧：登录面板 ===== */
.login-panel {
    position: relative;
    width: 440px;
    padding: 38px 42px 30px;
    overflow: hidden;
    border: 1px solid rgba(137, 159, 204, .24);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(22, 33, 60, .9), rgba(10, 17, 34, .92) 54%, rgba(12, 21, 40, .94));
    box-shadow:
        0 32px 90px rgba(0, 0, 0, .46),
        0 0 0 1px rgba(85, 119, 190, .06),
        inset 0 1px 0 rgba(255, 255, 255, .075);
    backdrop-filter: blur(28px) saturate(118%);
    -webkit-backdrop-filter: blur(28px) saturate(118%);
}
@media (min-width: 1051px) {
    .login-panel { transform: translateX(-42px); }
}
.login-panel::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 46px;
    width: 120px; height: 2px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #766dff, #25d5eb 72%, transparent);
    box-shadow: 0 0 18px rgba(34, 211, 238, .42);
}
.login-panel::after {
    position: absolute;
    top: -120px; right: -120px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(82, 125, 255, .11), transparent 68%);
    pointer-events: none;
    content: "";
}
.panel-badge,
.panel-heading,
.login-bottom,
.panel-foot { position: relative; z-index: 1; }

.panel-heading { margin: 27px 0 27px; }
.panel-heading h2 { margin: 0 0 7px; color: #fff; font-size: 28px; line-height: 1.2; font-weight: 600; }
.panel-heading p { margin: 0; color: #98a6bb; font-size: 13px; }

/* ===== 表单 ===== */
.login-bottom, .center { width: 100%; }
.center .item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 64px;
    margin-bottom: 14px;
    padding: 0 16px;
    border: 1px solid rgba(137, 159, 204, .24);
    border-radius: 13px;
    background: rgba(255, 255, 255, .038);
    cursor: text;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.center .item:hover {
    border-color: rgba(137, 159, 204, .38);
    background: rgba(255, 255, 255, .052);
}
.center .item:focus-within {
    border-color: rgba(111, 105, 255, .9);
    background: rgba(108, 99, 255, .075);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, .1), inset 0 1px rgba(255, 255, 255, .035);
    transform: translateY(-1px);
}
.center .item:focus-within .field-icon,
.center .item:focus-within .field-label { color: #a9b9ff; }
.center .item:focus-within .field-icon { filter: drop-shadow(0 0 8px rgba(108, 99, 255, .42)); }

.field-icon {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px; height: 24px;
    margin-right: 13px;
    color: #8494ad;
    transition: color .2s ease, filter .2s ease;
}
.field-icon svg { width: 21px; height: 21px; }
.field-icon i { font-size: 21px; }
.field-content { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.field-label { color: #8796ad; font-size: 10px; letter-spacing: .08em; transition: color .2s ease; }

.center .item input {
    display: block;
    width: 100%;
    height: 22px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #f1f5ff;
    background: transparent;
    font-size: 14px;
}
.center .item input::placeholder { color: #6f7e95; }
.center .item input:-webkit-autofill {
    -webkit-text-fill-color: #f1f5ff !important;
    box-shadow: 0 0 0 1000px #111a2e inset !important;
}

/* 密码可见切换 */
.bind-password {
    position: relative;
    flex: 0 0 22px;
    width: 22px; height: 22px;
    margin-left: 8px;
    cursor: pointer;
}
.bind-password::before {
    content: "\f070";
    position: absolute;
    inset: 0;
    color: #718198;
    font: normal normal normal 14px/22px FontAwesome;
    text-align: center;
    transition: color .2s ease;
}
.bind-password:hover::before { color: #a5b4fc; }
.bind-password.icon-5::before { content: "\f06e"; color: #a5b4fc; }

/* 验证码 */
.captcha-item .validateImg {
    flex: 0 0 96px;
    width: 96px; height: 38px;
    margin-left: 10px;
    border: 0;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform .2s ease;
}
.captcha-item .validateImg:hover { transform: scale(1.04); }

/* ===== 选项行 ===== */
.tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    margin-top: 2px;
}
.remember-wrap { display: inline-flex; align-items: center; cursor: pointer; }
.icon-nocheck {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 17px; height: 17px;
    margin-right: 8px;
    border: 1px solid #66748b;
    border-radius: 5px;
    cursor: pointer;
    transition: all .2s;
}
.icon-nocheck.icon-check { border-color: var(--login-primary); background: var(--login-primary); }
.icon-nocheck.icon-check::after { content: "✓"; color: #fff; font-size: 11px; line-height: 1; }
.login-tip, .forget-password { color: #9aa7ba; font-size: 12px; cursor: pointer; }
.help-wrap { position: relative; display: inline-flex; }
.forget-password {
    margin: 0;
    padding: 4px 0;
    border: 0;
    outline: 0;
    color: #a6a3ff;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}
.forget-password:hover { color: #c2c0ff; }

/* 帮助浮层 */
.login-help-popover {
    position: absolute;
    right: -8px;
    bottom: 31px;
    z-index: 20;
    display: block;
    width: 265px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 13px;
    opacity: 0;
    visibility: hidden;
    color: #e8edfa;
    background: #151d31;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
    text-align: left;
    transform: translateY(7px) scale(.98);
    transform-origin: right bottom;
    transition: opacity .18s, visibility .18s, transform .18s;
}
.help-wrap.open .login-help-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.help-popover-arrow {
    position: absolute;
    right: 22px; bottom: -6px;
    width: 11px; height: 11px;
    border-right: 1px solid rgba(148, 163, 184, .2);
    border-bottom: 1px solid rgba(148, 163, 184, .2);
    background: #151d31;
    transform: rotate(45deg);
}
.help-popover-title,
.help-popover-item,
.help-popover-item b,
.help-popover-item small { display: block; }
.help-popover-title { margin-bottom: 12px; color: #fff; font-size: 13px; font-weight: 700; }
.help-popover-title i { margin-right: 6px; color: var(--login-cyan); }
.help-popover-item { padding: 10px 0; border-top: 1px solid rgba(148, 163, 184, .11); }
.help-popover-item b { margin-bottom: 4px; color: #ced6e7; font-size: 11px; font-weight: 600; }
.help-popover-item small { color: #75849b; font-size: 10px; line-height: 1.6; }
.help-popover-close {
    width: 100%;
    height: 30px;
    margin-top: 3px;
    border: 1px solid rgba(108, 99, 255, .3);
    border-radius: 7px;
    color: #b9b6ff;
    background: rgba(108, 99, 255, .1);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}
.help-popover-close:hover { color: #fff; background: rgba(108, 99, 255, .2); }

/* ===== 登录按钮 ===== */
.login-action { width: 100%; height: auto !important; margin: 24px 0 0 !important; }
.login-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(102deg, #6258ff 0%, #766cff 52%, #4f9dff 100%);
    box-shadow: 0 14px 34px rgba(91, 91, 255, .29), inset 0 1px rgba(255, 255, 255, .18);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.login-btn::before {
    position: absolute;
    top: -90%; left: -28%;
    width: 23%; height: 280%;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .36), transparent);
    pointer-events: none;
    transform: rotate(18deg);
    content: "";
}
.login-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(108, 99, 255, .36);
}
.login-btn:hover::before {
    opacity: 1;
    animation: login-button-sheen .85s ease-out both;
}
.login-btn:active {
    transform: translateY(0) scale(.995);
    box-shadow: 0 8px 22px rgba(91, 91, 255, .24);
}
.login-btn i { transition: transform .2s; }
.login-btn:hover i { transform: translateX(4px); }
.login-btn.is-loading {
    cursor: wait;
    filter: saturate(.82);
    transform: none;
    box-shadow: 0 8px 20px rgba(108, 99, 255, .2);
}
.login-btn.is-loading i { transform: none; }
.login-btn.is-loading span::after {
    content: "";
    display: inline-block;
    width: 12px; height: 12px;
    margin-left: 10px;
    border: 2px solid rgba(255,255,255,.55);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: btnSpin .8s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
@keyframes login-button-sheen {
    from { left: -28%; }
    to   { left: 112%; }
}

/* ===== 面板底部 ===== */
.panel-foot {
    margin-top: 24px;
    color: #718097;
    font-size: 11px;
    text-align: center;
}
.panel-foot i { margin-right: 5px; color: #4bbaae; }
.panel-foot a:hover { color: #c2c0ff !important; }

/* ===== 页脚 ===== */
.footer {
    position: absolute;
    right: 0; bottom: 22px; left: 0;
    color: #718097;
    font-size: 11px;
    line-height: 24px;
    text-align: center;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.footer a, .footer span { color: #8492a7; text-decoration: none; }
.footer .backend-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 26px;
    margin-left: 4px;
    padding: 0 12px;
    border: 1px solid rgba(115, 151, 210, .35);
    border-radius: 999px;
    color: #dce7f9;
    background: rgba(17, 29, 52, .72);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 5px 16px rgba(0, 0, 0, .2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .035em;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.padding-5 { padding: 5px !important; }

/* ===== 自定义提示弹窗 ===== */
.layui-layer.custom-alert-layer {
    width: 380px !important;
    min-width: 0 !important;
    border: 1px solid rgba(110, 129, 166, .32) !important;
    border-radius: 20px !important;
    background: linear-gradient(160deg, rgba(22, 33, 60, .97), rgba(10, 17, 34, .97) 60%, rgba(12, 21, 40, .97)) !important;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, .6),
        0 0 0 1px rgba(255, 255, 255, .04) inset,
        0 0 90px rgba(108, 99, 255, .16) !important;
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    overflow: visible !important;
}
.layui-layer.custom-alert-layer .layui-layer-content {
    padding: 0 !important;
    color: #eef4ff !important;
    background: transparent !important;
    border: none !important;
    text-align: center;
}
.layui-layer.custom-alert-layer .layui-layer-close {
    display: none !important;
}

/* 顶部渐变彩条 */
.custom-alert-layer.custom-alert-success .layui-layer-content::before,
.custom-alert-layer.custom-alert-error .layui-layer-content::before {
    content: "";
    position: absolute;
    top: -1px; left: 36px; right: 36px;
    height: 2px;
    border-radius: 0 0 3px 3px;
}
.custom-alert-layer.custom-alert-success .layui-layer-content::before {
    background: linear-gradient(90deg, transparent, #10b981 30%, #22d3ee 70%, transparent);
    box-shadow: 0 0 18px rgba(34, 211, 238, .55);
}
.custom-alert-layer.custom-alert-error .layui-layer-content::before {
    background: linear-gradient(90deg, transparent, #f43f5e 30%, #f59e0b 70%, transparent);
    box-shadow: 0 0 18px rgba(244, 63, 94, .5);
}

/* === 内容容器 === */
.custom-alert {
    position: relative;
    padding: 40px 28px 24px;
    animation: alert-pop .4s cubic-bezier(.34, 1.56, .64, 1) both;
}

/* === 图标 === */
.alert-icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alert-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: .45;
    animation: alert-glow-pulse 2.4s ease-in-out infinite;
}
.is-success .alert-glow { background: linear-gradient(135deg, #10b981, #22d3ee); }
.is-error   .alert-glow { background: linear-gradient(135deg, #f43f5e, #f59e0b); }

.alert-mark {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    animation: alert-mark-in .6s cubic-bezier(.34, 1.56, .64, 1) .1s both;
}
.is-success .alert-mark {
    background: linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
    box-shadow:
        0 14px 32px rgba(16, 185, 129, .5),
        inset 0 1px rgba(255, 255, 255, .35);
}
.is-error .alert-mark {
    background: linear-gradient(135deg, #f43f5e 0%, #f59e0b 100%);
    box-shadow:
        0 14px 32px rgba(244, 63, 94, .5),
        inset 0 1px rgba(255, 255, 255, .35);
}

/* === 文字 === */
.alert-text h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .03em;
    animation: alert-text-in .45s ease-out .15s both;
}
.alert-text p {
    margin: 0;
    color: #98a6bb;
    font-size: 13px;
    line-height: 1.6;
    animation: alert-text-in .45s ease-out .22s both;
}

/* === 进度条 === */
.alert-progress {
    margin-top: 24px;
    height: 3px;
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
    overflow: hidden;
}
.alert-progress i {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 999px;
    transform-origin: left center;
    animation: alert-progress 2200ms linear forwards;
}
.is-success .alert-progress i {
    background: linear-gradient(90deg, #10b981, #22d3ee);
    box-shadow: 0 0 12px rgba(34, 211, 238, .55);
}
.is-error .alert-progress i {
    background: linear-gradient(90deg, #f43f5e, #f59e0b);
    box-shadow: 0 0 12px rgba(244, 63, 94, .5);
}

/* === 动画 === */
@keyframes alert-pop {
    from { opacity: 0; transform: scale(.85) translateY(-16px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}
@keyframes alert-mark-in {
    0%   { opacity: 0; transform: scale(.4) rotate(-20deg); }
    60%  { opacity: 1; transform: scale(1.15) rotate(8deg); }
    100% { opacity: 1; transform: scale(1)   rotate(0); }
}
@keyframes alert-text-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes alert-glow-pulse {
    0%, 100% { transform: scale(1);   opacity: .35; }
    50%      { transform: scale(1.25); opacity: .55; }
}
@keyframes alert-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* 提交中的小白loading遮罩与暗色主题不搭，强制隐藏 */
body.login-submitting .layui-layer-msg:has(.layui-icon-loading) {
    display: none !important;
}

/* ===== 响应式 ===== */
@media (min-width: 821px) and (max-height: 790px) {
    .login-stage { padding-top: 78px; padding-bottom: 62px; }
    .login-story { transform: translateY(-12px); }
    .login-panel { padding-top: 31px; padding-bottom: 25px; }
    .panel-heading { margin-top: 22px; margin-bottom: 22px; }
    .panel-foot { margin-top: 18px; }
    .footer { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-btn, .login-btn i, .center .item { transition: none; }
    .login-btn:hover::before { animation: none; }
}

@media (max-width: 1050px) {
    .brand-energy-rail { left: 205px; opacity: .72; }
    .login-brand { left: 45px; }
    .login-stage { grid-template-columns: minmax(280px, 1fr) 410px; gap: 45px; width: calc(100% - 60px); }
    .login-panel { width: 410px; }
    .story-features { max-width: 520px; margin-top: 38px; padding-top: 24px; }
    .story-feature,
    .story-feature:first-child,
    .story-feature:last-child {
        min-height: 68px;
        padding-right: 12px;
        padding-left: 12px;
        gap: 9px;
        grid-template-columns: 31px minmax(0, 1fr);
    }
    .story-feature:first-child { padding-left: 0; }
    .story-feature:last-child  { padding-right: 0; }
    .story-feature::before { top: -28px; left: 12px; }
    .story-feature:first-child::before { left: 0; }
    .feature-icon { width: 31px; font-size: 23px !important; }
    .story-feature strong { font-size: 14px; }
    .feature-index { margin-right: 4px; font-size: 11px !important; }
    .story-feature div > span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
}

@media (max-width: 820px) {
    html, body { min-height: 100%; height: auto; }
    body.login-page { overflow-x: hidden; overflow-y: auto; background-position: center top; background-attachment: scroll; }
    body.login-page::before {
        background:
            linear-gradient(180deg, rgba(7, 11, 23, .45), rgba(7, 11, 23, .88)),
            linear-gradient(90deg, rgba(7, 11, 23, .28), rgba(7, 11, 23, .12));
    }
    .login-shell {
        min-height: 100svh;
        overflow: visible;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .login-brand {
        position: relative;
        top: auto; left: auto;
        width: calc(100% - 32px);
        margin: 18px auto 0;
    }
    .brand-energy-rail { display: none; }
    .login-stage {
        display: block;
        width: calc(100% - 32px);
        min-height: auto;
        padding: 32px 0 66px;
    }
    .login-story { margin-bottom: 20px; padding: 0; }
    .story-kicker, .login-story > p, .story-features { display: none; }
    .login-story h1 {
        display: block;
        margin: 0;
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1.18;
    }
    .login-story h1 em { display: inline; margin-left: 9px; }
    .login-panel {
        width: 100%;
        padding: 26px 20px 22px;
        border-radius: 18px;
    }
    .login-panel .item { min-height: 52px; }
    .login-panel .field-content input { min-height: 46px; font-size: 15px; }
    .validateImg { width: 106px; height: 44px; }
    .login-btn { min-height: 50px; touch-action: manipulation; }
    .footer {
        position: relative;
        right: auto; bottom: auto;
        width: calc(100% - 32px);
        margin: 0 auto;
        padding: 0 0 22px;
        line-height: 1.7;
    }
    .footer .backend-version { min-width: 0; height: 26px; padding: 0 10px; font-size: 11px; }
}

@media (max-width: 430px) {
    .login-brand { margin-top: 14px; }
    .login-stage { width: calc(100% - 24px); padding-top: 26px; }
    .login-story h1 { font-size: 29px; }
    .login-panel { padding: 24px 16px 20px; }
    .panel-heading { margin: 23px 0 25px; }
    .panel-heading h2 { font-size: 22px; }
    .login-panel .item { padding-left: 12px; padding-right: 10px; }
    .validateImg { width: 98px; }
    .footer { width: calc(100% - 24px); font-size: 11px; }
}