:root {
    --page-bg: #07090d;
    --panel-bg: rgba(10, 14, 21, .91);
    --panel-line: rgba(191, 210, 224, .18);
    --field-bg: rgba(255, 255, 255, .045);
    --field-line: rgba(191, 210, 224, .17);
    --text-main: #f5f7fa;
    --text-soft: #a8b2bf;
    --text-muted: #718092;
    --accent: #45cee6;
    --accent-strong: #25b9d7;
    --success: #42d3a3;
}

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

html.ea-main-frame body {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    zoom: 1 !important;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: var(--text-main);
    background: var(--page-bg) center / cover no-repeat fixed;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 8, 13, .93) 0%, rgba(5, 8, 13, .79) 37%, rgba(5, 8, 13, .46) 66%, rgba(5, 8, 13, .72) 100%),
        linear-gradient(180deg, rgba(5, 8, 13, .16) 0%, rgba(5, 8, 13, .19) 56%, rgba(5, 8, 13, .83) 100%);
    pointer-events: none;
    content: "";
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    grid-template-rows: auto 1fr auto;
}

.login-shell::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(58vw, 1040px);
    background: linear-gradient(90deg, rgba(4, 8, 13, .22), transparent);
    pointer-events: none;
    content: "";
}

.brand-energy-rail {
    position: absolute;
    z-index: 0;
    top: 24px;
    bottom: 24px;
    left: max(18px, calc((100vw - 1480px) / 2 - 116px));
    width: 94px;
    pointer-events: none;
}

.brand-energy-rail::before {
    position: absolute;
    top: 8px;
    bottom: 124px;
    left: -10px;
    width: 22px;
    background: linear-gradient(180deg, rgba(132, 117, 255, .42), rgba(34, 211, 238, .34) 44%, rgba(69, 206, 230, .18));
    clip-path: polygon(50% 0, 100% 5%, 74% 100%, 26% 100%, 0 5%);
    filter: blur(7px);
    opacity: .7;
    content: "";
    animation: sword-aura-pulse 4.8s ease-in-out infinite;
}

.brand-energy-rail::after {
    position: absolute;
    top: 8px;
    bottom: 124px;
    left: -6px;
    width: 14px;
    background:
        linear-gradient(90deg, rgba(26, 54, 77, .85) 0%, rgba(111, 224, 237, .55) 31%, rgba(230, 252, 255, .96) 48%, rgba(107, 116, 255, .58) 68%, rgba(18, 35, 58, .9) 100%),
        linear-gradient(180deg, #8f86ff, #22d3ee 46%, #38e8bd);
    clip-path: polygon(50% 0, 100% 5%, 74% 100%, 26% 100%, 0 5%);
    box-shadow: 0 0 9px rgba(69, 206, 230, .55);
    content: "";
    animation: sword-blade-spectrum 7s ease-in-out infinite;
}

.energy-sword-blade {
    position: absolute;
    z-index: 2;
    top: 28px;
    bottom: 135px;
    left: 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(157, 244, 252, .88) 50%, rgba(128, 132, 255, .72));
    box-shadow: 0 0 5px rgba(207, 252, 255, .75);
    opacity: .85;
}

.energy-sword-blade::before {
    position: absolute;
    top: 13%;
    bottom: 4%;
    left: -8px;
    width: 18px;
    background: linear-gradient(90deg, transparent, rgba(69, 206, 230, .1), transparent);
    filter: blur(5px);
    content: "";
}

.energy-sword-guard {
    position: absolute;
    z-index: 3;
    bottom: 108px;
    left: -45px;
    width: 92px;
    height: 24px;
    filter: drop-shadow(0 0 7px rgba(69, 206, 230, .52));
}

