/* V6MAX immersive admin login */
:root {
    --login-accent: #7757ce;
    --login-accent-hover: #6848bf;
    --login-text: #292234;
    --login-muted: #776f82;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--login-text);
    background: #cfc6d8;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.v7-login,
.v7-login * {
    box-sizing: border-box;
}

.v7-login {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 58% 60%, rgba(178, 137, 198, .28), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(255,255,255,.78), transparent 28%),
        radial-gradient(circle at 94% 88%, rgba(218,199,226,.48), transparent 31%),
        #e9e2ec;
}

.v7-backdrop {
    --pointer-x: 0px;
    --pointer-y: 0px;
    position: absolute;
    top: -18px;
    bottom: -18px;
    left: -18px;
    width: calc(58% + 18px);
    z-index: -5;
    background: #625078 url("/static/admin/images/v6max-login-blindbox-v4.png?v=20260806.4") calc(50% + var(--pointer-x)) calc(50% + var(--pointer-y)) / cover no-repeat;
    transform: scale(1.025);
    animation: v7BackgroundBreath 16s ease-in-out infinite alternate;
    transition: background-position .8s cubic-bezier(.2,.8,.2,1);
    will-change: transform, background-position;
}

.v7-veil {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 58%;
    z-index: -4;
    background: linear-gradient(90deg, rgba(31, 22, 43, .12) 0%, rgba(44, 31, 57, .03) 72%, rgba(48, 35, 60, .12) 100%);
    box-shadow: inset -1px 0 rgba(255,255,255,.22);
    pointer-events: none;
}

.v7-glow {
    position: absolute;
    z-index: -3;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .1;
    pointer-events: none;
}

.v7-glow-one {
    width: 360px;
    height: 360px;
    right: 16%;
    top: -180px;
    background: #f4e9ff;
    animation: v7GlowFloatOne 10s ease-in-out infinite alternate;
}

.v7-glow-two {
    width: 280px;
    height: 280px;
    right: -100px;
    bottom: -130px;
    background: #d4b2cf;
    animation: v7GlowFloatTwo 13s ease-in-out infinite alternate;
}

.v7-stars {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.v7-stars span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.72);
    box-shadow: 0 0 12px rgba(255,255,255,.7);
    animation: v7StarDrift 7s ease-in-out infinite;
}

.v7-stars span:nth-child(1) { left: 45%; top: 18%; animation-delay: -1s; }
.v7-stars span:nth-child(2) { left: 58%; top: 72%; width: 3px; height: 3px; animation-delay: -4s; }
.v7-stars span:nth-child(3) { left: 77%; top: 20%; width: 5px; height: 5px; animation-delay: -2.5s; }
.v7-stars span:nth-child(4) { left: 88%; top: 63%; width: 3px; height: 3px; animation-delay: -5s; }

.v7-brand {
    position: absolute;
    top: clamp(28px, 5vh, 56px);
    left: clamp(28px, 5vw, 72px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: v7BrandIn .65s ease-out both;
}

.v7-brand-logo {
    width: 44px;
    height: 40px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 7px;
    color: #fff;
    background: rgba(87,61,160,.82);
    box-shadow: 0 8px 24px rgba(17,8,40,.18);
    font-size: 11px;
    font-weight: 800;
}

.v7-brand-logo.is-image {
    width: 52px;
    flex-basis: 52px;
    padding: 0;
    background: rgba(255,255,255,.94);
}

.v7-brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transform: scale(1.48);
}

.v7-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-shadow: 0 3px 16px rgba(18,8,39,.38);
}

