:root {
    --bg: #070b17;
    --text: #f7f8ff;
    --muted: #8992ae;

    --purple: #7c5cff;
    --blue: #00e5ff;
    --pink: #ff4ecd;

    --line: rgba(255,255,255,.09);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: "Poppins", sans-serif;
    overflow: hidden;
}


/* =========================
   BACKGROUND
========================= */

.background {
    position: fixed;
    inset: 0;
    z-index: -5;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(124,92,255,.20),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 70%,
            rgba(0,229,255,.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(255,78,205,.08),
            transparent 35%
        ),
        #070b17;
}

.grid {
    position: absolute;
    inset: -100px;
    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );
    background-size: 45px 45px;
    transform: perspective(500px) rotateX(55deg);
    transform-origin: center bottom;
    opacity: .6;
    mask-image:
        linear-gradient(
            to top,
            black,
            transparent 70%
        );
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .25;
    animation: drift 10s ease-in-out infinite alternate;
}

.glow-purple {
    width: 300px;
    height: 300px;
    background: var(--purple);
    top: -80px;
    right: 10%;
}

.glow-blue {
    width: 250px;
    height: 250px;
    background: var(--blue);
    bottom: 5%;
    left: -100px;
    animation-delay: -3s;
}

.glow-pink {
    width: 230px;
    height: 230px;
    background: var(--pink);
    bottom: -80px;
    right: 25%;
    animation-delay: -6s;
}

@keyframes drift {
    from {
        transform: translate(0,0);
    }

    to {
        transform: translate(40px,-30px);
    }
}


/* =========================
   TOPBAR
========================= */

.topbar {
    width: min(1400px,calc(100% - 60px));
    height: 90px;
    margin: auto;

    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: white;
}

.brand-mark {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--pink)
        );

    font-family: "Orbitron", sans-serif;
    font-size: 12px;
    font-weight: 800;

    transform: rotate(-5deg);

    box-shadow:
        0 10px 35px
        rgba(124,92,255,.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    font-family: "Orbitron", sans-serif;
    font-size: 17px;
    letter-spacing: 1px;
}

.brand-text span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 3px;
}


/* =========================
   LANGUAGE TOGGLE
========================= */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-left: auto;
    margin-right: 24px;

    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;

    color: var(--muted);

    user-select: none;
}

.language-toggle > span {
    transition: color .25s ease;
}

.language-toggle.id-active > span:first-child {
    color: var(--text);
}

.language-toggle.en-active > span:last-child {
    color: var(--text);
}

.toggle-switch {
    position: relative;

    display: inline-block;

    width: 42px;
    height: 22px;

    flex-shrink: 0;

    cursor: pointer;
}

.toggle-switch input {
    position: absolute;

    opacity: 0;

    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;

    border-radius: 999px;

    background: rgba(255,255,255,.10);

    border:
        1px solid
        rgba(255,255,255,.16);

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.toggle-slider::before {
    content: "";

    position: absolute;

    width: 16px;
    height: 16px;

    left: 2px;
    top: 2px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 2px 8px
        rgba(0,0,0,.35);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background:
        rgba(124,92,255,.35);

    border-color:
        rgba(124,92,255,.65);

    box-shadow:
        0 0 12px
        rgba(124,92,255,.25);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);

    box-shadow:
        0 2px 10px
        rgba(124,92,255,.45);
}

.toggle-switch:hover .toggle-slider {
    border-color:
        rgba(255,255,255,.30);
}

.toggle-switch input:focus-visible + .toggle-slider {
    outline:
        2px solid
        var(--blue);

    outline-offset: 3px;
}


/* =========================
   SERVER STATUS
========================= */

.top-status {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #7ceec0;

    font-family: "Orbitron", sans-serif;
    font-size: 8px;
    letter-spacing: 1.5px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #4ce39e;

    box-shadow:
        0 0 12px
        #4ce39e;

    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    50% {
        opacity: .35;
        transform: scale(.7);
    }
}


/* =========================
   MAIN
========================= */

.login-page {
    width: min(1400px,calc(100% - 60px));

    min-height: calc(100vh - 140px);

    margin: auto;

    display: flex;
    align-items: center;
}

.login-content {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0,1.15fr)
        minmax(390px,.85fr);

    align-items: center;

    gap: 80px;
}


/* =========================
   INTRO
========================= */