.energy-sword-guard::before,
.energy-sword-guard::after {
    position: absolute;
    top: 5px;
    width: 48px;
    height: 14px;
    background: linear-gradient(90deg, rgba(117, 107, 255, .28), #7e78ff 56%, #7cecf4);
    clip-path: polygon(0 35%, 82% 0, 100% 50%, 82% 100%, 14% 68%);
    content: "";
    animation: sword-guard-spectrum 7s ease-in-out infinite;
}

.energy-sword-guard::before { left: 0; }
.energy-sword-guard::after { right: 0; transform: scaleX(-1); }

.energy-sword-guard i {
    position: absolute;
    z-index: 2;
    top: 3px;
    left: calc(50% - 9px);
    width: 18px;
    height: 18px;
    border: 2px solid #9cf4fa;
    border-radius: 4px;
    background: linear-gradient(135deg, #11162c, #06161b);
    box-shadow: 0 0 0 3px rgba(69, 206, 230, .1), 0 0 13px rgba(69, 206, 230, .72);
    transform: rotate(45deg);
}

.energy-sword-guard i::after {
    position: absolute;
    inset: 5px;
    border-radius: 1px;
    background: #e4fdff;
    box-shadow: 0 0 8px #22d3ee;
    content: "";
}

.energy-sword-grip {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    left: -6px;
    width: 14px;
    height: 78px;
    border: 1px solid rgba(124, 236, 244, .46);
    border-radius: 2px;
    background:
        repeating-linear-gradient(145deg, transparent 0 7px, rgba(124, 236, 244, .48) 7px 9px, transparent 9px 15px),
        linear-gradient(90deg, #0a1020, #31346e 48%, #07121a);
    box-shadow: inset 0 0 5px rgba(69, 206, 230, .28), 0 0 10px rgba(69, 206, 230, .2);
}

.energy-sword-pommel {
    position: absolute;
    z-index: 3;
    bottom: 8px;
    left: -9px;
    width: 20px;
    height: 20px;
    border: 2px solid #7cecf4;
    border-radius: 4px;
    background: linear-gradient(135deg, #242657, #06161b);
    box-shadow: 0 0 13px rgba(69, 206, 230, .58);
    transform: rotate(45deg);
}

.energy-flow {
    position: absolute;
    z-index: 4;
    top: 18px;
    left: -5px;
    width: 12px;
    height: 96px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .92) 46%, rgba(77, 225, 239, .88) 58%, transparent);
    clip-path: polygon(50% 0, 100% 18%, 72% 100%, 28% 100%, 0 18%);
    filter: blur(1px);
    box-shadow: 0 0 13px rgba(69, 206, 230, .75);
    animation: sword-energy-flow 6.4s ease-in-out infinite;
}

@keyframes sword-aura-pulse {
    0%, 100% { opacity: .5; filter: blur(7px) hue-rotate(0deg); }
    50% { opacity: .82; filter: blur(9px) hue-rotate(80deg); }
}

@keyframes sword-blade-spectrum {
    0%, 100% { filter: hue-rotate(0deg); opacity: .9; }
    50% { filter: hue-rotate(70deg); opacity: 1; }
}

@keyframes sword-guard-spectrum {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(85deg); }
}

@keyframes sword-energy-flow {
    0%, 8% { opacity: 0; transform: translateY(0); }
    18% { opacity: 1; }
    78% { opacity: .85; }
    100% { opacity: 0; transform: translateY(calc(100vh - 250px)); }
}

/* Restrained data spine: the decorative rail stays abstract and secondary. */
.brand-energy-rail {
    width: 64px;
}

.brand-energy-rail::before {
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent 0%, #756bff 10%, #22d3ee 44%, #38e8bd 76%, transparent 100%);
    background-size: 100% 220%;
    clip-path: none;
    filter: none;
    opacity: .68;
    box-shadow: 0 0 5px rgba(69, 206, 230, .4), 0 0 12px rgba(117, 107, 255, .12);
    animation: energy-spectrum-vertical 8s linear infinite;
}

.brand-energy-rail::after {
    top: 8%;
    bottom: 8%;
    left: -2px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(117, 107, 255, .48), rgba(34, 211, 238, .58), rgba(56, 232, 189, .42), transparent);
    background-size: 100% 240%;
    clip-path: none;
    filter: blur(5px);
    opacity: .38;
    box-shadow: none;
    animation: energy-spectrum-vertical 8s linear infinite;
}

.energy-rail-node {
    position: absolute;
    z-index: 3;
    left: -4px;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(124, 236, 244, .7);
    border-radius: 50%;
    background: #08121a;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, .035), 0 0 7px rgba(34, 211, 238, .3);
    opacity: .72;
}

