:root {
    --bg: #07090c;
    --panel: #0b0e12;
    --panel-soft: #101419;
    --gold: #d89b3c;
    --gold-light: #f0bd61;
    --gold-dark: #9f6824;
    --text: #f5f5f3;
    --muted: #a8aaad;
    --line: rgba(216, 155, 60, 0.42);
    --field-line: #353a40;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

button,
input {
    font: inherit;
}


/* ============================================================
   PAGE
   ============================================================ */

.login-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(520px, 0.92fr);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 25% 40%,
            rgba(191, 130, 45, 0.08),
            transparent 34%
        ),
        #07090c;
}


/* ============================================================
   LEFT / EPIC VISUAL
   ============================================================ */

.brand-side {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    border-right:
        1px solid
        rgba(216, 155, 60, 0.16);

    background:
        linear-gradient(
            180deg,
            #06080a 0%,
            #080a0d 100%
        );
}


/*
   EPIC artwork is used only as the decorative visual field.

   The HTML-based duplicate EPIC wordmark was removed from
   login.html, therefore no separate brand-header,
   epic-wordmark or epic-slogan styles are required.
*/

.project-visual {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(7, 9, 12, 0.18) 0%,
            rgba(7, 9, 12, 0.03) 45%,
            rgba(7, 9, 12, 0.20) 100%
        ),
        url("/static/epic-login-final-v2.png")
        left center / auto 100%
        no-repeat;
}


/* ============================================================
   RIGHT / LOGIN
   ============================================================ */

.login-side {
    position: relative;
    z-index: 5;

    min-height: 100vh;

    padding:
        72px
        clamp(36px, 5vw, 78px)
        42px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(15, 18, 22, 0.98),
            rgba(7, 9, 12, 0.99)
        );
}


/* ============================================================
   LANGUAGE SWITCH
   ============================================================ */

.language-switch {
    position: absolute;

    top: 28px;

    right:
        clamp(
            36px,
            5vw,
            78px
        );

    display: flex;

    gap: 28px;
}

.language {
    padding: 8px 2px;

    border: 0;

    border-bottom:
        2px solid
        transparent;

    background:
        transparent;

    color:
        #d4d4d4;

    cursor:
        pointer;
}

.language.active {
    color:
        var(--gold-light);

    border-bottom-color:
        var(--gold-light);
}


/* ============================================================
   LOGIN CARD
   ============================================================ */

.login-card {
    width:
        min(
            100%,
            650px
        );

    padding:
        clamp(
            34px,
            4vw,
            58px
        );

    background:
        linear-gradient(
            145deg,
            rgba(15, 18, 22, 0.94),
            rgba(7, 9, 12, 0.98)
        );

    border:
        1px solid
        var(--line);

    border-radius:
        26px;

    box-shadow:
        0 28px 80px
        rgba(0, 0, 0, 0.34);
}

.login-header h1 {
    margin:
        0 0 10px;

    font-size:
        clamp(
            30px,
            2.6vw,
            42px
        );

    font-weight:
        500;
}

.login-header p {
    margin:
        0 0 38px;

    color:
        #dedede;

    font-size:
        17px;

    line-height:
        1.5;
}


/* ============================================================
   FORM
   ============================================================ */

.login-form {
    display: block;
}

.login-error {
    display: none;

    margin-bottom:
        16px;

    padding:
        11px 14px;

    border:
        1px solid
        rgba(255, 105, 105, 0.35);

    border-radius:
        8px;

    background:
        rgba(255, 80, 80, 0.08);

    color:
        #ff8989;

    font-size:
        14px;
}

.login-error:not(:empty) {
    display: block;
}

.field-group {
    margin-bottom:
        24px;
}

.field-group label {
    display: block;

    margin-bottom:
        10px;

    color:
        var(--gold-light);

    font-size:
        16px;

    font-weight:
        600;
}

.input-shell {
    position:
        relative;
}

.input-shell input {
    display:
        block;

    width:
        100%;

    height:
        60px;

    padding:
        0 58px;

    border:
        1px solid
        var(--field-line);

    border-radius:
        9px;

    outline:
        none;

    background:
        #0b0e12;

    color:
        #ffffff;

    font-size:
        16px;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
}

.input-shell input::placeholder {
    color:
        #85898e;
}

.input-shell input:focus {
    border-color:
        var(--gold);

    background:
        #0d1116;

    box-shadow:
        0 0 0 3px
        rgba(216, 155, 60, 0.10);
}

.input-icon {
    position:
        absolute;

    z-index:
        2;

    left:
        20px;

    top:
        50%;

    transform:
        translateY(-50%);

    color:
        #e6e6e6;

    pointer-events:
        none;
}