.v7-brand-copy strong {
    max-width: 360px;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v7-brand-copy span {
    color: rgba(255,255,255,.58);
    font-size: 10px;
    letter-spacing: .08em;
}

.v7-login-card {
    position: absolute;
    top: 50%;
    right: max(28px, calc((42vw - 448px) / 2));
    z-index: 5;
    width: min(448px, calc(100vw - 48px));
    padding: 32px 38px 34px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 18px;
    color: var(--login-text);
    background: rgba(252, 250, 252, .72);
    box-shadow: 0 24px 60px rgba(69, 53, 81, .14), inset 0 1px 0 rgba(255,255,255,.96);
    backdrop-filter: blur(14px) saturate(106%);
    -webkit-backdrop-filter: blur(14px) saturate(106%);
    transform: translateY(-50%);
    animation: v7CardIn .72s cubic-bezier(.18,.84,.24,1) both;
}

.v7-login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 36px;
    right: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
}

.v7-card-top {
    min-height: 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v7-card-label {
    color: #8c8398;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
}

.v7-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #746c7d;
    font-size: 10px;
}

.v7-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42d698;
    box-shadow: 0 0 0 4px rgba(66,214,152,.1);
    animation: v7StatusPulse 2.2s ease-in-out infinite;
}

.v7-form-header {
    margin-bottom: 30px;
}

.v7-form-header h1 {
    margin: 0 0 9px;
    color: #261f30;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -.025em;
}

.v7-form-header p {
    margin: 0;
    color: var(--login-muted);
    font-size: 13px;
    line-height: 1.7;
}

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

.v7-input-label {
    margin: 0 0 8px;
    display: block;
    color: #4d4558;
    font-size: 12px;
    font-weight: 600;
}

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

.v7-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    width: 18px;
    height: 18px;
    color: #aaa1b4;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color .18s ease, transform .18s ease;
}

.v7-input-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v7-login .login-input.layui-input {
    width: 100%;
    height: 48px;
    padding: 0 15px 0 44px;
    border: 1px solid rgba(83, 68, 97, .14);
    border-radius: 7px;
    color: #292234;
    background: rgba(255,255,255,.6);
    font-size: 13px;
    line-height: 48px;
    outline: none;
    box-shadow: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.v7-login .login-input.layui-input::placeholder {
    color: #aaa2b1;
}

.v7-login .login-input.layui-input:hover {
    border-color: rgba(94,75,112,.28);
    background: rgba(255,255,255,.76);
}

.v7-login .login-input.layui-input:focus {
    border-color: rgba(115,85,207,.7) !important;
    background: rgba(255,255,255,.9);
    box-shadow: 0 0 0 3px rgba(115,85,207,.11), 0 8px 26px rgba(69,52,86,.08);
}

.v7-input-shell:focus-within .v7-input-icon {
    color: var(--login-accent);
    transform: translateY(-50%) scale(1.06);
}

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

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

.v7-login .login-captcha {
    width: 100%;
    display: block;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 7px;
    background: rgba(255,255,255,.92);
    object-fit: contain;
    cursor: pointer;
}

.v7-remember {
    min-height: 26px;
    margin: 0 0 19px;
}

.v7-login .layui-form-checkbox[lay-skin=primary] span {
    color: #81798a;
    font-size: 12px;
}

.v7-login .layui-form-checkbox[lay-skin=primary] i {
    border-color: rgba(79,65,92,.22);
    border-radius: 4px;
    background: rgba(255,255,255,.72);
}

.v7-login .layui-form-checked[lay-skin=primary] i {
    border-color: var(--login-accent) !important;
    background: var(--login-accent) !important;
}

.v7-login .btn-login.layui-btn {
    position: relative;
    height: 48px;
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--login-accent);
    box-shadow: 0 12px 30px rgba(84,53,181,.26);
    font-size: 14px;
    font-weight: 600;
    line-height: 48px;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.v7-login .btn-login.layui-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -38%;
    width: 24%;
    background: rgba(255,255,255,.2);
    transform: skewX(-22deg);
    transition: left .55s ease;
}

.v7-login .btn-login.layui-btn:hover {
    color: #fff;
    background: var(--login-accent-hover);
    box-shadow: 0 16px 34px rgba(84,53,181,.34);
    transform: translateY(-1px);
}