.energy-rail-node::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 4px;
    height: 4px;
    border-radius: 1px;
    background: #d9fcff;
    box-shadow: 0 0 4px rgba(124, 236, 244, .55);
    content: "";
    transform: rotate(45deg);
}

.energy-rail-node::after {
    position: absolute;
    top: 1px;
    left: 10px;
    width: 28px;
    height: 8px;
    background:
        radial-gradient(circle at calc(100% - 2px) 50%, rgba(160, 246, 250, .78) 0 2px, transparent 2.5px),
        linear-gradient(90deg, rgba(34, 211, 238, .68), rgba(117, 107, 255, .32), transparent);
    background-position: right center, left center;
    background-size: 100% 100%, calc(100% - 4px) 1px;
    background-repeat: no-repeat;
    box-shadow: 0 0 4px rgba(69, 206, 230, .18);
    opacity: .42;
    content: "";
    animation: energy-spectrum-horizontal 7s linear infinite;
}

.energy-rail-node-top { top: calc(18% - 5px); }
.energy-rail-node-mid { top: calc(55% - 5px); }
.energy-rail-node-bottom { top: calc(84% - 5px); }
.energy-rail-node-top::after { width: 25px; transform: rotate(-5deg); transform-origin: left center; }
.energy-rail-node-mid::after { width: 33px; }
.energy-rail-node-bottom::after { width: 22px; transform: rotate(5deg); transform-origin: left center; }

.energy-flow {
    top: -80px;
    left: -2px;
    width: 6px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .96) 48%, #63edf5 62%, transparent);
    clip-path: none;
    filter: blur(.5px);
    box-shadow: 0 0 11px rgba(69, 206, 230, .8);
    animation: brand-energy-flow 6.8s linear infinite, energy-hue-shift 7s linear infinite;
}

