/* ======================================================
   GAME VERSE LOGIN
   Premium UI
====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-1: #020617;
    --bg-2: #0f172a;

    --blue: #38bdf8;
    --blue-dark: #2563eb;

    --purple: #8b5cf6;

    --text: #f8fafc;
    --muted: #94a3b8;

    --danger: #fb7185;
    --success: #4ade80;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;

    overflow-x: hidden;

    font-family:
        Tahoma,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(37, 99, 235, .25),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(139, 92, 246, .2),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--bg-1),
            var(--bg-2)
        );
}


/* ======================================================
   BACKGROUND
====================================================== */

.space-background {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}


.stars {
    position: absolute;
    inset: -100%;

    background-image:
        radial-gradient(
            1px 1px at 20px 30px,
            rgba(255,255,255,.9),
            transparent
        ),
        radial-gradient(
            1px 1px at 80px 120px,
            rgba(255,255,255,.7),
            transparent
        ),
        radial-gradient(
            2px 2px at 180px 80px,
            rgba(56,189,248,.8),
            transparent
        ),
        radial-gradient(
            1px 1px at 300px 200px,
            rgba(255,255,255,.7),
            transparent
        );

    background-size: 350px 250px;

    animation:
        starMove 40s linear infinite;
}


.stars-2 {
    opacity: .45;

    transform: scale(1.5);

    animation-duration: 70s;
}


.stars-3 {
    opacity: .2;

    transform: scale(2);

    animation-duration: 100s;
}


@keyframes starMove {

    from {
        transform:
            translate3d(0,0,0);
    }

    to {
        transform:
            translate3d(250px,180px,0);
    }

}


/* ======================================================
   GLOW
====================================================== */

.glow {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: .2;
}


.glow-blue {
    top: -180px;
    left: -150px;

    background: #2563eb;
}


.glow-purple {
    bottom: -200px;
    right: -150px;

    background: #7c3aed;
}


/* ======================================================
   PAGE
====================================================== */

.loginPage {

    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px 16px;
}


/* ======================================================
   CARD
====================================================== */

.loginCard {

    width: 100%;
    max-width: 460px;

    padding: 34px;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,.92),
            rgba(15,23,42,.72)
        );

    border:
        1px solid
        rgba(255,255,255,.12);

    box-shadow:
        0 30px 80px rgba(0,0,0,.55),
        0 0 80px rgba(37,99,235,.08);

    backdrop-filter:
        blur(22px);

    animation:
        cardEnter .7s ease;
}


@keyframes cardEnter {

    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* ======================================================
   BRAND
====================================================== */

.brand {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 34px;
}


.brandIcon {

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    font-size: 28px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    box-shadow:
        0 12px 30px
        rgba(37,99,235,.3);
}


.brand h1 {

    font-size: 25px;

    font-weight: 900;

    margin-bottom: 4px;
}


.brand p {

    color: var(--muted);

    font-size: 13px;
}


/* ======================================================
   TITLE
====================================================== */

.loginTitle {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 28px;
}


.titleIcon {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        rgba(56,189,248,.1);

    border:
        1px solid
        rgba(56,189,248,.2);

    font-size: 24px;
}


.loginTitle h2 {

    font-size: 23px;

    margin-bottom: 5px;
}


.loginTitle p {

    color: var(--muted);

    font-size: 13px;
}


/* ======================================================
   INPUT
====================================================== */

.inputGroup {

    margin-bottom: 20px;
}


.inputGroup label {

    display: block;

    margin-bottom: 9px;

    font-size: 14px;

    font-weight: 700;

    color: #cbd5e1;
}


.inputBox {

    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 58px;

    padding: 0 16px;

    border-radius: 17px;

    background:
        rgba(2,6,23,.65);

    border:
        1px solid
        rgba(255,255,255,.1);

    transition:
        .25s ease;
}


.inputBox:focus-within {

    border-color:
        rgba(56,189,248,.75);

    box-shadow:
        0 0 0 4px
        rgba(56,189,248,.08),
        0 0 25px
        rgba(56,189,248,.08);
}


.inputBox > span {

    font-size: 20px;

    opacity: .8;
}


.inputBox input {

    width: 100%;

    height: 56px;

    border: none;

    outline: none;

    background: transparent;

    color: white;

    font-size: 15px;

    font-family: inherit;
}


.inputBox input::placeholder {

    color:
        #64748b;
}


.passwordToggle {

    border: none;

    background: transparent;

    color: white;

    cursor: pointer;

    font-size: 18px;

    opacity: .7;

    transition: .2s;
}


.passwordToggle:hover {

    opacity: 1;

    transform: scale(1.1);
}


/* ======================================================
   MESSAGE
====================================================== */

.message {

    min-height: 22px;

    margin:
        4px 0 10px;

    text-align: center;

    font-size: 13px;

    color: var(--danger);

    transition: .25s;
}


.message.success {

    color: var(--success);
}


/* ======================================================
   LOGIN BUTTON
====================================================== */

.loginButton {

    position: relative;

    width: 100%;

    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 17px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    font-family: inherit;

    font-size: 16px;

    font-weight: 900;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 15px 35px
        rgba(37,99,235,.25);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.loginButton::before {

    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.2),
            transparent
        );

    transform: skewX(-20deg);

    transition: .6s;
}


.loginButton:hover::before {

    left: 130%;
}


.loginButton:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 18px 40px
        rgba(37,99,235,.35);
}


.loginButton:active {

    transform:
        translateY(0)
        scale(.98);
}


.loginButton.loading {

    pointer-events: none;

    opacity: .75;
}


.loader {

    display: none;

    width: 20px;
    height: 20px;

    border:
        3px solid
        rgba(255,255,255,.3);

    border-top-color:
        white;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;
}


.loginButton.loading .loader {

    display: block;
}


.loginButton.loading .buttonIcon,
.loginButton.loading .buttonText {

    display: none;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* ======================================================
   REGISTER
====================================================== */

.registerBox {

    margin-top: 25px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(255,255,255,.08);

    text-align: center;

    color: var(--muted);

    font-size: 13px;
}


.registerBox button {

    margin-top: 8px;

    border: none;

    background: transparent;

    color: var(--blue);

    font-family: inherit;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;
}


.registerBox button:hover {

    color: #7dd3fc;

}


/* ======================================================
   BACK
====================================================== */

.backButton {

    display: block;

    margin:
        22px auto 0;

    border: none;

    background: transparent;

    color: #64748b;

    font-family: inherit;

    font-size: 13px;

    cursor: pointer;

    transition: .2s;
}


.backButton:hover {

    color: white;

    transform:
        translateX(3px);
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 520px) {

    .loginPage {

        padding: 18px 12px;
    }


    .loginCard {

        padding: 25px 20px;

        border-radius: 25px;
    }


    .brand {

        margin-bottom: 28px;
    }


    .brandIcon {

        width: 52px;
        height: 52px;
    }


    .brand h1 {

        font-size: 22px;
    }


    .loginTitle h2 {

        font-size: 20px;
    }

}