.password-toggle {
    position:
        absolute;

    z-index:
        3;

    right:
        8px;

    top:
        50%;

    width:
        48px;

    height:
        48px;

    transform:
        translateY(-50%);

    border:
        0;

    border-radius:
        8px;

    background:
        transparent;

    color:
        #dedede;

    cursor:
        pointer;
}

.password-toggle:hover {
    color:
        var(--gold-light);
}

.forgot-row {
    display:
        flex;

    justify-content:
        flex-end;

    margin:
        -5px 0 24px;
}

.forgot-password {
    border:
        0;

    padding:
        4px 0;

    background:
        transparent;

    color:
        var(--gold-light);

    cursor:
        pointer;
}


/* ============================================================
   LOGIN BUTTON
   ============================================================ */

.login-submit {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        12px;

    width:
        100%;

    height:
        60px;

    border:
        0;

    border-radius:
        8px;

    background:
        linear-gradient(
            90deg,
            #bd7d25 0%,
            #efbd5d 48%,
            #d99831 100%
        );

    color:
        #101010;

    font-size:
        19px;

    font-weight:
        700;

    cursor:
        pointer;

    box-shadow:
        0 10px 30px
        rgba(201, 139, 47, 0.16);

    transition:
        transform 120ms ease,
        filter 120ms ease;
}

.login-submit:hover {
    filter:
        brightness(1.06);
}

.login-submit:active {
    transform:
        translateY(1px);
}

.login-submit:disabled {
    opacity:
        0.72;

    cursor:
        wait;
}


/* ============================================================
   ACCOUNT
   ============================================================ */

.account-section {
    margin-top:
        28px;

    text-align:
        center;
}

.divider {
    display:
        grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items:
        center;

    gap:
        18px;

    color:
        #c9c9c9;
}

.divider span {
    height:
        1px;

    background:
        #4a4d51;
}

.divider em {
    font-style:
        normal;
}

.account-section p {
    margin:
        18px 0 14px;

    color:
        #dddddd;
}

.create-account {
    width:
        100%;

    height:
        56px;

    border:
        1px solid
        rgba(216, 155, 60, 0.62);

    border-radius:
        8px;

    background:
        transparent;

    color:
        var(--gold-light);

    font-size:
        18px;

    opacity:
        0.55;

    cursor:
        not-allowed;
}


/* ============================================================
   DISCOVER
   ============================================================ */

.discover {
    margin-top:
        32px;

    padding-top:
        26px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.discover h2 {
    margin:
        0 0 8px;

    color:
        var(--gold-light);

    font-size:
        18px;
}

.discover p {
    margin:
        0 0 15px;

    color:
        var(--muted);

    line-height:
        1.5;
}

.discover-links {
    display:
        grid;

    gap:
        8px;
}

.discover-links button {
    width:
        max-content;

    max-width:
        100%;

    padding:
        4px 0;

    border:
        0;

    background:
        transparent;

    color:
        var(--gold-light);

    text-align:
        left;

    cursor:
        pointer;
}


/* ============================================================
   FOOTER
   ============================================================ */

.login-footer {
    margin-top:
        32px;

    padding-top:
        24px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.09);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    color:
        #d8d8d8;
}

.login-footer strong {
    color:
        var(--gold-light);

    font-weight:
        600;

    letter-spacing:
        0.06em;
}


/* ============================================================
   TABLET / IPAD
   ============================================================ */

@media (
    max-width: 1180px
) {

    .login-page {
        grid-template-columns:
            minmax(330px, 0.85fr)
            minmax(500px, 1.15fr);
    }

    .login-side {
        padding-left:
            34px;

        padding-right:
            34px;
    }

    .login-card {
        padding:
            36px;
    }
}


/* ============================================================
   PORTRAIT / MOBILE
   ============================================================ */

@media (
    max-width: 820px
) {

    .login-page {
        display:
            block;

        overflow:
            visible;
    }

    .brand-side {
        min-height:
            310px;

        height:
            36vh;

        border-right:
            0;

        border-bottom:
            1px solid
            rgba(216, 155, 60, 0.18);
    }

    .project-visual {
        opacity:
            0.72;

        background-position:
            left center;

        background-size:
            auto 100%;
    }

    .login-side {
        min-height:
            auto;

        padding:
            76px
            18px
            32px;
    }

    .language-switch {
        top:
            22px;

        right:
            24px;
    }

    .login-card {
        width:
            100%;

        padding:
            28px 22px;

        border-radius:
            18px;
    }

    .login-header h1 {
        font-size:
            30px;
    }

    .login-header p {
        margin-bottom:
            28px;

        font-size:
            15px;
    }

    .input-shell input {
        height:
            58px;
    }

    .login-submit {
        height:
            58px;
    }

    .login-footer {
        flex-wrap:
            wrap;
    }
}