@keyframes energy-spectrum-vertical {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes energy-spectrum-horizontal {
    0% { background-position: 0 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes energy-node-spectrum {
    0%, 100% { border-color: #7cecf4; box-shadow: 0 0 0 3px rgba(34, 211, 238, .08), 0 0 11px rgba(34, 211, 238, .55); }
    34% { border-color: #8f86ff; box-shadow: 0 0 0 3px rgba(117, 107, 255, .08), 0 0 12px rgba(117, 107, 255, .58); }
    67% { border-color: #f38bd2; box-shadow: 0 0 0 3px rgba(237, 88, 200, .08), 0 0 12px rgba(237, 88, 200, .54); }
}

@keyframes energy-hue-shift {
    0% { filter: blur(.4px) hue-rotate(0deg); }
    100% { filter: blur(.4px) hue-rotate(360deg); }
}

@keyframes brand-energy-flow {
    0% { opacity: 0; transform: translateY(0); }
    10% { opacity: .9; }
    82% { opacity: .7; }
    100% { opacity: 0; transform: translateY(calc(100vh + 110px)); }
}

.login-brand,
.login-stage,
.footer {
    width: min(1480px, calc(100% - 96px));
    margin-right: auto;
    margin-left: auto;
}

.login-brand {
    display: flex;
    width: min(1320px, calc(100% - 96px));
    padding-top: 40px;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
}

.brand-mark img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 7px 14px rgba(52, 205, 229, .2));
}

.brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.brand-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy span {
    color: #8290a1;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .18em;
}

.login-stage {
    display: grid;
    width: min(1320px, calc(100% - 96px));
    padding: 46px 0 54px;
    align-content: center;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: clamp(84px, 8vw, 154px);
}

.login-story {
    display: flex;
    width: min(720px, 100%);
    padding-top: 38px;
    flex-direction: column;
}

.story-kicker,
.panel-badge {
    display: flex;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .2em;
    align-items: center;
    gap: 10px;
}

.story-kicker::before,
.panel-badge::before {
    width: 24px;
    height: 2px;
    flex: 0 0 24px;
    background: currentColor;
    box-shadow: 0 0 12px rgba(69, 206, 230, .5);
    content: "";
}

.story-kicker > span,
.panel-badge > span { display: none; }

.login-story h1 {
    margin: 28px 0 40px;
    color: #fff;
    font-size: clamp(46px, 4.15vw, 64px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 10px 38px rgba(0, 0, 0, .38);
}

.login-story h1 em {
    display: inline-block;
    margin-top: 24px;
    color: #d4d0ff;
    font-style: normal;
    font-weight: 650;
    text-shadow: 0 10px 34px rgba(113, 99, 210, .24);
}

.login-story > p {
    margin: 0;
    color: #aeb8c4;
    font-size: 15px;
    line-height: 1.8;
}

.story-manifesto {
    display: flex;
    margin-top: auto;
    padding-left: 15px;
    border-left: 2px solid rgba(69, 206, 230, .72);
    align-items: baseline;
    gap: 13px;
}

.story-manifesto strong {
    color: rgba(239, 246, 249, .82);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.story-manifesto span {
    padding-left: 13px;
    border-left: 1px solid rgba(69, 206, 230, .3);
    color: rgba(69, 206, 230, .72);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.story-features {
    position: relative;
    display: grid;
    width: min(700px, 100%);
    min-height: 132px;
    margin-top: 26px;
    padding-top: 34px;
    padding-bottom: 18px;
    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, #22d3ee, #756bff 34%, #ed58c8 62%, #38e8bd 84%, #22d3ee);
    background-size: 300% 100%;
    box-shadow: 0 0 8px rgba(69, 206, 230, .34);
    content: "";
    animation: energy-spectrum-horizontal 7s linear infinite;
}

.story-features::after {
    position: absolute;
    top: -2px;
    left: 0;
    width: 76px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(194, 250, 255, .98), #45cee6, transparent);
    filter: blur(.5px);
    box-shadow: 0 0 11px rgba(69, 206, 230, .72);
    content: "";
    animation: story-energy-flow 5.6s ease-in-out infinite, energy-hue-shift 4.8s linear infinite;
}

@keyframes story-energy-flow {
    0% { left: -40px; opacity: 0; transform: scaleX(.55); }
    12% { opacity: .95; }
    82% { opacity: .78; }
    100% { left: calc(100% - 36px); opacity: 0; transform: scaleX(.72); }
}

.story-feature {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 64px;
    padding: 0 22px;
    align-items: start;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
}

.story-feature::before {
    position: absolute;
    top: -38px;
    left: -4px;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(133, 232, 241, .9);
    border-radius: 50%;
    background: #0a131b;
    box-shadow: 0 0 0 3px rgba(69, 206, 230, .07), 0 0 10px rgba(69, 206, 230, .48);
    content: "";
    animation: energy-node-spectrum 6s ease-in-out infinite;
}

.story-feature:first-child { padding-left: 0; }
.story-feature:last-child { padding-right: 0; }
.story-feature + .story-feature { border-left: 1px solid rgba(170, 204, 219, .16); }

.feature-index {
    display: inline;
    margin-right: 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .08em;
}

.feature-icon {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(69, 206, 230, .24);
    border-radius: 5px;
    color: #73d7e8;
    background: rgba(20, 112, 133, .12);
    font-size: 19px;
    place-items: center;
}

.story-feature div { min-width: 0; }
.story-feature strong,
.story-feature div > span { display: block; }

.story-feature strong {
    margin-bottom: 6px;
    color: #e8edf2;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
}

.story-feature div > span {
    color: #7f8c9b;
    font-size: 11px;
    line-height: 1.55;
    white-space: normal;
}

.login-panel {
    position: relative;
    width: 430px;
    overflow: hidden;
    padding: 38px 40px 28px;
    border: 1px solid var(--panel-line);
    border-radius: 8px;
    background: var(--panel-bg);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .045);
    -webkit-backdrop-filter: blur(26px) saturate(112%);
    backdrop-filter: blur(26px) saturate(112%);
}

.login-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #22d3ee, #756bff 30%, #ed58c8 58%, #38e8bd 82%, #22d3ee);
    background-size: 300% 100%;
    box-shadow: 0 0 15px rgba(69, 206, 230, .48);
    content: "";
    animation: energy-spectrum-horizontal 6s linear infinite;
}

.login-panel::after {
    position: absolute;
    top: -130px;
    right: -130px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(69, 206, 230, .08), transparent 70%);
    pointer-events: none;
    content: "";
}

@media (min-width: 1601px) {
    .login-panel { transform: translateX(-60px); }
}

.panel-badge,
.panel-heading,
.login-bottom,
.panel-foot {
    position: relative;
    z-index: 1;
}

.panel-heading { margin: 28px 0; }

.panel-heading h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.panel-heading p {
    margin: 0;
    color: #8d9aab;
    font-size: 12px;
    line-height: 1.6;
}

.login-bottom,
.center { width: 100%; }

.demo {
    padding: 10px 0;
    color: #9dddeb !important;
    font-size: 12px;
    text-align: center;
}

.center .item {
    position: relative;
    display: flex;
    width: 100%;
    height: 62px;
    margin-bottom: 13px;
    padding: 0 15px;
    border: 1px solid var(--field-line);
    border-radius: 6px;
    background: var(--field-bg);
    cursor: text;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
    align-items: center;
}

.center .item:hover {
    border-color: rgba(191, 210, 224, .3);
    background: rgba(255, 255, 255, .058);
}

.center .item:focus-within {
    border-color: rgba(69, 206, 230, .72);
    background: rgba(69, 206, 230, .05);
    box-shadow: 0 0 0 3px rgba(69, 206, 230, .09);
}

.field-icon {
    display: grid;
    width: 22px;
    height: 22px;
    margin-right: 13px;
    flex: 0 0 22px;
    color: #718092;
    place-items: center;
    transition: color .18s ease;
}

.field-icon svg { width: 20px; height: 20px; }
.center .item:focus-within .field-icon,
.center .item:focus-within .field-label { color: #7cdae9; }

.field-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.field-label {
    color: #7e8c9d;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: .04em;
    transition: color .18s ease;
}

.center .item input {
    display: block;
    width: 100%;
    height: 22px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #f3f6f8;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 22px;
}

.center .item input::placeholder { color: #596779; }
.center .item input:-webkit-autofill {
    -webkit-text-fill-color: #f3f6f8 !important;
    box-shadow: 0 0 0 1000px #11171f inset !important;
}

.bind-password {
    position: relative;
    width: 22px;
    height: 22px;
    margin-left: 8px;
    flex: 0 0 22px;
    cursor: pointer;
}

.bind-password::before {
    position: absolute;
    inset: 0;
    color: #718092;
    font: normal normal normal 14px/22px FontAwesome;
    text-align: center;
    content: "\f070";
}

.bind-password.icon-5::before {
    color: #7cdae9;
    content: "\f06e";
}

.captcha-item .validateImg {
    width: 96px;
    height: 38px;
    margin-left: 10px;
    flex: 0 0 96px;
    border: 0;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
}

.tip {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 22px;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 11px;
    align-items: center;
    justify-content: space-between;
}

.remember-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-nocheck {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #617083;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.icon-nocheck.icon-check {
    border-color: var(--accent-strong);
    background: var(--accent-strong);
}

.icon-nocheck.icon-check::after {
    position: absolute;
    top: 1px;
    left: 4px;
    width: 5px;
    height: 9px;
    border: solid #071116;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    content: "";
}

.login-tip {
    color: #8c98a8;
    cursor: pointer;
}

.help-wrap { position: relative; }

.forget-password {
    padding: 4px 0;
    border: 0;
    outline: 0;
    color: #80cddd;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.forget-password:hover,
.forget-password:focus-visible { color: #c0f3fb; }

.login-help-popover {
    position: absolute;
    z-index: 30;
    right: -7px;
    bottom: calc(100% + 13px);
    display: none;
    width: 270px;
    padding: 15px;
    border: 1px solid rgba(137, 166, 183, .24);
    border-radius: 7px;
    color: #dce4ec;
    background: rgba(9, 14, 21, .98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .48);
    text-align: left;
}

.help-wrap.open .login-help-popover { display: block; }

.help-popover-arrow {
    position: absolute;
    right: 19px;
    bottom: -6px;
    width: 11px;
    height: 11px;
    border-right: 1px solid rgba(137, 166, 183, .24);
    border-bottom: 1px solid rgba(137, 166, 183, .24);
    background: #090e15;
    transform: rotate(45deg);
}

.help-popover-title,
.help-popover-item,
.help-popover-item b,
.help-popover-item small { display: block; }

.help-popover-title {
    margin-bottom: 9px;
    color: #eef3f6;
    font-size: 12px;
    font-weight: 650;
}

.help-popover-title i { margin-right: 5px; color: var(--accent); }

.help-popover-item {
    padding: 9px 0;
    border-top: 1px solid rgba(148, 163, 184, .11);
}

.help-popover-item b {
    margin-bottom: 4px;
    color: #cfd7df;
    font-size: 11px;
    font-weight: 600;
}

.help-popover-item small {
    color: #758395;
    font-size: 10px;
    line-height: 1.55;
}

.help-popover-close {
    width: 100%;
    height: 30px;
    margin-top: 3px;
    border: 1px solid rgba(69, 206, 230, .25);
    border-radius: 4px;
    color: #9be2ee;
    background: rgba(69, 206, 230, .07);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.help-popover-close:hover { background: rgba(69, 206, 230, .13); }

.login-action {
    width: 100%;
    height: auto !important;
    margin: 22px 0 0 !important;
}

.login-btn {
    display: flex;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(105deg, #665ac6, #7d67d9);
    box-shadow: 0 12px 28px rgba(87, 71, 180, .28), inset 0 1px rgba(255, 255, 255, .24);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 11px;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-btn:hover {
    background: linear-gradient(105deg, #7466d1, #8974e0);
    box-shadow: 0 15px 34px rgba(87, 71, 180, .34);
    transform: translateY(-1px);
}

.login-btn:active {
    box-shadow: 0 7px 18px rgba(87, 71, 180, .26);
    transform: translateY(0);
}

.login-btn i { transition: transform .18s ease; }
.login-btn:hover i { transform: translateX(3px); }
.login-btn.is-loading { cursor: wait; opacity: .8; transform: none; }
.login-btn.is-loading i { transform: none; }

body.login-submitting .layui-layer-msg:has(.layui-icon-loading) { display: none !important; }

.panel-foot {
    margin-top: 22px;
    color: #687687;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.panel-foot i { margin-right: 5px; color: var(--success); }

.footer {
    padding: 0 0 24px;
    color: #637080;
    font-size: 10px;
    line-height: 24px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.footer a,
.footer span { color: #748193; text-decoration: none; }
.footer a:hover { color: #aab5c1; }
.footer .backend-version { color: #8a98a8; }
.padding-5 { padding: 5px !important; }

.layui-layer.login-status-toast {
    width: min(360px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(110, 129, 166, .3) !important;
    border-radius: 8px !important;
    color: #eef4ff !important;
    background: rgba(9, 14, 21, .97) !important;
    box-shadow: 0 20px 56px rgba(0, 0, 0, .46) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.layui-layer.login-status-toast::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 16px;
    left: 16px;
    height: 2px;
    content: "";
}

.layui-layer.login-status-success::before { background: linear-gradient(90deg, transparent, #23e6c5, transparent); }
.layui-layer.login-status-error::before { background: linear-gradient(90deg, transparent, #fb7185, transparent); }

.layui-layer.login-status-toast .layui-layer-content {
    display: flex;
    min-height: 82px;
    padding: 17px 22px 17px 72px !important;
    color: #eef4ff !important;
    line-height: 1.4 !important;
    text-align: left !important;
    align-items: center;
}

.layui-layer.login-status-toast .layui-layer-face {
    top: 50% !important;
    left: 22px !important;
    display: grid;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 22px !important;
    line-height: 34px !important;
    background: rgba(255, 255, 255, .035);
    place-items: center;
}

.layui-layer.login-status-success .layui-layer-face { color: #2dd4a7 !important; }
.layui-layer.login-status-error .layui-layer-face { color: #fb7185 !important; }

.login-toast-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.login-toast-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-toast-copy span { color: #8392aa; font-size: 11px; }

@media (max-width: 1100px) and (min-width: 821px) {
    .brand-energy-rail { display: none; }

    .login-brand,
    .login-stage,
    .footer { width: calc(100% - 64px); }

    .login-stage {
        width: calc(100% - 64px);
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 52px;
    }

    .login-panel {
        width: 400px;
        padding-right: 34px;
        padding-left: 34px;
    }

    .login-story h1 { font-size: 43px; }

    .story-feature {
        padding-right: 12px;
        padding-left: 12px;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
    }

    .feature-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .story-feature div > span { font-size: 9px; }
}

@media (min-width: 821px) and (max-height: 820px) {
    .login-brand { padding-top: 26px; }
    .login-stage { padding-top: 24px; padding-bottom: 30px; }

    .login-story h1 {
        margin-top: 20px;
        margin-bottom: 16px;
        font-size: clamp(40px, 3.8vw, 54px);
    }

    .story-features { margin-top: 31px; padding-top: 18px; }
    .login-story { padding-top: 30px; }
    .story-features {
        min-height: 94px;
        margin-top: auto;
        padding-top: 24px;
        padding-bottom: 8px;
    }
    .story-manifesto { display: none; }
    .story-feature::before { top: -28px; }
    .login-panel { padding-top: 30px; padding-bottom: 23px; }
    .panel-heading { margin-top: 20px; margin-bottom: 22px; }
    .center .item { height: 56px; margin-bottom: 10px; }
    .login-action { margin-top: 18px !important; }
    .panel-foot { margin-top: 17px; }
    .footer { padding-bottom: 12px; }
}

@media (max-width: 820px) {
    html,
    body { height: auto; }

    body {
        overflow-x: hidden;
        overflow-y: auto;
        background-position: 54% top;
        background-attachment: scroll;
    }

    body::before {
        background:
            linear-gradient(180deg, rgba(5, 8, 13, .58) 0%, rgba(5, 8, 13, .8) 40%, rgba(5, 8, 13, .94) 100%),
            linear-gradient(90deg, rgba(5, 8, 13, .22), rgba(5, 8, 13, .42));
    }

    .login-shell {
        min-height: 100svh;
        overflow: visible;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .login-shell::before { display: none; }
    .brand-energy-rail { display: none; }

    .login-brand,
    .login-stage,
    .footer { width: min(440px, calc(100% - 32px)); }

    .login-brand { padding-top: 20px; }
    .brand-mark,
    .brand-mark img { width: 42px; height: 42px; }
    .brand-mark { flex-basis: 42px; }
    .brand-copy strong { font-size: 16px; }

    .login-stage {
        display: block;
        padding: 38px 0 28px;
    }

    .login-story {
        width: 100%;
        margin-bottom: 24px;
        padding-top: 0;
        transform: none;
    }

    .story-kicker,
    .login-story > p,
    .story-manifesto,
    .story-features { display: none; }

    .login-story h1 {
        margin: 0;
        font-size: clamp(28px, 8vw, 36px);
        line-height: 1.18;
    }

    .login-story h1 em { display: block; margin-top: 4px; }

    .login-panel {
        width: 100%;
        padding: 28px 22px 23px;
    }

    .panel-heading { margin: 21px 0 23px; }
    .panel-heading h2 { font-size: 24px; }
    .center .item { height: 60px; }
    .login-btn { min-height: 50px; touch-action: manipulation; }

    .footer {
        padding-bottom: 20px;
        line-height: 1.8;
    }
}

@media (max-width: 430px) {
    .login-brand,
    .login-stage,
    .footer { width: calc(100% - 24px); }

    .login-brand { padding-top: 14px; }
    .login-stage { padding-top: 28px; }
    .login-story h1 { font-size: 27px; }
    .login-panel { padding: 25px 16px 21px; }
    .panel-heading h2 { font-size: 22px; }
    .center .item { padding-right: 11px; padding-left: 12px; }

    .captcha-item .validateImg {
        width: 92px;
        flex-basis: 92px;
    }

    .login-help-popover {
        right: -3px;
        width: min(270px, calc(100vw - 52px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .center .item,
    .field-icon,
    .field-label,
    .login-btn,
    .login-btn i { transition: none; }
    .brand-energy-rail::before,
    .brand-energy-rail::after,
    .energy-branch,
    .energy-branch::after,
    .energy-node,
    .energy-rail-node::after,
    .energy-flow,
    .story-features::before,
    .story-features::after,
    .story-feature::before,
    .login-panel::before { animation: none; }
}
