/* =========================================
   LOGIN PAGE
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-page {

    min-height: 100vh;

    padding: 2rem 0;

    position: relative;

    overflow-x: hidden;
    overflow-y: auto;

    background-image:

        linear-gradient(
            90deg,
            rgba(5, 10, 35, 0.88) 0%,
            rgba(18, 45, 130, 0.62) 38%,
            rgba(70, 90, 255, 0.34) 68%,
            rgba(200, 120, 255, 0.26) 100%
        ),

        url("../sprites/login_bkg3.png");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Arial, sans-serif;
}

/* =========================================
   HOME BUTTON
========================================= */

.login-home-button {

    position: fixed;

    top: 24px;
    left: 24px;

    width: 54px;
    height: 54px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    color: white;

    font-size: 1.3rem;

    z-index: 50;

    backdrop-filter: blur(10px);

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.14);

    transition:
        background 0.25s,
        transform 0.25s;
}

.login-home-button:hover {

    background: rgba(255,255,255,0.1);

    transform: translateY(-2px);
}

/* =========================================
   MAIN WRAPPER
========================================= */

.login-wrapper {

    width: 100%;

    max-width: 1350px;

    padding: 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 4rem;

    position: relative;

    z-index: 10;
}

/* =========================================
   LEFT SIDE
========================================= */

.login-left {

    color: rgba(255,255,255,0.08);

    user-select: none;
}

.login-left h1 {

    font-size: clamp(4rem, 9vw, 7rem);

    line-height: 0.88;

    font-weight: 800;
}

.login-left p {

    margin-top: 1.5rem;

    font-size: 1.2rem;

    letter-spacing: 0.25em;

    color: rgba(73,216,255,0.45);
}

/* =========================================
   LOGIN CARD
========================================= */

.login-card {

    width: 100%;
    max-width: 460px;

    padding: 2rem;

    border-radius: 28px;

    position: relative;

    background:
        linear-gradient(
            180deg,
            rgba(18, 38, 95, 0.82),
            rgba(10, 28, 78, 0.88)
        );

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.42),
        0 12px 30px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* =========================================
   TITLES
========================================= */

.login-welcome {

    color: #49d8ff;

    letter-spacing: 0.3em;

    font-size: 0.85rem;

    margin-bottom: 1rem;
}

.login-card h2 {

    color: white;

    font-size: clamp(2.8rem, 7vw, 4.5rem);

    line-height: 1;

    margin-bottom: 1rem;

    font-weight: 700;
}

.login-subtitle {

    color: rgba(255,255,255,0.72);

    margin-bottom: 1.5rem;

    font-size: 1rem;

    line-height: 1.5;
}

/* =========================================
   FORM
========================================= */

.login-form {

    display: flex;
    flex-direction: column;

    gap: 0.9rem;
}

.login-input-group input {

    width: 100%;

    padding: 0.95rem 1rem;

    border-radius: 14px;

    background: rgba(0,0,0,0.16);

    border: 1px solid rgba(255,255,255,0.04);

    color: white;

    font-size: 1rem;

    outline: none;

    transition:
        border 0.25s,
        box-shadow 0.25s,
        background 0.25s;
}

.login-input-group input::placeholder {

    color: rgba(255,255,255,0.45);
}

.login-input-group input:focus {

    border-color: rgba(73,216,255,0.6);

    background: rgba(255,255,255,0.05);

    box-shadow: 0 0 24px rgba(73,216,255,0.12);
}

/* =========================================
   BUTTON
========================================= */

.login-button {

    margin-top: 0.7rem;

    border: none;

    padding: 1rem;

    border-radius: 14px;

    cursor: pointer;

    font-size: 1rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    color: white;

    background:
        linear-gradient(
            90deg,
            #0b6dff,
            #22cfff
        );

    box-shadow:
        0 10px 25px rgba(0,0,0,0.22);

    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.login-button:hover {

    transform: translateY(-2px);

    box-shadow: 0 0 35px rgba(34,207,255,0.25);
}

/* =========================================
   REGISTER LINK
========================================= */

.login-register {

    margin-top: 1.2rem;

    text-align: center;

    color: rgba(255,255,255,0.65);

    font-size: 0.95rem;
}

.login-register a {

    color: #49d8ff;

    text-decoration: none;

    margin-left: 0.35rem;
}

.login-register a:hover {

    text-decoration: underline;
}

/* =========================================
   ERROR
========================================= */

.login-error {

    margin-bottom: 1.2rem;

    padding: 1rem;

    border-radius: 14px;

    background: rgba(255, 0, 0, 0.08);

    border: 1px solid rgba(255, 0, 0, 0.15);

    color: #ffb7b7;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .login-wrapper {

        justify-content: center;
    }

    .login-left {

        display: none;
    }
}

@media (max-width: 600px) {

    .login-page {

        padding: 1rem 0;
    }

    .login-wrapper {

        padding: 1rem;
    }

    .login-card {

        padding: 1.5rem;
    }

    .login-card h2 {

        font-size: 3rem;
    }

    .login-home-button {

        top: 14px;
        left: 14px;

        width: 46px;
        height: 46px;
    }
}

@media (max-height: 850px) {

    .login-page {

        align-items: flex-start;
    }

    .login-wrapper {

        padding-top: 5rem;
        padding-bottom: 3rem;
    }
}