: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;
}

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

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

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(7, 11, 23, .90) 0%, rgba(7, 11, 23, .80) 40%, rgba(7, 11, 23, .52) 100%),
        linear-gradient(180deg, rgba(7, 11, 23, .12), rgba(7, 11, 23, .72));
    pointer-events: none;
}

* { box-sizing: border-box; }

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100%;
    overflow: hidden;
    isolation: isolate;
}

.login-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .3;
    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: 58px 58px;
    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);
}

.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;
}

.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; }
.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;
}

.login-story { max-width: 720px; padding-left: 10px; }

.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;
}

.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: #9aa7ba;
    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 rgba(148, 163, 184, .18); }

.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;
    border: 1px solid var(--login-line);
    border-radius: 24px;
    background: var(--login-panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(24px);
}

.login-panel::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 48px;
    width: 112px;
    height: 2px;
    background: linear-gradient(90deg, var(--login-primary), var(--login-cyan));
    box-shadow: 0 0 16px rgba(34, 211, 238, .5);
}

/* 桌面端收紧构图：减少中间留白，让品牌区与登录卡片更聚焦。 */
@media (min-width: 1051px) {
    .login-story { transform: translateY(-28px); }
    .login-panel { transform: translateX(-42px); }
}

.panel-heading { margin: 27px 0 30px; }
.panel-heading h2 { margin: 0 0 7px; color: #fff; font-size: 28px; line-height: 1.2; }
.panel-heading p { margin: 0; color: var(--login-muted); font-size: 13px; }

.login-bottom, .center { width: 100%; }
.demo { padding: 10px 0; text-align: center; color: #a5b4fc !important; font-size: 13px; }

.center .item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 66px;
    margin-bottom: 14px;
    padding: 0 16px;
    border: 1px solid var(--login-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .035);
    cursor: text;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.center .item:focus-within {
    border-color: rgba(108, 99, 255, .8);
    background: rgba(108, 99, 255, .06);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, .1);
}

.field-icon {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-right: 13px;
    color: #728198;
}

.field-icon svg { width: 21px; height: 21px; }
.field-content { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.field-label { color: #718198; font-size: 10px; letter-spacing: .08em; }

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

.center .item input::placeholder { color: #59677b; }
.center .item input:-webkit-autofill {
    -webkit-text-fill-color: #edf2ff !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;
}

.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;
}

.tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    margin-top: 2px;
}

.remember-wrap { display: inline-flex; align-items: center; }
.icon-nocheck {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-right: 8px;
    border: 1px solid #526079;
    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: #7f8da2; 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;
    text-decoration: none;
}
.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 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(100deg, #655cff, #7a72ff 58%, #4f9cff);
    box-shadow: 0 12px 28px rgba(108, 99, 255, .28);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.login-btn:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 16px 34px rgba(108, 99, 255, .36);
}
.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; }

/* 登录提交使用按钮内状态，隐藏 EasyAdmin 自动生成的居中白色 loading。 */
body.login-submitting .layui-layer-msg:has(.layui-icon-loading) {
	display: none !important;
}

.panel-foot {
    margin-top: 24px;
    color: #59677a;
    font-size: 11px;
    text-align: center;
}
.panel-foot i { margin-right: 5px; color: #4bbaae; }

/* 登录结果提示：覆盖 Layui 默认白色消息框，适配深色登录页。 */
.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, .32) !important;
    border-radius: 16px !important;
    color: #eef4ff !important;
    background: rgba(11, 19, 35, .96) !important;
    box-shadow: 0 20px 56px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .025) inset !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

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

.layui-layer.login-status-success::before {
    background: linear-gradient(90deg, transparent, #23e6c5 24%, #45a3ff 76%, transparent);
    box-shadow: 0 0 14px rgba(35, 230, 197, .52);
}

.layui-layer.login-status-error::before {
    background: linear-gradient(90deg, transparent, #fb7185 24%, #f59e0b 76%, transparent);
    box-shadow: 0 0 14px rgba(251, 113, 133, .48);
}

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

.layui-layer.login-status-toast .layui-layer-face {
    top: 50% !important;
    left: 22px !important;
    display: grid;
    place-items: center;
    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);
    box-shadow: 0 0 20px currentColor;
}

.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;
    animation: login-toast-copy-in .28s ease-out both;
}

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

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

