.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #04131f !important;
    color: #fff;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 40%, rgba(60, 207, 255, 0.12), rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.52) 100%),
        linear-gradient(90deg, rgba(0, 12, 26, 0.56), rgba(0, 24, 48, 0.04) 50%, rgba(0, 12, 26, 0.56));
}

.login-page::after {
    content: "";
    position: fixed;
    inset: -12% -8%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.76;
    background:
        linear-gradient(104deg, transparent 0%, rgba(112, 225, 255, 0.00) 30%, rgba(112, 225, 255, 0.38) 46%, rgba(143, 255, 190, 0.24) 53%, rgba(112, 225, 255, 0.00) 70%, transparent 100%),
        radial-gradient(ellipse at 78% 14%, rgba(91, 219, 255, 0.34), transparent 31%),
        radial-gradient(ellipse at 14% 84%, rgba(131, 255, 179, 0.18), transparent 38%);
    mix-blend-mode: screen;
    transform: translate3d(-7%, 0, 0) rotate(-1.4deg) scale(1.02);
}

#Layer1 {
    position: fixed !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    background: #04131f !important;
    z-index: -1 !important;
}

#Layer1::before, #Layer1::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#Layer1::before {
    z-index: 1;
    opacity: 0.54;
    background:
        linear-gradient(90deg, rgba(71, 218, 255, 0.00) 0 12%, rgba(71, 218, 255, 0.16) 12.5%, rgba(71, 218, 255, 0.00) 13% 25%),
        linear-gradient(0deg, rgba(122, 255, 186, 0.00) 0 18%, rgba(122, 255, 186, 0.10) 18.5%, rgba(122, 255, 186, 0.00) 19% 36%),
        radial-gradient(ellipse at 50% 92%, rgba(101, 241, 255, 0.26), transparent 34%);
    background-size: 240px 100%, 100% 150px, 100% 100%;
    mix-blend-mode: screen;
    transform: perspective(900px) rotateX(58deg) translateY(18%);
    transform-origin: 50% 100%;
}

#Layer1::after {
    z-index: 2;
    opacity: 0.74;
    background:
        radial-gradient(circle at 16% 63%, rgba(168, 255, 218, 0.48) 0 0.45%, transparent 0.9%),
        radial-gradient(circle at 31% 58%, rgba(168, 255, 218, 0.40) 0 0.38%, transparent 0.82%),
        radial-gradient(circle at 47% 54%, rgba(168, 255, 218, 0.44) 0 0.42%, transparent 0.86%),
        radial-gradient(circle at 64% 51%, rgba(168, 255, 218, 0.36) 0 0.38%, transparent 0.82%),
        radial-gradient(circle at 80% 48%, rgba(168, 255, 218, 0.42) 0 0.42%, transparent 0.86%),
        linear-gradient(112deg, transparent 0%, transparent 38%, rgba(185, 255, 226, 0.00) 43%, rgba(185, 255, 226, 0.62) 49%, rgba(98, 218, 255, 0.38) 51%, rgba(185, 255, 226, 0.00) 57%, transparent 100%),
        conic-gradient(from 248deg at 48% 6%, rgba(134, 236, 255, 0.00) 0deg, rgba(134, 236, 255, 0.34) 16deg, rgba(134, 236, 255, 0.00) 34deg),
        conic-gradient(from 292deg at 78% 12%, rgba(128, 255, 188, 0.00) 0deg, rgba(128, 255, 188, 0.22) 18deg, rgba(128, 255, 188, 0.00) 38deg),
        radial-gradient(circle at 48% 8%, rgba(255, 255, 255, 0.20), transparent 14%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 190% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: center, center, center, center, center, -120% 0, center, center, center;
    filter: blur(0.4px) saturate(1.22);
    mix-blend-mode: screen;
    transform: translate3d(-4%, -2%, 0) rotate(-2deg) scale(1.06);
}

#LoginBg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.18) contrast(1.04) brightness(0.98);
}

.login2-box, .register-box {
    left: 50%;
    width: 380px;
    max-width: calc(100vw - 32px);
    position: fixed;
    margin-left: -190px;
    top: 50%;
    margin-top: -247px;
    z-index: 1;
    isolation: isolate;
}

.login2-box::before, .register-box::before {
    content: "";
    position: absolute;
    inset: 74px -30px -30px;
    z-index: -1;
    pointer-events: none;
    border-radius: 30px;
    background:
        radial-gradient(circle at 74% 8%, rgba(79, 217, 255, 0.56), transparent 36%),
        radial-gradient(circle at 22% 92%, rgba(108, 255, 153, 0.28), transparent 44%);
    filter: blur(26px);
    opacity: 0.96;
}

.login2, .register-logo {
    font-size: 35px;
    text-align: center;
    margin-bottom: 22px;
    font-weight: 300;
    opacity: 1 !important;
}

.login2 .appName, .register-logo .appName {
    display: inline-block;
    max-width: 100%;
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f4fbff;
    text-shadow:
        0 0 18px rgba(107, 230, 255, 0.48),
        0 0 42px rgba(65, 210, 255, 0.28),
        0 2px 14px rgba(0, 0, 0, 0.45);
}