.intro {
    padding-bottom: 30px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--blue);

    font-family: "Orbitron", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.pulse {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--blue);

    box-shadow:
        0 0 15px
        var(--blue);
}

.intro h1 {
    margin: 20px 0;

    font-family: "Orbitron", sans-serif;

    font-size: clamp(50px,6vw,84px);

    line-height: .95;
    letter-spacing: -4px;
}

.intro h1 span {
    color: transparent;

    background:
        linear-gradient(
            90deg,
            #fff,
            var(--blue),
            var(--purple),
            var(--pink)
        );

    background-clip: text;
    -webkit-background-clip: text;

    filter:
        drop-shadow(
            0 0 25px
            rgba(0,229,255,.15)
        );
}

.description {
    max-width: 560px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.8;
}


/* =========================
   FEATURES
========================= */

.features {
    display: flex;

    gap: 12px;

    margin-top: 35px;
}

.feature {
    min-width: 160px;

    padding: 14px;

    display: flex;
    align-items: center;

    gap: 10px;

    border:
        1px solid
        var(--line);

    border-radius: 13px;

    background:
        rgba(255,255,255,.025);

    backdrop-filter: blur(10px);
}

.feature-icon {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        rgba(124,92,255,.12);

    font-size: 17px;
}

.feature strong {
    display: block;

    font-family: "Orbitron", sans-serif;

    font-size: 8px;
    letter-spacing: .5px;
}

.feature span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 8px;
    line-height: 1.4;
}


/* =========================
   LOGIN CARD
========================= */

.login-wrapper {
    position: relative;

    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 430px;

    position: relative;
    overflow: hidden;

    padding: 40px;

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025)
        );

    backdrop-filter: blur(22px);

    box-shadow:
        0 35px 90px
        rgba(0,0,0,.45),

        inset 0 1px 0
        rgba(255,255,255,.06);
}

.login-card::before {
    content: "";

    position: absolute;

    inset: 10px;

    border:
        1px solid
        rgba(255,255,255,.035);

    border-radius: 18px;

    pointer-events: none;
}

.card-glow {
    position: absolute;

    width: 220px;
    height: 220px;

    top: -130px;
    right: -100px;

    border-radius: 50%;

    background: var(--purple);

    filter: blur(80px);

    opacity: .18;
}

.game-icon {
    width: 75px;
    height: 75px;

    display: grid;
    place-items: center;

    margin: auto;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(124,92,255,.22),
            rgba(255,78,205,.13)
        );

    border:
        1px solid
        rgba(124,92,255,.3);

    box-shadow:
        0 15px 45px
        rgba(124,92,255,.18);
}

.game-icon span {
    font-size: 37px;

    animation:
        floatIcon
        3s ease-in-out
        infinite;
}

@keyframes floatIcon {
    50% {
        transform:
            translateY(-6px)
            rotate(4deg);
    }
}

.login-heading {
    text-align: center;

    margin: 24px 0 25px;
}

.section-label {
    color: var(--blue);

    font-family: "Orbitron", sans-serif;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.login-heading h2 {
    margin: 8px 0 5px;

    font-family: "Orbitron", sans-serif;

    font-size: 25px;
}

.login-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
}


/* =========================
   GOOGLE BUTTON
========================= */

.google-button {
    min-height: 55px;

    padding: 0 16px;

    display: flex;
    align-items: center;

    gap: 12px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 11px;

    color: white;

    background:
        rgba(255,255,255,.055);

    text-decoration: none;

    transition: .25s ease;
}

.google-button:hover {
    transform: translateY(-2px);

    border-color:
        rgba(0,229,255,.35);

    background:
        rgba(255,255,255,.085);

    box-shadow:
        0 12px 35px
        rgba(0,0,0,.25);
}

.google-logo {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background: white;
}

.google-text {
    flex: 1;

    font-size: 12px;
    font-weight: 600;

    text-align: left;
}

.arrow {
    color: var(--blue);

    font-size: 20px;

    transition: .25s;
}

.google-button:hover .arrow {
    transform: translateX(4px);
}


/* =========================
   DIVIDER
========================= */

.divider {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 25px 0 18px;
}

.divider span {
    height: 1px;

    flex: 1;

    background:
        var(--line);
}

.divider small {
    color: #626b86;

    font-family: "Orbitron", sans-serif;

    font-size: 7px;
    letter-spacing: 1px;
}


