/* Neon isometric login — reference-led 2.5D visual language */
:root {
    --login-accent: #a64cff;
    --login-accent-hover: #bf55ff;
    --login-text: #f6f0ff;
    --login-muted: #c4b9dc;
}

html {
    min-height: 100%;
    background: #171258;
}

body {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(151,126,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(151,126,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 15% 8%, rgba(220,48,235,.36), transparent 21%),
        radial-gradient(circle at 91% 84%, rgba(61,168,255,.24), transparent 26%),
        radial-gradient(circle at 72% 5%, rgba(118,50,255,.28), transparent 24%),
        linear-gradient(135deg, #100c47 0%, #1d1766 48%, #221454 100%);
    background-size: 54px 54px, 54px 54px, auto, auto, auto, auto;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
    animation: none;
}

body::before {
    top: -210px;
    left: 13%;
    width: 480px;
    height: 360px;
    border: 1px solid rgba(250,117,255,.22);
    background: rgba(228,56,238,.2);
    transform: rotate(-12deg);
}

body::after {
    right: -60px;
    bottom: -190px;
    width: 460px;
    height: 420px;
    background: rgba(64,143,255,.22);
    animation-delay: -4s;
}

.v7-login {
    position: relative;
    width: min(1380px, calc(100vw - 64px));
    height: min(830px, calc(100vh - 64px));
    min-height: 640px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 28px;
    background:
        radial-gradient(circle at 67% 34%, rgba(73, 211, 255, .58), transparent 23%),
        radial-gradient(circle at 88% 72%, rgba(226, 64, 231, .48), transparent 28%),
        radial-gradient(circle at 74% 92%, rgba(92, 78, 255, .36), transparent 25%),
        linear-gradient(135deg, #302772 46%, #544078 72%, #362a70 100%);
    box-shadow: 0 38px 110px rgba(7,4,48,.5), 0 0 0 1px rgba(143,90,255,.12);
}

.v7-login::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    opacity: .13;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    pointer-events: none;
    display: none;
}

.v7-backdrop {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 55%;
    background-color: #150967;
    background-image: url("/static/admin/images/v6max-login-blindbox-vending-v7.png?v=20260806.2");
    background-position: 52% 58%;
    background-size: auto 104%;
    background-repeat: no-repeat;
    transform: translate3d(-8px, -10px, 0) scale(1.022);
    animation: none;
    transition: none;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.v7-veil {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 55%;
    background: linear-gradient(90deg, rgba(13,7,76,.02), transparent 65%, rgba(69,45,119,.22));
    box-shadow: inset -1px 0 rgba(255,255,255,.08);
}

.v7-glow {
    z-index: 1;
    filter: blur(82px);
    opacity: .34;
    animation: none !important;
    display: none;
}

.v7-glow-one {
    top: 19%;
    right: 33%;
    width: 270px;
    height: 270px;
    background: #7edcff;
}

.v7-glow-two {
    right: 2%;
    bottom: 7%;
    width: 320px;
    height: 320px;
    background: #e451ee;
}

.v7-stars {
    display: none;
}

.v7-brand {
    top: 34px;
    left: 36px;
    gap: 14px;
}

.v7-brand-logo,
.v7-brand-logo.is-image {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, rgba(212,89,255,.94), rgba(87,54,222,.95));
    box-shadow: 0 12px 28px rgba(17,8,74,.3), inset 0 1px 0 rgba(255,255,255,.38);
}

.v7-brand-logo.is-image {
    background: rgba(248,241,255,.9);
}

.v7-brand-logo img {
    transform: scale(1.18);
}

.v7-brand-copy {
    gap: 4px;
    text-shadow: 0 3px 15px rgba(10,4,48,.6);
}

.v7-brand-copy strong {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.v7-brand-copy span {
    color: rgba(240,231,255,.74);
    font-size: 11px;
    letter-spacing: .04em;
}

.v7-login-card {
    top: 0;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 100%;
    padding: clamp(36px, 5vh, 56px) clamp(42px, 4.6vw, 68px) 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.2);
    border-radius: 0 28px 28px 0;
    color: var(--login-text);
    background:
        linear-gradient(135deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.035) 45%, rgba(222,178,255,.055) 100%),
        rgba(46, 36, 80, .42);
    box-shadow:
        inset 1px 0 rgba(255,255,255,.16),
        inset 0 1px rgba(255,255,255,.15),
        -20px 0 52px rgba(22,11,72,.08);
    backdrop-filter: blur(10px) saturate(118%);
    -webkit-backdrop-filter: blur(10px) saturate(118%);
    transform: none;
    animation: v8PanelIn .7s cubic-bezier(.18,.84,.24,1) both;
    scrollbar-width: none;
}

.v7-login-card::-webkit-scrollbar {
    display: none;
}

.v7-login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    border-radius: inherit;
    background:
        linear-gradient(115deg, rgba(255,255,255,.13) 0%, transparent 25%, transparent 70%, rgba(230,175,255,.07) 100%),
        radial-gradient(circle at 14% 8%, rgba(255,255,255,.12), transparent 20%);
    pointer-events: none;
}

