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-bullet-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.bullet-trace {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(64px, 10vw, 150px);
    height: 6px;
    margin-top: -3px;
    border-radius: 999px;
    opacity: 0;
    transform-origin: center;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 234, 170, .5) 22%,
        rgba(255, 179, 89, .95) 58%,
        rgba(255, 113, 70, 1) 100%
    );
    box-shadow:
        0 0 10px rgba(255, 166, 84, .75),
        0 0 24px rgba(249, 115, 22, .42);
    filter: drop-shadow(0 0 4px rgba(255, 205, 128, .5));
}

.bullet-trace::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    width: 11px;
    height: 11px;
    margin-top: -5.5px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 32% 30%, #fff6df 0 40%, #f59e0b 60%, #b45309 100%);
    box-shadow: 0 0 12px rgba(251, 191, 36, .8);
}

.bullet-trace.from-right {
    transform: scaleX(-1);
}

.login-cinematic.launch .bullet-trace {
    animation: bulletStrike var(--dur, .52s) cubic-bezier(.18, .74, .2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.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;
}

.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(20, 29, 47, .96) 0%,
        rgba(31, 45, 66, .88) 48%,
        rgba(47, 63, 88, .58) 76%,
        rgba(47, 63, 88, 0) 100%
    );
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, .45))
        drop-shadow(0 0 2px rgba(15, 23, 42, .42));
}

.crack-line::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, .34), 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(29, 41, 63, .9), rgba(29, 41, 63, 0));
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .32));
}

.crack-origin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38px;
    height: 38px;
    margin-left: -19px;
    margin-top: -19px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(15, 23, 42, .55) 0 35%, rgba(15, 23, 42, 0) 65%),
        radial-gradient(circle, rgba(255, 255, 255, .68) 0 9%, rgba(255, 255, 255, 0) 32%);
    filter: blur(.2px);
}

.login-cinematic.impact .cinematic-cracks {
    opacity: 1;
    animation: crackBlink .62s 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: #f8fbff;
    text-shadow:
        0 2px 0 rgba(15, 23, 42, .35),
        0 0 26px rgba(191, 219, 254, .65),
        0 0 48px rgba(148, 163, 184, .35);
    opacity: 0;
    z-index: 3;
    white-space: nowrap;
}

.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 bulletStrike {
    0% {
        opacity: 0;
        transform: translate3d(var(--start-x, -62vw), var(--y, 0px), 0) rotate(var(--rot, 0deg)) scale(.52);
    }
    10% {
        opacity: .95;
    }
    76% {
        opacity: .95;
        transform: translate3d(-8px, var(--y, 0px), 0) rotate(var(--rot, 0deg)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--overshoot, 11vw), calc(var(--y, 0px) + var(--drift, 0px)), 0) rotate(var(--rot, 0deg)) scale(.86);
    }
}

@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);
    }
}
