/* ========================================================================== 
   Longの云盘 · Login / Logout Transition
   仅作用于 Copyparty POST 认证过渡页
   ========================================================================== */

body.ld-POST {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #e8edf8 !important;
    background:
        radial-gradient(circle at 15% 10%, rgba(60, 172, 247, 0.19), transparent 35rem),
        radial-gradient(circle at 88% 10%, rgba(255, 155, 231, 0.12), transparent 31rem),
        radial-gradient(circle at 50% 100%, rgba(182, 120, 255, 0.09), transparent 42rem),
        linear-gradient(135deg, #0b1120 0%, #111a30 53%, #181326 100%) !important;
    font-family: "echo", Georgia, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Noto Serif SC", "Microsoft YaHei",
        sans-serif !important;
}

html.y body.ld-POST {
    color: #364863 !important;
    background:
        radial-gradient(circle at 12% 8%, rgba(60, 172, 247, 0.18), transparent 35rem),
        radial-gradient(circle at 90% 9%, rgba(255, 155, 231, 0.13), transparent 31rem),
        radial-gradient(circle at 50% 100%, rgba(182, 120, 255, 0.08), transparent 40rem),
        linear-gradient(135deg, #eef5ff, #f7f5ff 55%, #fff4fa) !important;
}

/* ---------- 中央玻璃卡 ---------- */

body.ld-POST::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    box-sizing: border-box;
    width: min(330px, calc(100vw - 44px));
    height: 230px;
    transform: translate(-50%, -50%);

    background: rgba(20, 29, 50, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}

html.y body.ld-POST::before {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(67, 105, 165, 0.12);
    box-shadow: 0 28px 70px rgba(70, 93, 135, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

body.ld-POST::after {
    content: "Private Cloud";
    position: absolute;
    left: 50%;
    top: calc(50% + 76px);
    transform: translateX(-50%);
    color: rgba(159, 177, 205, 0.48);
    font-size: 9px;
    font-weight: 550;
    letter-spacing: 0.18em;
    white-space: nowrap;
}

html.y body.ld-POST::after {
    color: rgba(83, 99, 126, 0.55);
}

/* ---------- 品牌 ---------- */

body.ld-POST h1 {
    position: relative;
    z-index: 2;
    margin: 0 0 72px !important;
    padding: 3px 0 0 !important;
    overflow: visible;

    color: transparent !important;
    background-image: linear-gradient(90deg, #7ddfff, #b678ff 56%, #ff9be7);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 104px 2px;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-align: center;
}

body.ld-POST h1::after {
    content: "Longの云盘";
    display: block;
    color: #f0f6ff;
    font-size: 25px;
    font-weight: 720;
    line-height: 1.3;
    letter-spacing: 0.025em;
    text-shadow: 0 2px 18px rgba(94, 153, 255, 0.15);
}

html.y body.ld-POST h1::after {
    color: #263654;
}

/* ---------- 保留 continue 链接功能，只替换视觉 ---------- */

body.ld-POST a {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 210px;
    min-height: 38px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;

    color: transparent !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    font-size: 0 !important;
    text-decoration: none !important;
}

body.ld-POST a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -50px;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    margin-left: -14px;

    border: 2px solid rgba(132, 177, 255, 0.18);
    border-top-color: #7ddfff;
    border-right-color: #b678ff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(96, 151, 255, 0.11);
    animation: long-auth-spin 0.72s linear infinite;
}

body.ld-POST a::after {
    content: "正在同步账户状态";
    display: block;
    color: rgba(190, 207, 232, 0.82);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

html.y body.ld-POST a::after {
    color: rgba(74, 91, 119, 0.78);
}

body.ld-POST a:focus-visible {
    outline: 2px solid rgba(125, 180, 255, 0.76) !important;
    outline-offset: 4px !important;
    border-radius: 8px;
}

@keyframes long-auth-spin {
    to { transform: rotate(360deg); }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    body.ld-POST::before {
        background: rgba(17, 24, 43, 0.96);
    }

    html.y body.ld-POST::before {
        background: rgba(255, 255, 255, 0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ld-POST a::before {
        animation-duration: 1.4s;
    }
}

/* 去除加载卡片内部所有实体背景，仅保留外层玻璃卡片 */
html body.ld-POST *,
html body.ld-POST *::before,
html body.ld-POST *::after {
    background-color: transparent !important;
}