.v7-login .btn-login.layui-btn:hover::before {
    left: 118%;
}

.v7-login .btn-login.layui-btn:active {
    transform: translateY(0);
}

.v7-footer {
    margin-top: 24px;
    color: #9b93a4;
    text-align: center;
    font-size: 10px;
}

@keyframes v7BackgroundBreath {
    0% { transform: scale(1.025); filter: saturate(.95) brightness(.99); }
    100% { transform: scale(1.055); filter: saturate(1.02) brightness(1.015); }
}

@keyframes v7GlowFloatOne {
    from { transform: translate3d(0, 0, 0); opacity: .17; }
    to { transform: translate3d(-40px, 34px, 0); opacity: .28; }
}

@keyframes v7GlowFloatTwo {
    from { transform: translate3d(0, 0, 0); opacity: .16; }
    to { transform: translate3d(-46px, -32px, 0); opacity: .25; }
}

@keyframes v7StarDrift {
    0%, 100% { transform: translateY(0) scale(.8); opacity: .2; }
    50% { transform: translateY(-16px) scale(1.1); opacity: .75; }
}

@keyframes v7StatusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(66,214,152,.1); }
    50% { opacity: .65; box-shadow: 0 0 0 6px rgba(66,214,152,.02); }
}

@keyframes v7BrandIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes v7CardIn {
    from { opacity: 0; transform: translate3d(24px, calc(-50% + 12px), 0) scale(.985); }
    to { opacity: 1; transform: translate3d(0, -50%, 0) scale(1); }
}

@media (max-width: 900px) {
    .v7-backdrop {
        right: -18px;
        width: auto;
        background-position: 34% center;
    }
    .v7-veil {
        width: 100%;
        background: rgba(31,22,43,.22);
        box-shadow: none;
    }
    .v7-brand { top: 22px; left: 22px; }
    .v7-login-card {
        top: 52%;
        right: auto;
        left: 50%;
        width: min(470px, calc(100vw - 32px));
        transform: translate(-50%, -50%);
        animation-name: v7CardInMobile;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .v7-backdrop { width: calc(52% + 18px); }
    .v7-veil { width: 52%; }
    .v7-login-card {
        right: max(24px, calc((48vw - 420px) / 2));
        width: min(420px, calc(100vw - 48px));
        padding-right: 32px;
        padding-left: 32px;
    }
}

@media (max-width: 520px) {
    .v7-brand-logo { width: 40px; height: 36px; flex-basis: 40px; }
    .v7-brand-logo.is-image { width: 46px; flex-basis: 46px; }
    .v7-brand-copy strong { max-width: 230px; font-size: 14px; }
    .v7-brand-copy span { display: none; }
    .v7-login-card {
        width: calc(100vw - 20px);
        padding: 26px 20px 28px;
        border-radius: 12px;
    }
    .v7-card-top { margin-bottom: 22px; }
    .v7-form-header { margin-bottom: 25px; }
    .v7-form-header h1 { font-size: 26px; }
    .v7-captcha-group { grid-template-columns: minmax(0, 1fr) 102px; }
}

@media (max-height: 720px) and (min-width: 521px) {
    .v7-login-card { padding-top: 24px; padding-bottom: 24px; }
    .v7-card-top { margin-bottom: 20px; }
    .v7-form-header { margin-bottom: 22px; }
    .v7-login .layui-form-item { margin-bottom: 15px; }
    .v7-footer { margin-top: 18px; }
}

@keyframes v7CardInMobile {
    from { opacity: 0; transform: translate3d(calc(-50% + 18px), calc(-50% + 10px), 0) scale(.985); }
    to { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .v7-backdrop,
    .v7-glow,
    .v7-stars span,
    .v7-brand,
    .v7-login-card,
    .v7-status i { animation: none !important; }
    .v7-backdrop { transition: none !important; }
    .v7-login *,
    .v7-login *::before,
    .v7-login *::after { transition-duration: .01ms !important; }
}