.v7-card-top {
    position: absolute;
    top: clamp(28px, 4.5vh, 44px);
    right: clamp(42px, 4.6vw, 68px);
    left: clamp(42px, 4.6vw, 68px);
    margin: 0;
}

.v7-card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c48aff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
}

.v7-card-label svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v7-status {
    color: rgba(245,239,255,.78);
    font-size: 10px;
}

.v7-status i {
    background: #43efb0;
    box-shadow: 0 0 0 4px rgba(67,239,176,.1), 0 0 14px rgba(67,239,176,.54);
}

.v7-form-header {
    width: min(440px, 100%);
    margin: 0 auto 30px;
    text-align: left;
}

.v7-form-header h1 {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(28px, 2.4vw, 34px);
    font-weight: 700;
    letter-spacing: -.025em;
    text-shadow: 0 5px 24px rgba(18,8,58,.28);
}

.v7-form-header p {
    color: rgba(242,234,255,.8);
    font-size: 12px;
}

.v7-login-card form {
    width: min(440px, 100%);
    margin: 0 auto;
    display: block;
}

.v7-login .layui-form-item {
    margin-bottom: 19px;
}

.v7-input-label {
    margin-bottom: 8px;
    color: rgba(247,240,255,.82);
    font-size: 11px;
    font-weight: 500;
}

.v7-input-shell {
    position: relative;
}

.v7-input-shell::after {
    display: none;
}

.v7-input-shell:focus-within::after {
    filter: brightness(1.25);
    box-shadow: 0 0 18px rgba(101,218,255,.38), 0 0 24px rgba(208,75,255,.2);
}

.v7-input-icon {
    left: 15px;
    width: 19px;
    height: 19px;
    color: rgba(255,255,255,.9);
}

.v7-login .login-input.layui-input {
    height: 50px;
    padding: 0 46px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.065);
    box-shadow: inset 0 1px rgba(255,255,255,.055);
    font-size: 13px;
    line-height: 48px;
}

.v7-login .login-input.layui-input:hover,
.v7-login .login-input.layui-input:focus {
    border-color: rgba(154,210,255,.4) !important;
    background: rgba(255,255,255,.09);
    box-shadow: 0 0 0 3px rgba(101,190,255,.08), 0 10px 28px rgba(17,8,60,.12);
}

.v7-login .login-input.layui-input::placeholder {
    color: rgba(244,237,255,.66);
}

.v7-login .login-input.layui-input:-webkit-autofill,
.v7-login .login-input.layui-input:-webkit-autofill:hover,
.v7-login .login-input.layui-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.025) inset !important;
    caret-color: #fff;
    transition: background-color 9999s ease-out 0s;
}

.v7-input-shell:focus-within .v7-input-icon {
    color: #83e4ff;
    filter: drop-shadow(0 0 7px rgba(94,219,255,.55));
}

