/* ======================================================
   FORGE WORKSPACE — LOGIN
   Hero + Access Panel
====================================================== */


/* ======================================================
   PAGE
====================================================== */

.fw-login-page {
    width: 100%;
    min-height: calc(100vh - 72px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 64px 24px 100px;

    box-sizing: border-box;
}


/* ======================================================
   SHELL
====================================================== */

.fw-login-shell {
    width: 100%;
    max-width: 820px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 26px;

    background:
        linear-gradient(
            160deg,
            rgba(19, 21, 29, 0.98),
            rgba(10, 12, 16, 0.99)
        );

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.32);
}


/* ======================================================
   HERO
====================================================== */

.fw-login-hero {
    position: relative;

    width: 100%;
    height: 410px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 65%,
            rgba(213, 170, 75, 0.10),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #11141b,
            #0c0e13
        );

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}


/* ======================================================
   HERO GLOW
====================================================== */

.fw-login-hero-glow {
    position: absolute;

    left: 50%;
    bottom: 5%;

    width: 420px;
    height: 220px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(221, 177, 76, 0.15),
            rgba(139, 112, 255, 0.05) 45%,
            transparent 72%
        );

    filter: blur(22px);

    pointer-events: none;
}


/* ======================================================
   HERO IMAGE
====================================================== */

.fw-login-hero-image {
    position: absolute;

    left: 50%;
    bottom: 0;

    transform:
        translateX(-50%);

    width: auto;
    height: 96%;

    max-width: 96%;

    object-fit: contain;
    object-position: center bottom;

    display: block;

    z-index: 2;
}


/* ======================================================
   HERO COPY
====================================================== */

.fw-login-hero-copy {
    position: absolute;

    left: 28px;
    top: 28px;

    z-index: 3;

    display: flex;
    flex-direction: column;

    gap: 4px;
}


.fw-login-hero-kicker {
    color: #8b70ff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.fw-login-hero-copy strong {
    color: rgba(255, 255, 255, 0.92);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: -0.01em;
}


.fw-login-hero-copy small {
    color: rgba(255, 255, 255, 0.35);

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 0.10em;
    text-transform: uppercase;
}


/* ======================================================
   LOGIN PANEL
====================================================== */

.fw-login-panel {
    width: 100%;

    box-sizing: border-box;

    padding:
        42px
        64px
        38px;

    background:
        linear-gradient(
            180deg,
            rgba(15, 17, 23, 0.98),
            rgba(12, 14, 18, 0.99)
        );
}


/* ======================================================
   HEADER
====================================================== */

.fw-login-header {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 32px;
}


/* ======================================================
   MARK
====================================================== */

.fw-login-mark {
    flex: 0 0 auto;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border:
        1px solid rgba(139, 112, 255, 0.58);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(139, 112, 255, 0.15),
            rgba(139, 112, 255, 0.04)
        );

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.08em;
}


/* ======================================================
   HEADER COPY
====================================================== */

.fw-login-header > div {
    min-width: 0;
}


.fw-login-header .fw-kicker {
    margin:
        0
        0
        7px;

    color: #8b70ff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}


.fw-login-header h1 {
    margin: 0;

    color: #ffffff;

    font-size: 34px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: -0.04em;
}


.fw-login-header p:last-child {
    margin:
        10px
        0
        0;

    color: #8190a7;

    font-size: 12px;
    line-height: 1.5;
}


/* ======================================================
   ERROR
====================================================== */

.fw-login-error {
    margin-bottom: 24px;

    padding:
        13px
        15px;

    border:
        1px solid rgba(255, 91, 116, 0.35);

    border-radius: 11px;

    background:
        rgba(255, 91, 116, 0.07);

    color: #ff879a;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.5;
}


/* ======================================================
   FORM
====================================================== */

.fw-login-form {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        auto;

    gap: 14px;

    align-items: end;
}


/* ======================================================
   FIELD
====================================================== */

.fw-login-field {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 8px;
}


.fw-login-field label {
    color: #8d9ab0;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.fw-login-field input {
    width: 100%;
    height: 50px;

    box-sizing: border-box;

    padding:
        0
        15px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 11px;

    background: #101319;

    color: #ffffff;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


.fw-login-field input::placeholder {
    color: #4f5969;
}


.fw-login-field input:hover {
    border-color:
        rgba(255, 255, 255, 0.18);
}


.fw-login-field input:focus {
    border-color:
        rgba(139, 112, 255, 0.78);

    background: #12151d;

    box-shadow:
        0 0 0 3px
        rgba(139, 112, 255, 0.09);
}


/* ======================================================
   ACTION
====================================================== */

.fw-login-actions {
    display: flex;
    align-items: flex-end;
}


.fw-login-submit {
    min-width: 120px;
    height: 50px;

    box-sizing: border-box;

    padding:
        0
        24px;

    border:
        1px solid rgba(139, 112, 255, 0.65);

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(139, 112, 255, 0.22),
            rgba(139, 112, 255, 0.13)
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.09em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.fw-login-submit:hover {
    border-color:
        rgba(139, 112, 255, 0.95);

    background:
        linear-gradient(
            145deg,
            rgba(139, 112, 255, 0.34),
            rgba(139, 112, 255, 0.20)
        );

    box-shadow:
        0 8px 28px
        rgba(100, 77, 220, 0.12);

    transform:
        translateY(-1px);
}


.fw-login-submit:active {
    transform:
        translateY(0);
}


/* ======================================================
   FOOTER
====================================================== */

.fw-login-footer {
    margin-top: 30px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.fw-login-footer span {
    color: #8b70ff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}


.fw-login-footer small {
    color: #566174;

    font-size: 9px;
    line-height: 1.5;
}


/* ======================================================
   TABLET
====================================================== */

@media (
    max-width: 820px
) {

    .fw-login-page {
        padding:
            42px
            20px
            80px;
    }


    .fw-login-shell {
        max-width: 680px;
    }


    .fw-login-hero {
        height: 350px;
    }


    .fw-login-panel {
        padding:
            38px
            40px
            34px;
    }


    .fw-login-form {
        grid-template-columns:
            1fr
            1fr;
    }


    .fw-login-actions {
        grid-column:
            1 / -1;
    }


    .fw-login-submit {
        width: 100%;
    }

}


/* ======================================================
   MOBILE
====================================================== */

@media (
    max-width: 600px
) {

    .fw-login-page {
        align-items: flex-start;

        padding:
            24px
            14px
            60px;
    }


    .fw-login-shell {
        border-radius: 20px;
    }


    .fw-login-hero {
        height: 290px;
    }


    .fw-login-hero-image {
        height: 92%;
        max-width: 100%;
    }


    .fw-login-hero-copy {
        left: 18px;
        top: 18px;
    }


    .fw-login-panel {
        padding:
            30px
            24px
            28px;
    }


    .fw-login-header {
        align-items: flex-start;

        gap: 14px;

        margin-bottom: 28px;
    }


    .fw-login-mark {
        width: 44px;
        height: 44px;

        border-radius: 12px;
    }


    .fw-login-header h1 {
        font-size: 29px;
    }


    .fw-login-form {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .fw-login-actions {
        grid-column: auto;
    }


    .fw-login-submit {
        width: 100%;
    }


    .fw-login-footer {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }

}


/* ======================================================
   SMALL MOBILE
====================================================== */

@media (
    max-width: 400px
) {

    .fw-login-hero {
        height: 250px;
    }


    .fw-login-panel {
        padding:
            26px
            18px;
    }


    .fw-login-header h1 {
        font-size: 27px;
    }

}