.login-box-body, .register-box-body {
    position: relative;
    overflow: hidden;
    padding: 24px 26px 26px;
    border: 1px solid rgba(166, 231, 255, 0.54);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(16, 68, 106, 0.80), rgba(4, 15, 30, 0.70) 54%, rgba(2, 38, 32, 0.66)) !important;
    color: #fff !important;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(74, 213, 255, 0.12),
        0 0 58px rgba(42, 186, 255, 0.30),
        0 0 92px rgba(96, 255, 178, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(76, 217, 255, 0.16);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.login-box-body::before, .register-box-body::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
    background:
        radial-gradient(circle at 14% 0%, rgba(149, 235, 255, 0.30), transparent 34%),
        radial-gradient(circle at 84% 100%, rgba(120, 255, 180, 0.18), transparent 36%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 42%, rgba(141, 255, 177, 0.13));
}

.login-box-body::after, .register-box-body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    z-index: 0;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(134, 236, 255, 1), rgba(180, 255, 210, 0.94), rgba(82, 198, 255, 0.82), transparent);
    box-shadow: 0 0 26px rgba(88, 210, 255, 0.84), 0 0 46px rgba(88, 255, 190, 0.24);
}

.login-box-body > *, .register-box-body > * {
    position: relative;
    z-index: 1;
}

.login-box-body .form-group {
    margin-bottom: 14px;
}

.login-box-body .form-control {
    height: 44px;
    border: 1px solid rgba(186, 235, 255, 0.38) !important;
    border-radius: 12px !important;
    background: rgba(5, 29, 50, 0.52) !important;
    color: #fff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 22px rgba(0, 0, 0, 0.10);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.login-box-body .form-control:focus {
    border-color: rgba(64, 202, 255, 0.86) !important;
    background: rgba(5, 22, 39, 0.68) !important;
    box-shadow:
        0 0 0 3px rgba(64, 202, 255, 0.14),
        0 0 28px rgba(64, 202, 255, 0.18);
}

.login-box-body .form-control::placeholder {
    color: rgba(230, 246, 255, 0.58);
}

.login-box-body .form-control-feedback, .register-box-body .form-control-feedback {
    height: 44px;
    line-height: 44px;
    color: rgba(230, 246, 255, 0.78) !important;
}

.verify-img-panel {
    border: 0 !important;
    background: transparent !important;
}

#imageVerifyDiv,
#imageVerify,
#imageVerify .verify-img-out,
#imageVerify .verify-img-panel,
#imageVerify .verify-bar-area {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.verify-bar-area {
    background: transparent !important;
}

#btnLogin {
    height: 46px;
    border: 0;
    border-radius: 999px !important;
    color: #03101d !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #a2f2ff, #43d5ff 32%, #a9ffc7 52%, #ffffff 68%, #43d5ff 86%, #a2f2ff) !important;
    background-size: 220% 100%;
    box-shadow:
        0 16px 38px rgba(38, 191, 255, 0.34),
        0 0 24px rgba(126, 255, 186, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background-position 180ms ease;
}

#btnLogin:hover, #btnLogin:focus {
    color: #020b14 !important;
    transform: translateY(-2px) scale(1.01);
    filter: saturate(1.16) brightness(1.04);
    box-shadow:
        0 24px 54px rgba(38, 191, 255, 0.50),
        0 0 42px rgba(126, 255, 186, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

#btnLogin:active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) and (min-height: 621px) {
    .login-page::after {
        animation: stadiumLightSweep 5.8s cubic-bezier(0.42, 0, 0.26, 1) infinite alternate;
    }

    #Layer1::before {
        animation: stadiumGridIgnite 6.8s ease-in-out infinite alternate;
    }

    #Layer1::after {
        animation: rangerFloodlightPatrol 5.6s cubic-bezier(0.42, 0, 0.2, 1) infinite alternate;
    }

    .login2-box::before, .register-box::before {
        animation: panelHaloPulse 3.6s ease-in-out infinite;
    }

    .login-box-body::before, .register-box-body::before {
        animation: panelCoreSurge 3.2s ease-in-out infinite;
    }

    .login-box-body::after, .register-box-body::after {
        animation: panelEdgeScan 3.4s cubic-bezier(0.45, 0, 0.16, 1) infinite;
    }

    .login2 .appName, .register-logo .appName {
        animation: titlePowerGlow 4.4s ease-in-out infinite;
    }

    #btnLogin {
        animation: buttonEnergySweep 3.2s ease-in-out infinite;
    }

    #LoginBg {
        animation: loginBgReveal 900ms ease-out both;
    }

    .login2-box {
        animation: loginPanelReveal 420ms ease-out both;
    }
}

@keyframes stadiumGridIgnite {
    0%, 100% {
        opacity: 0.32;
        background-position: 0 0, 0 0, 0 0;
        filter: saturate(1) brightness(0.92);
    }

    45% {
        opacity: 0.72;
        background-position: 34px 0, 0 -18px, 0 0;
        filter: saturate(1.28) brightness(1.12);
    }
}

