body.login-page {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #e7e7e7;
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    color: #121212;
}

.login-stage {
    width: min(1120px, 94%);
    margin: 20px auto;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d6d6d6;
    background: #f1f1f1;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.login-left {
    padding: 28px 34px;
    background: #f1f1f1;
}

.brand-mini {
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 8px;
    color: #3f3f46;
}

.auth-switch {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tab-btn {
    border-radius: 999px;
    border: 1px solid #d4d4d8;
    background: #fff;
    color: #3f3f46;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}

.tab-btn.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.form-card.modern-form {
    display: none;
    border: none;
    background: transparent;
    padding: 4px 0 0;
    max-height: 560px;
    overflow-y: auto;
}

.form-card.modern-form.active {
    display: block;
}

.modern-form h1 {
    margin: 6px 0 4px;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: .04em;
}

.modern-form .subline {
    margin: 0 0 16px;
    color: #71717a;
    font-size: 14px;
}

.modern-form label {
    margin: 8px 0 4px;
    font-size: 14px;
    color: #27272a;
}

.modern-form input,
.modern-form select {
    border: 1px solid #d4d4d8;
    background: #fff;
    border-radius: 10px;
    height: 42px;
    padding: 0 12px;
}

.row-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 10px 0 12px;
    font-size: 13px;
    color: #52525b;
}

.remember-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 600;
}

.remember-wrap input {
    width: 16px;
    height: 16px;
}

.row-meta a {
    text-decoration: none;
    color: #3f3f46;
    font-weight: 700;
}

.primary-btn {
    margin-top: 0;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.primary-btn:hover {
    background: #dc2626;
}

.google-btn {
    margin-top: 10px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #d4d4d8;
    background: #fff;
    color: #27272a;
    font-weight: 700;
    cursor: pointer;
}

.google-btn:hover {
    background: #fafafa;
}

.switch-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #52525b;
}

.inline-switch {
    border: none;
    background: transparent;
    color: #ef4444;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.login-right {
    background: #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-right img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 560px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

.login-left .alert {
    margin-bottom: 10px;
}

@media (max-width: 940px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-right {
        min-height: 280px;
        padding: 12px;
    }

    .modern-form h1 {
        font-size: 32px;
    }
}

.login-cinematic {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    overflow: hidden;
}

.login-cinematic.active {
    opacity: 1;
}

.cinematic-flash {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
}

.login-cinematic.active .cinematic-flash {
    animation: flashPulse 0.5s ease-out forwards;
}

.cinematic-magic {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(180px, 26vw, 360px);
    aspect-ratio: 1;
    border-radius: 999px;
    opacity: 0;
    z-index: 2;
    background:
        radial-gradient(circle, rgba(186, 230, 253, .78) 0 12%, rgba(56, 189, 248, .3) 30%, rgba(14, 116, 144, 0) 70%);
    filter: blur(1px);
    transform: translate3d(-50%, -50%, 0) scale(.14);
}

.cinematic-magic::before,
.cinematic-magic::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: inherit;
    border: 1px solid rgba(125, 211, 252, .48);
    opacity: .5;
}

.cinematic-magic::after {
    inset: 28%;
    border-color: rgba(103, 232, 249, .55);
}

.magic-particle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--size, 7px);
    height: var(--size, 7px);
    margin-left: calc(var(--size, 7px) * -0.5);
    margin-top: calc(var(--size, 7px) * -0.5);
    border-radius: 999px;
    opacity: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .95) 0 35%, rgba(56, 189, 248, .8) 65%, rgba(6, 182, 212, .25) 100%);
    box-shadow: 0 0 12px rgba(56, 189, 248, .8);
    transform: rotate(var(--angle, 0deg)) translateX(0) scale(.4);
    transform-origin: center;
}

.login-cinematic.impact .cinematic-magic {
    animation: magicPulse .58s cubic-bezier(.12, .82, .22, 1) forwards;
}

.login-cinematic.shatter .cinematic-magic {
    animation: magicBurst .72s cubic-bezier(.14, .68, .28, 1) forwards;
}

.login-cinematic.impact .magic-particle {
    animation: magicSpark var(--d, .7s) ease-out forwards;
    animation-delay: var(--delay, 0s);
}

.cinematic-cracks {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .18) 0 13%, rgba(241, 245, 249, .08) 34%, rgba(15, 23, 42, .16) 100%);
    backdrop-filter: blur(1.1px) saturate(1.02);
}

.crack-line {
    position: absolute;
    left: 50%;
    top: 50%;
    height: var(--thick, 1.4px);
    width: var(--len, 38vmax);
    transform-origin: left center;
    transform: rotate(var(--angle, 0deg)) translateX(var(--offset, 0px));
    opacity: var(--alpha, .9);
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        rgba(4, 10, 22, .94) 0%,
        rgba(24, 35, 54, .9) 38%,
        rgba(128, 153, 189, .35) 64%,
        rgba(214, 230, 251, .14) 82%,
        rgba(214, 230, 251, 0) 100%
    );
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, .52))
        drop-shadow(0 0 3px rgba(15, 23, 42, .45));
}

.crack-line::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, 0));
    transform: translateY(-0.5px);
}