@keyframes login-toast-copy-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer {
    position: absolute;
    right: 0;
    bottom: 22px;
    left: 0;
    color: #59677a;
    font-size: 11px;
    line-height: 24px;
    text-align: center;
}
.footer a, .footer span { color: #69778b; text-decoration: none; }
.footer .backend-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    height: 30px;
    margin-left: 4px;
    padding: 0 14px;
    border: 1px solid rgba(105, 206, 255, .58);
    border-radius: 999px;
    color: #f8fbff;
    background: linear-gradient(100deg, rgba(92, 92, 255, .78), rgba(49, 177, 238, .72));
    box-shadow: 0 6px 20px rgba(42, 120, 230, .24), inset 0 1px rgba(255, 255, 255, .24);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-shadow: 0 1px 2px rgba(7, 12, 28, .32);
    box-sizing: border-box;
}
.padding-5 { padding: 5px !important; }

@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) {
    body { overflow: auto; }
    body::before { background: rgba(7, 11, 23, .72); }
    .login-brand { position: relative; top: auto; left: auto; width: min(430px, calc(100% - 36px)); margin: 28px auto 0; }
    .brand-energy-rail { display: none; }
    .login-stage { display: block; width: min(430px, calc(100% - 36px)); min-height: auto; padding: 45px 0 90px; }
    .login-story { margin-bottom: 28px; padding: 0; }
    .story-kicker, .login-story > p, .story-features { display: none; }
    .login-story h1 { display: block; margin: 0; font-size: 34px; line-height: 1.25; }
    .login-story h1 em { display: inline; margin-left: 9px; }
    .login-panel { width: 100%; padding: 32px 28px 26px; }
    .footer { position: relative; bottom: auto; padding: 0 18px 20px; }
}

@media (max-width: 430px) {
    .login-brand { margin-top: 22px; }
    .login-stage { padding-top: 36px; }
    .login-story h1 { font-size: 29px; }
    .login-panel { padding: 29px 20px 24px; border-radius: 20px; }
    .panel-heading { margin: 23px 0 25px; }
    .panel-heading h2 { font-size: 25px; }
    .login-help-popover { right: -4px; width: min(265px, calc(100vw - 76px)); }
}

/* Professional desktop polish: tighter hierarchy, clearer fields and calmer highlights. */
@media (min-width: 821px) {
    body::before {
        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));
    }

    .login-grid {
        opacity: .22;
        background-size: 64px 64px;
    }

    .login-grid::after {
        opacity: .62;
    }

    .login-story {
        max-width: 720px;
    }

    .login-story h1 {
        margin-bottom: 28px;
        text-shadow: 0 10px 36px rgba(0, 0, 0, .26);
    }

    .login-story > p {
        color: #a8b4c7;
    }

}

.login-panel {
    overflow: hidden;
    border-color: rgba(137, 159, 204, .24);
    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);
    -webkit-backdrop-filter: blur(28px) saturate(118%);
    backdrop-filter: blur(28px) saturate(118%);
}

.login-panel::before {
    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-bottom: 27px;
}

.panel-heading p {
    color: #98a6bb;
}

.center .item {
    height: 64px;
    border-color: rgba(137, 159, 204, .24);
    background: rgba(255, 255, 255, .038);
    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;
}

.field-icon {
    color: #8494ad;
    transition: color .2s ease, filter .2s ease;
}

.center .item:focus-within .field-icon {
    filter: drop-shadow(0 0 8px rgba(108, 99, 255, .42));
}

.field-label {
    color: #8796ad;
}

.center .item input {
    color: #f1f5ff;
}

.center .item input::placeholder {
    color: #6f7e95;
}

.icon-nocheck {
    border-color: #66748b;
}

.login-tip {
    color: #9aa7ba;
}

.login-btn {
    position: relative;
    overflow: hidden;
    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);
}

.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::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);
}

@keyframes login-button-sheen {
    from { left: -28%; }
    to { left: 112%; }
}

.panel-foot {
    color: #718097;
}

.footer {
    color: #718097;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

.footer a,
.footer span {
    color: #8492a7;
}

.footer .backend-version {
    min-width: 108px;
    height: 26px;
    padding: 0 12px;
    border-color: rgba(115, 151, 210, .35);
    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);
}

@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;
    }
}