@keyframes rangerFloodlightPatrol {
    0% {
        opacity: 0.50;
        background-position: center, center, center, center, center, -130% 0, center, center, center;
        transform: translate3d(-10%, -3%, 0) rotate(-5deg) scale(1.04);
    }

    38% {
        opacity: 0.95;
        background-position: center, center, center, center, center, 4% 0, center, center, center;
        transform: translate3d(-1%, 0, 0) rotate(0.8deg) scale(1.09);
    }

    68% {
        opacity: 0.82;
        background-position: center, center, center, center, center, 86% 0, center, center, center;
        transform: translate3d(5%, -1%, 0) rotate(3.4deg) scale(1.06);
    }

    100% {
        opacity: 0.58;
        background-position: center, center, center, center, center, 132% 0, center, center, center;
        transform: translate3d(10%, -2%, 0) rotate(5.4deg) scale(1.05);
    }
}

@keyframes stadiumLightSweep {
    from {
        opacity: 0.48;
        transform: translate3d(-11%, 0, 0) rotate(-1.8deg) scale(1.01);
    }

    54% {
        opacity: 0.96;
        transform: translate3d(1%, -1%, 0) rotate(0.2deg) scale(1.04);
    }

    to {
        opacity: 0.68;
        transform: translate3d(11%, 0, 0) rotate(1.8deg) scale(1.02);
    }
}

@keyframes panelHaloPulse {
    0%, 100% {
        opacity: 0.64;
        transform: scale(0.96) translateY(2px);
    }

    46% {
        opacity: 1;
        transform: scale(1.06) translateY(-2px);
    }
}

@keyframes panelEdgeScan {
    0% {
        opacity: 0;
        transform: translateX(-34%) scaleX(0.58);
    }

    18%, 70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(34%) scaleX(1.08);
    }
}

@keyframes panelCoreSurge {
    0%, 100% {
        opacity: 0.72;
        transform: scale(1);
    }

    48% {
        opacity: 1;
        transform: scale(1.025);
    }
}

@keyframes titlePowerGlow {
    0%, 100% {
        text-shadow:
            0 0 16px rgba(107, 230, 255, 0.44),
            0 0 38px rgba(65, 210, 255, 0.24),
            0 2px 14px rgba(0, 0, 0, 0.45);
    }

    45% {
        text-shadow:
            0 0 24px rgba(156, 245, 255, 0.78),
            0 0 58px rgba(65, 210, 255, 0.42),
            0 0 34px rgba(110, 255, 180, 0.22),
            0 2px 14px rgba(0, 0, 0, 0.45);
    }
}

@keyframes buttonEnergySweep {
    0%, 100% {
        background-position: 0% 50%;
        filter: saturate(1);
    }

    50% {
        background-position: 100% 50%;
        filter: saturate(1.12);
    }
}

@keyframes loginBgReveal {
    from {
        opacity: 0;
        transform: scale(1.025);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loginPanelReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .login-box-body, .register-box-body {
        background: rgba(3, 12, 24, 0.92) !important;
    }
}

@media (max-width: 767px) {
    .login-page {
        min-height: 100vh;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-page::after {
        opacity: 0.20;
        background:
            radial-gradient(ellipse at 72% 16%, rgba(91, 219, 255, 0.14), transparent 32%),
            radial-gradient(ellipse at 16% 82%, rgba(131, 255, 179, 0.08), transparent 38%);
        transform: none;
    }

    #LoginBg {
        object-position: center center;
        filter: saturate(1.08) contrast(1.02) brightness(0.92);
    }

    .login2-box, .register-box {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: min(380px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        min-height: 0;
        margin: 0 auto !important;
        padding: 8px 0;
        transform: none !important;
    }

    .login2-box::before, .register-box::before {
        inset: 68px -8px -10px;
        filter: blur(14px);
        opacity: 0.34;
    }

    .login2, .register-logo {
        margin-bottom: 14px;
    }

    .login-box-body, .register-box-body {
        padding: 18px 18px 20px;
        border-radius: 18px;
    }

    .login-box-body .form-group {
        margin-bottom: 14px;
    }

    .login-box-body .form-control, #btnLogin {
        height: 44px;
    }

    .login2 .appName, .register-logo .appName {
        font-size: clamp(21px, 7vw, 28px);
        letter-spacing: 0.04em;
        animation: none !important;
    }

    #Layer1::before, #Layer1::after {
        display: none;
    }

    #Layer1::before, #Layer1::after,
    .login-box-body::before, .register-box-body::before,
    .login-box-body::after, .register-box-body::after,
    #btnLogin {
        animation: none !important;
    }
}

@media (max-width: 1024px) and (max-height: 620px) and (orientation: landscape) {
    .login-page {
        align-items: flex-start;
        overflow-y: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .login2-box, .register-box {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 auto !important;
        padding: 0;
    }

    .login2, .register-logo {
        margin-bottom: 10px;
    }

    .login-box-body, .register-box-body {
        padding: 18px 20px 20px;
    }
}