/* =========================
   NOTE
========================= */

.login-note {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 12px;

    border-radius: 10px;

    background:
        rgba(0,229,255,.035);

    border:
        1px solid
        rgba(0,229,255,.07);
}

.login-note span {
    font-size: 13px;
}

.login-note p {
    margin: 0;

    color: var(--muted);

    font-size: 9px;
    line-height: 1.6;
}


/* =========================
   CARD FOOTER
========================= */

.card-footer {
    display: flex;
    justify-content: center;

    gap: 8px;

    margin-top: 25px;

    color: #555e78;

    font-family: "Orbitron", sans-serif;

    font-size: 7px;
    letter-spacing: 1px;
}

.card-footer span:nth-child(2) {
    color: var(--blue);
}


/* =========================
   FLOATING OBJECTS
========================= */

.floating {
    position: absolute;

    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255,255,255,.1);

    border-radius: 16px;

    background:
        rgba(12,17,34,.8);

    backdrop-filter: blur(12px);

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.35);

    font-size: 24px;

    z-index: 4;
}

.floating-one {
    left: -28px;
    top: 18%;

    transform: rotate(-12deg);

    animation:
        floatOne
        4s ease-in-out
        infinite;
}

.floating-two {
    right: -25px;
    top: 15%;

    transform: rotate(10deg);

    animation:
        floatTwo
        3.5s ease-in-out
        infinite;
}

.floating-three {
    right: -15px;
    bottom: 12%;

    transform: rotate(-8deg);

    animation:
        floatThree
        4.5s ease-in-out
        infinite;
}

@keyframes floatOne {
    50% {
        transform:
            translateY(-12px)
            rotate(-7deg);
    }
}

@keyframes floatTwo {
    50% {
        transform:
            translateY(10px)
            rotate(15deg);
    }
}

@keyframes floatThree {
    50% {
        transform:
            translateY(-9px)
            rotate(2deg);
    }
}


/* =========================
   FOOTER
========================= */

footer {
    width: min(1400px,calc(100% - 60px));

    height: 50px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top:
        1px solid
        var(--line);

    color: #59627d;

    font-size: 8px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width:1000px) {

    body {
        overflow: auto;
    }

    .login-content {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 40px 0 60px;
    }

    .intro {
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }

    .description {
        margin: auto;
    }

    .features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .login-wrapper {
        margin: auto;

        width: min(100%,430px);
    }

    .login-page {
        min-height: auto;
    }
}


@media (max-width:600px) {

    .topbar,
    .login-page,
    footer {
        width: calc(100% - 30px);
    }

    .topbar {
        height: 75px;
    }

    /* LANGUAGE TOGGLE MOBILE */

    .language-toggle {
        margin-right: 14px;

        gap: 7px;

        font-size: 9px;
    }

    .toggle-switch {
        width: 38px;
        height: 20px;
    }

    .toggle-slider::before {
        width: 14px;
        height: 14px;

        left: 2px;
        top: 2px;
    }

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(18px);
    }

    .top-status {
        font-size: 7px;
    }

    .intro h1 {
        font-size: 48px;

        letter-spacing: -3px;
    }

    .description {
        font-size: 12px;
    }

    .features {
        display: grid;

        grid-template-columns: 1fr;
    }

    .feature {
        text-align: left;
    }

    .login-card {
        padding: 30px 22px;
    }

    .floating {
        display: none;
    }

    footer {
        height: auto;

        padding: 20px 0;

        gap: 8px;

        flex-direction: column;
    }
}

.quick-join {
    max-width: 900px;
    margin: 0 auto 30px;
    margin-top: 30px;
    margin-bottom: 0px;
    padding: 18px 24px;

    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;

    background: rgba(17,23,43,.7);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
}

.quick-join-icon { font-size: 26px; flex-shrink: 0; }

.quick-join-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 160px;
}

.quick-join-copy span { color: #8992ae; font-size: 11px; }
.quick-join-copy strong { font-size: 14px; }

.quick-join-form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 260px;
}

.quick-join-form input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.03);
    color: #f7f8ff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
}

.quick-join-form input:focus { outline: none; border-color: #00e5ff; }

.quick-join-form button {
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    background: #7c5cff;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .quick-join { flex-direction: column; align-items: stretch; text-align: center; }
    .quick-join-form { flex-direction: column; }
}