.v7-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 3;
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 0;
    border-radius: 8px;
    color: rgba(255,255,255,.78);
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.v7-password-toggle:hover {
    color: #92e8ff;
    background: rgba(255,255,255,.05);
}

.v7-password-toggle svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v7-eye-closed,
.v7-password-toggle.is-visible .v7-eye-open {
    display: none !important;
}

.v7-password-toggle.is-visible .v7-eye-closed {
    display: block !important;
}

.v7-captcha-group {
    grid-template-columns: minmax(0, 1fr) 112px;
}

.v7-login .login-captcha-wrapper,
.v7-login .login-captcha {
    height: 48px;
}

.v7-login .login-captcha {
    border-color: rgba(255,255,255,.18);
    border-radius: 8px;
    opacity: .88;
}

.v7-remember {
    min-height: 34px;
    margin: -2px 0 14px;
    display: flex;
    align-items: center;
}

.v7-login .layui-form-checkbox[lay-skin=primary] span {
    color: rgba(247,240,255,.82);
    font-size: 12px;
}

.v7-login .layui-form-checkbox[lay-skin=primary] i {
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.14);
}

.v7-login .layui-form-checked[lay-skin=primary] i {
    border-color: #b64cff !important;
    background: #a841ee !important;
    box-shadow: 0 0 13px rgba(190,69,255,.4);
}

.v7-login .btn-login.layui-btn {
    width: 100%;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    gap: 14px;
    border: 1px solid rgba(160,196,255,.2);
    border-radius: 999px;
    background: linear-gradient(180deg, #5268f3 0%, #152aaa 100%);
    box-shadow: 0 12px 26px rgba(12,24,133,.38), 0 0 24px rgba(73,197,255,.22), inset 0 1px 0 rgba(255,255,255,.32);
    font-size: 14px;
    line-height: 50px;
}

.v7-login-card form > .layui-form-item:last-child {
    margin: 0;
}

.v7-login .btn-login.layui-btn:hover {
    background: linear-gradient(180deg, #6579ff 0%, #243bc7 100%);
    box-shadow: 0 15px 32px rgba(12,24,133,.46), 0 0 30px rgba(73,197,255,.32), inset 0 1px 0 rgba(255,255,255,.38);
    transform: translateY(-2px);
}

.v7-button-arrow {
    font-size: 20px;
}

.v7-trust {
    width: min(440px, 100%);
    margin: 22px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: rgba(244,236,255,.74);
    font-size: 11px;
}

.v7-trust i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(220,205,255,.55);
}

.v7-footer {
    width: min(440px, 100%);
    margin: 10px auto 0;
    color: rgba(229,218,250,.4);
}

body .layui-layer.v8-login-toast {
    min-width: 320px;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    border: 1px solid rgba(178, 151, 255, .32) !important;
    border-radius: 16px !important;
    color: #f8f5ff;
    background:
        radial-gradient(circle at 12% 0%, rgba(94, 216, 255, .14), transparent 38%),
        linear-gradient(135deg, rgba(25, 18, 67, .97), rgba(56, 43, 105, .95)) !important;
    box-shadow:
        0 18px 48px rgba(8, 3, 38, .38),
        0 0 0 1px rgba(112, 196, 255, .05),
        inset 0 1px rgba(255, 255, 255, .11) !important;
    backdrop-filter: blur(14px) saturate(126%);
    -webkit-backdrop-filter: blur(14px) saturate(126%);
}

body .layui-layer.v8-login-toast::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #5fe0ff, #8c72ff 46%, #e96bff);
}

body .layui-layer.v8-login-toast .layui-layer-content,
body .layui-layer-dialog.v8-login-toast .layui-layer-padding {
    height: auto !important;
    padding: 18px 24px 19px 62px !important;
    color: rgba(249, 247, 255, .96) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: .01em;
    text-align: left;
}