.crack-line.major {
    filter:
        drop-shadow(0 0 2px rgba(255, 255, 255, .55))
        drop-shadow(0 0 4px rgba(15, 23, 42, .45));
}

.crack-line.branch {
    opacity: calc(var(--alpha, .75) * .92);
}

.crack-line.hair {
    background: linear-gradient(90deg, rgba(19, 29, 46, .88), rgba(19, 29, 46, 0));
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .26));
}

.crack-line.splinter {
    background: linear-gradient(90deg, rgba(14, 22, 38, .86), rgba(14, 22, 38, 0));
    filter: drop-shadow(0 0 1px rgba(226, 232, 240, .36));
}

.crack-origin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    margin-left: -23px;
    margin-top: -23px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(15, 23, 42, .62) 0 38%, rgba(15, 23, 42, 0) 72%),
        radial-gradient(circle, rgba(255, 255, 255, .78) 0 9%, rgba(255, 255, 255, 0) 34%);
    filter: blur(.2px);
}

.login-cinematic.impact .cinematic-cracks {
    opacity: 1;
    animation: crackBlink .92s ease-out forwards;
}

.cinematic-shards {
    position: absolute;
    inset: 0;
}

.cinematic-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0) scale(.84);
    margin-top: 6px;
    font-family: "Arial Black", "Segoe UI", Tahoma, sans-serif;
    font-size: clamp(32px, 8vw, 92px);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #111827;
    opacity: 0;
    z-index: 3;
    white-space: nowrap;
}

.cinematic-title .title-community {
    color: #050505;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, .22),
        0 0 14px rgba(15, 23, 42, .18);
}

.cinematic-title .title-net {
    color: #22c55e;
    text-shadow:
        0 2px 0 rgba(6, 78, 40, .45),
        0 0 18px rgba(34, 197, 94, .6),
        0 0 34px rgba(34, 197, 94, .38);
}

.login-cinematic.show-title .cinematic-title {
    animation: titleReveal .82s cubic-bezier(.15, .76, .24, 1) forwards;
}

.login-cinematic.zoom-title .cinematic-title {
    animation: titleZoomForward .72s cubic-bezier(.18, .84, .24, 1) forwards;
}

.glass-shard {
    position: absolute;
    left: calc(50% + var(--x, 0px));
    top: calc(50% + var(--y, 0px));
    width: var(--w, 42px);
    height: var(--h, 26px);
    clip-path: polygon(12% 0%, 100% 12%, 82% 100%, 0% 78%);
    background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(188, 215, 255, .55));
    border: 1px solid rgba(140, 173, 228, .58);
    box-shadow: 0 0 12px rgba(209, 228, 255, .45);
    opacity: 0;
    transform: rotate(var(--r, 0deg)) scale(.85);
}

.login-cinematic.shatter .glass-shard {
    animation: shardDrop var(--d, 1.15s) cubic-bezier(.18, .67, .22, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.login-cinematic.impact {
    animation: screenShake .22s linear 2;
}

@keyframes flashPulse {
    0% { opacity: 0; }
    20% { opacity: .98; }
    100% { opacity: .93; }
}

@keyframes magicPulse {
    0% {
        opacity: 0;
        transform: translate3d(-50%, -50%, 0) scale(.16);
        filter: blur(2px);
    }
    35% {
        opacity: .9;
        transform: translate3d(-50%, -50%, 0) scale(.75);
        filter: blur(0);
    }
    100% {
        opacity: .62;
        transform: translate3d(-50%, -50%, 0) scale(1.12);
        filter: blur(.4px);
    }
}

@keyframes magicBurst {
    0% {
        opacity: .62;
        transform: translate3d(-50%, -50%, 0) scale(1.12);
    }
    100% {
        opacity: 0;
        transform: translate3d(-50%, -50%, 0) scale(1.75);
    }
}

@keyframes magicSpark {
    0% {
        opacity: 0;
        transform: rotate(var(--angle, 0deg)) translateX(0) scale(.4);
    }
    18% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle, 0deg)) translateX(var(--dist, 150px)) scale(.82);
    }
}

@keyframes crackBlink {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: .84; }
}

@keyframes shardDrop {
    0% {
        opacity: .95;
        transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--tx, 0px), 118vh, 0) rotate(calc(var(--r, 0deg) + var(--spin, 200deg))) scale(.58);
    }
}

@keyframes screenShake {
    0% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(-6px, 0, 0); }
    50% { transform: translate3d(6px, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        letter-spacing: .3em;
        transform: translate3d(-50%, calc(-50% + 20px), 0) scale(.72);
        filter: blur(5px);
    }
    65% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        letter-spacing: .12em;
        transform: translate3d(-50%, -50%, 0) scale(1);
    }
}

@keyframes titleZoomForward {
    0% {
        opacity: 1;
        letter-spacing: .12em;
        transform: translate3d(-50%, -50%, 0) scale(1);
        filter: blur(0);
    }
    70% {
        opacity: 1;
        transform: translate3d(-50%, -53%, 0) scale(2.35);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        letter-spacing: .18em;
        transform: translate3d(-50%, -58%, 0) scale(3.1);
        filter: blur(4px);
    }
}