body .layui-layer.v8-login-toast .layui-layer-ico {
    top: 50%;
    left: 22px;
    width: 28px;
    height: 28px;
    margin-top: -16px;
    border-radius: 50%;
    background-image: none !important;
}

body .layui-layer.v8-login-toast .layui-layer-ico1 {
    border: 1px solid rgba(82, 240, 199, .68);
    background: rgba(42, 218, 176, .13) !important;
    box-shadow: 0 0 18px rgba(55, 229, 190, .18);
}

body .layui-layer.v8-login-toast .layui-layer-ico1::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    width: 11px;
    height: 6px;
    border-bottom: 2px solid #66f2ce;
    border-left: 2px solid #66f2ce;
    transform: rotate(-45deg);
}

body .layui-layer.v8-login-toast .layui-layer-ico2 {
    border: 1px solid rgba(255, 130, 166, .62);
    background: rgba(255, 92, 143, .13) !important;
    box-shadow: 0 0 18px rgba(255, 85, 143, .16);
}

body .layui-layer.v8-login-toast .layui-layer-ico2::after {
    content: "!";
    position: absolute;
    inset: 0;
    color: #ff91b3;
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    line-height: 27px;
    text-align: center;
}

@keyframes v8OuterGlow {
    from { transform: translate3d(0,0,0) scale(.94); opacity: .55; }
    to { transform: translate3d(24px,18px,0) scale(1.08); opacity: .9; }
}

@keyframes v8IllustrationPulse {
    from { filter: saturate(.96) brightness(.96); }
    to { filter: saturate(1.08) brightness(1.05); }
}

@keyframes v8PanelIn {
    from { opacity: 0; transform: translateX(22px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1100px) {
    body { padding: 20px; }
    .v7-login { width: calc(100vw - 40px); height: calc(100vh - 40px); min-height: 620px; }
    .v7-backdrop,
    .v7-veil { width: 50%; }
    .v7-login-card { width: 50%; padding-right: 38px; padding-left: 38px; }
    .v7-brand { top: 25px; left: 25px; }
}

@media (max-width: 820px) {
    body { padding: 12px; overflow-y: auto; }
    .v7-login { width: calc(100vw - 24px); height: auto; min-height: calc(100vh - 24px); border-radius: 22px; }
    .v7-backdrop { right: 0; width: auto; background-position: 48% center; opacity: .78; }
    .v7-veil { width: 100%; background: rgba(16,8,72,.28); }
    .v7-brand { top: 20px; left: 20px; }
    .v7-login-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: min(520px, calc(100% - 28px));
        height: auto;
        min-height: 0;
        margin: 110px auto 28px;
        padding: 34px 30px 27px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 20px;
        background: linear-gradient(145deg, rgba(56,45,95,.86), rgba(50,36,82,.88));
        transform: none;
        animation-name: v8PanelIn;
    }
    .v7-card-top { position: static; margin-bottom: 30px; }
}

@media (max-width: 520px) {
    .v7-brand-logo,
    .v7-brand-logo.is-image { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; }
    .v7-brand-copy strong { font-size: 15px; }
    .v7-login-card { width: calc(100% - 18px); margin-top: 92px; padding: 28px 20px 22px; }
    .v7-form-header h1 { font-size: 28px; }
    .v7-remember { min-height: 36px; margin-bottom: 15px; }
    .v7-login-card form > .layui-form-item:last-child { margin-bottom: 0; }
    .v7-login .btn-login.layui-btn { width: 100%; }
}

@media (max-height: 700px) and (min-width: 821px) {
    body { padding: 16px; overflow-y: auto; }
    .v7-login { height: 668px; min-height: 668px; }
    .v7-login-card { padding-top: 28px; padding-bottom: 20px; }
    .v7-card-top { top: 24px; }
    .v7-form-header { margin-bottom: 22px; }
    .v7-form-header h1 { font-size: 31px; }
    .v7-trust { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .v7-backdrop,
    .v7-login-card { animation: none !important; }
}
