/* ===== LOGIN STEAM PREVIEW V1 ===== */

/*
 * Standalone /login Steam treatment.
 *
 * Visual only.
 *
 * Authentication handlers, redirects, password recovery,
 * password reset and Turnstile behaviour remain unchanged.
 */


/* ============================================================
   1. FULL-WIDTH PAGE SURFACE
   ============================================================ */

.auth-login-steam-page {
    position: relative;

    left: 50%;

    width: 100vw;
    margin-left: -50vw;

    box-sizing: border-box;

    min-height: 650px;

    padding:
        54px
        24px
        72px;

    color:
        #c7d5e0;

    /* Page canvas comes from the shared /rooms background. */
    background:
        transparent;
}


/* ============================================================
   2. LOGIN SHELL
   ============================================================ */

.auth-login-steam-page
.auth-login {
    width:
        100%;

    max-width:
        none;

    margin:
        0;

    padding:
        0;

    color:
        #c7d5e0;
}


.auth-login-steam-page
.auth-login__card {
    box-sizing:
        border-box;

    width:
        calc(100% - 32px);

    max-width:
        500px;

    margin:
        0 auto;

    padding:
        26px;

    color:
        #c7d5e0;

    background:
        linear-gradient(
            180deg,
            rgba(31, 54, 73, 0.98) 0%,
            rgba(24, 43, 58, 0.98) 100%
        );

    border:
        1px solid
        #35566d;

    border-radius:
        2px;

    box-shadow:
        0 18px 42px
        rgba(0, 0, 0, 0.30);
}


/* ============================================================
   3. PANELS / TYPOGRAPHY
   ============================================================ */

.auth-login-steam-page
.auth-login__panel {
    color:
        #c7d5e0;
}


.auth-login-steam-page
.auth-login__header {
    margin-bottom:
        22px;
}


.auth-login-steam-page
.auth-login__title {
    margin:
        0 0 7px;

    color:
        #ffffff;

    font-weight:
        400;

    line-height:
        1.18;

    letter-spacing:
        -0.01em;
}


.auth-login-steam-page
.auth-login__intro {
    margin:
        0;

    color:
        #8f98a0;

    line-height:
        1.5;
}


/* ============================================================
   4. LOGOUT / ERROR STATUS
   ============================================================ */

.auth-login-steam-page
.auth-login__alert {
    box-sizing:
        border-box;

    margin:
        0 0 22px;

    padding:
        11px 13px;

    color:
        #c7d5e0;

    background:
        #152738;

    border:
        1px solid
        #35566d;

    border-left:
        3px solid
        #66c0f4;

    border-radius:
        1px;

    line-height:
        1.4;
}


.auth-login-steam-page
.auth-login__alert.is-success {
    color:
        #c7d5e0;

    background:
        #152738;

    border-color:
        #35566d;

    border-left-color:
        #66c0f4;
}


.auth-login-steam-page
.auth-login__alert.is-error {
    color:
        #e6b8b8;

    background:
        #2a1a1d;

    border-color:
        #74434b;

    border-left-color:
        #d45f67;
}


/* ============================================================
   5. FORM / LABELS
   ============================================================ */

.auth-login-steam-page
.auth-login__form {
    margin:
        0;
}


.auth-login-steam-page
.auth-login__field {
    margin-bottom:
        18px;
}


.auth-login-steam-page
.auth-login__label-row {
    color:
        #c7d5e0;
}


.auth-login-steam-page
.auth-login__label {
    color:
        #d6e0e8;

    font-weight:
        600;
}


.auth-login-steam-page
.auth-login__hint {
    color:
        #8f98a0;
}


/* ============================================================
   6. INPUTS
   ============================================================ */

.auth-login-steam-page
.auth-login__input {
    box-sizing:
        border-box;

    width:
        100%;

    min-height:
        44px;

    padding:
        9px 11px;

    color:
        #dfe8ef;

    caret-color:
        #66c0f4;

    background:
        #101822;

    border:
        1px solid
        #35566d;

    border-radius:
        1px;

    outline:
        none;

    box-shadow:
        inset 0 1px 4px
        rgba(0, 0, 0, 0.34);

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


.auth-login-steam-page
.auth-login__input:hover {
    border-color:
        #4d7895;
}


.auth-login-steam-page
.auth-login__input:focus {
    color:
        #ffffff;

    background:
        #0d1720;

    border-color:
        #66c0f4;

    box-shadow:
        0 0 0 1px
        rgba(102, 192, 244, 0.26),
        inset 0 1px 4px
        rgba(0, 0, 0, 0.34);
}


.auth-login-steam-page
.auth-login__input::placeholder {
    color:
        #6f7f8c;
}


/* ============================================================
   7. FIELD ERRORS
   ============================================================ */

.auth-login-steam-page
.auth-login__field-error {
    color:
        #e58a91;
}


/* ============================================================
   8. LINKS
   ============================================================ */

.auth-login-steam-page
.text-link,
.auth-login-steam-page
.auth-login__forgot,
.auth-login-steam-page
.auth-login__back {
    color:
        #66c0f4;

    text-decoration:
        none;
}


.auth-login-steam-page
.text-link:hover,
.auth-login-steam-page
.text-link:focus-visible,
.auth-login-steam-page
.auth-login__forgot:hover,
.auth-login-steam-page
.auth-login__forgot:focus-visible,
.auth-login-steam-page
.auth-login__back:hover,
.auth-login-steam-page
.auth-login__back:focus-visible {
    color:
        #ffffff;

    text-decoration:
        underline;
}


/* ============================================================
   9. TURNSTILE
   ============================================================ */

.auth-login-steam-page
.auth-login__turnstile {
    margin-top:
        2px;

    margin-bottom:
        20px;

    max-width:
        100%;

    overflow:
        hidden;
}


.auth-login-steam-page
.auth-login__turnstile
.cf-turnstile {
    max-width:
        100%;
}


/* ============================================================
   10. PRIMARY ACTION
   ============================================================ */

.auth-login-steam-page
.auth-login__actions {
    margin-top:
        4px;
}


.auth-login-steam-page
.auth-login__submit {
    box-sizing:
        border-box;

    width:
        100%;

    min-height:
        44px;

    padding:
        0 18px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        #ffffff;

    font-weight:
        700;

    background:
        linear-gradient(
            90deg,
            #47bfff 0%,
            #1a9fff 100%
        );

    border:
        1px solid
        #67c1f5;

    border-radius:
        1px;

    box-shadow:
        0 0 8px
        rgba(26, 159, 255, 0.20);

    cursor:
        pointer;
}


.auth-login-steam-page
.auth-login__submit:hover,
.auth-login-steam-page
.auth-login__submit:focus-visible {
    color:
        #ffffff;

    background:
        linear-gradient(
            90deg,
            #67c1f5 0%,
            #2aa8f2 100%
        );

    border-color:
        #8ad4ff;

    text-decoration:
        none;
}


.auth-login-steam-page
.auth-login__submit:disabled,
.auth-login-steam-page
.auth-login__submit[data-attach-loading].oc-loading {
    opacity:
        0.55;

    cursor:
        default;
}


/* ============================================================
   11. ACCOUNT SWITCH
   ============================================================ */

.auth-login-steam-page
.auth-login__switch {
    margin:
        22px 0 0;

    padding-top:
        18px;

    color:
        #8f98a0;

    text-align:
        center;

    border-top:
        1px solid
        rgba(103, 143, 171, 0.28);
}


/* ============================================================
   12. PASSWORD RECOVERY / RESET
   ============================================================ */

.auth-login-steam-page
.auth-login__panel[hidden] {
    display:
        none
        !important;
}


/* ============================================================
   13. RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {

    .auth-login-steam-page {
        min-height:
            0;

        padding:
            28px
            12px
            42px;
    }


    .auth-login-steam-page
    .auth-login__card {
        width:
            100%;

        max-width:
            100%;

        padding:
            20px 16px;
    }


    .auth-login-steam-page
    .auth-login__title {
        font-size:
            26px;
    }


    .auth-login-steam-page
    .auth-login__field {
        margin-bottom:
            16px;
    }

}

/* ===== END LOGIN STEAM PREVIEW V1 ===== */


/* ===== LOGIN STEAM LAYOUT / TURNSTILE POLISH V2 ===== */

/*
 * /login uses the normal site-main shell.
 *
 * Global site-main spacing produces the light strips above and
 * below the Steam surface. Remove that spacing only when the
 * Login Steam page is present.
 *
 * The normal .container width/padding is also unnecessary here:
 * the Login surface itself owns the full-width background.
 */


/* ============================================================
   1. REMOVE OUTER LIGHT STRIPS
   ============================================================ */

body:has(.auth-login-steam-page)
.site-main {
    padding-top:
        0
        !important;

    padding-bottom:
        0
        !important;
}


/*
 * Allow the Login surface to fill the complete main viewport
 * without the normal content container gutters.
 */

body:has(.auth-login-steam-page)
.site-main
> .container {
    box-sizing:
        border-box;

    width:
        100%;

    max-width:
        none;

    margin-left:
        0;

    margin-right:
        0;

    padding-left:
        0;

    padding-right:
        0;
}


/* ============================================================
   2. REMOVE OLD 100VW BREAKOUT
   ============================================================ */

/*
 * The parent container is now genuinely full width, so the
 * previous 100vw breakout is no longer required.
 *
 * This also removes the horizontal scrollbar caused by 100vw
 * including the browser scrollbar width.
 */

.auth-login-steam-page {
    left:
        auto;

    width:
        100%;

    margin-left:
        0;

    margin-right:
        0;
}


/* ============================================================
   3. TURNSTILE STEAM EDGE
   ============================================================ */

/*
 * Cloudflare renders its challenge inside a cross-origin iframe,
 * so its internal pixels cannot be restyled directly.
 *
 * Keep the official dark widget, clip its outer edge and overlay
 * the same subtle border used by our Steam inputs/cards.
 */

.auth-login-steam-page
.auth-login__turnstile
.cf-turnstile {
    position:
        relative;

    box-sizing:
        border-box;

    max-width:
        100%;

    overflow:
        hidden;

    background:
        #101822;

    border-radius:
        1px;
}


/*
 * Overlay only. pointer-events:none means the Turnstile remains
 * completely clickable.
 */

.auth-login-steam-page
.auth-login__turnstile
.cf-turnstile::after {
    content:
        "";

    position:
        absolute;

    z-index:
        2;

    inset:
        0;

    box-sizing:
        border-box;

    pointer-events:
        none;

    border:
        1px solid
        #35566d;

    border-radius:
        1px;

    box-shadow:
        inset 0 0 0 1px
        rgba(53, 86, 109, 0.30);
}


.auth-login-steam-page
.auth-login__turnstile
iframe {
    display:
        block;

    max-width:
        100%;

    border:
        0
        !important;
}


/* ===== END LOGIN STEAM LAYOUT / TURNSTILE POLISH V2 ===== */

/* ===== LOGIN TURNSTILE EDGE MASK V8 ===== */

/*
 * Cloudflare's dark Turnstile contains its own light native
 * frame inside the rendered widget.
 *
 * Do not crop the widget.
 *
 * The external shell now paints our Steam edge ON TOP of the
 * Cloudflare edge. This hides the native light line on all four
 * sides without touching the challenge content.
 */

.auth-login-steam-page
.auth-login__turnstile-shell {
    position:
        relative;

    box-sizing:
        border-box;

    width:
        100%;

    max-width:
        100%;

    overflow:
        hidden;

    background:
        #2b2b2b;

    border:
        0;

    border-radius:
        1px;
}


.auth-login-steam-page
.auth-login__turnstile-shell
.cf-turnstile {
    position:
        relative;

    z-index:
        1;

    display:
        block;

    width:
        100%;

    max-width:
        100%;

    margin:
        0;

    background:
        #2b2b2b;

    -webkit-clip-path:
        none
        !important;

    clip-path:
        none
        !important;
}


/*
 * Disable the older host overlay.
 * The shell owns the final visible edge now.
 */
.auth-login-steam-page
.auth-login__turnstile-shell
.cf-turnstile::after {
    content:
        none
        !important;

    display:
        none
        !important;
}


/*
 * Important:
 *
 * This is an OVERLAY, not another outside border.
 *
 * 2px paints inward over Cloudflare's native light frame.
 * pointer-events:none keeps the challenge fully interactive.
 */
.auth-login-steam-page
.auth-login__turnstile-shell::after {
    content:
        "";

    position:
        absolute;

    z-index:
        20;

    /*
     * Top / right / left stay exactly where they are.
     * Raise only the bottom edge by 4px so it covers
     * Cloudflare's native light bottom line.
     */
    inset:
        0
        0
        4px
        0;

    box-sizing:
        border-box;

    pointer-events:
        none;

    border:
        2px solid
        #35566d;

    border-radius:
        1px;
}


/*
 * Completely neutralize all previous iframe clipping.
 */
.auth-login-steam-page
.auth-login__turnstile-shell
.cf-turnstile iframe {
    -webkit-clip-path:
        none
        !important;

    clip-path:
        none
        !important;

    border:
        0
        !important;
}

/* ===== END LOGIN TURNSTILE EDGE MASK V8 ===== */

/* ===== REMOVE CUSTOM TURNSTILE OUTLINE V10 ===== */

/*
 * Cloudflare keeps its native widget rendering.
 *
 * Remove all custom MTT Clubs outline overlays around Turnstile.
 * This intentionally does NOT alter or crop the Cloudflare iframe.
 */

.auth-login-steam-page
.auth-login__turnstile-shell::after,

.auth-login-steam-page
.auth-login__turnstile
.cf-turnstile::after {
    content:
        none
        !important;

    display:
        none
        !important;

    border:
        0
        !important;

    box-shadow:
        none
        !important;
}


/*
 * The external shell itself must also have no visible border.
 */
.auth-login-steam-page
.auth-login__turnstile-shell {
    border:
        0
        !important;

    outline:
        0
        !important;

    box-shadow:
        none
        !important;
}

/* ===== END REMOVE CUSTOM TURNSTILE OUTLINE V10 ===== */

/* ===== TURNSTILE NATIVE WHITE EDGE MASK V11 ===== */

/*
 * The remaining thin white frame is rendered inside
 * Cloudflare's cross-origin Turnstile iframe.
 *
 * It cannot be restyled directly.
 *
 * Cover only the outermost native pixels with the exact
 * Turnstile dark background. No blue/custom outline.
 * The challenge content itself remains untouched.
 */

.auth-login-steam-page
.auth-login__turnstile-shell {
    position:
        relative;

    overflow:
        hidden;

    background:
        #2b2b2b;
}


.auth-login-steam-page
.auth-login__turnstile-shell::after {
    content:
        ""
        !important;

    display:
        block
        !important;

    position:
        absolute;

    z-index:
        50;

    inset:
        0;

    box-sizing:
        border-box;

    pointer-events:
        none;

    border:
        0
        !important;

    outline:
        0
        !important;

    background:
        transparent;

    /*
     * Paint 3px inward over Cloudflare's own white frame.
     */
    box-shadow:
        inset 0 0 0 3px #2b2b2b
        !important;
}

/* ===== END TURNSTILE NATIVE WHITE EDGE MASK V11 ===== */






/* ===== TURNSTILE NATIVE EDGE COVER V13 ===== */

/*
 * Cloudflare renders its own light frame inside the
 * cross-origin Turnstile iframe.
 *
 * We cannot recolor that internal frame directly.
 *
 * Cover only the outermost 2px on ALL FOUR SIDES using
 * a real DOM sibling above the iframe.
 *
 * This is NOT a visible custom border:
 * it simply paints over Cloudflare's native light edge
 * with the same dark color as the widget.
 */

.auth-login-steam-page
.auth-login__turnstile-shell {
    position:
        relative;

    overflow:
        hidden;

    border:
        0
        !important;

    outline:
        0
        !important;

    box-shadow:
        none
        !important;

    background:
        #2b2b2b;
}


/*
 * Disable every older pseudo-element overlay.
 */
.auth-login-steam-page
.auth-login__turnstile-shell::after,
.auth-login-steam-page
.auth-login__turnstile
.cf-turnstile::after {
    content:
        none
        !important;

    display:
        none
        !important;

    border:
        0
        !important;

    outline:
        0
        !important;

    box-shadow:
        none
        !important;
}


/*
 * Keep Cloudflare itself untouched.
 */
.auth-login-steam-page
.auth-login__turnstile-shell
.cf-turnstile,
.auth-login-steam-page
.auth-login__turnstile-shell
.cf-turnstile iframe {
    border:
        0
        !important;

    outline:
        0
        !important;

    -webkit-clip-path:
        none
        !important;

    clip-path:
        none
        !important;
}


/*
 * Real overlay.
 *
 * Full-size transparent layer with a 2px INSET shadow.
 * Therefore:
 *
 * - top:    2px covered
 * - right:  2px covered
 * - bottom: 2px covered
 * - left:   2px covered
 *
 * There is no 8px solid bar anymore.
 */
.auth-login-steam-page
.auth-login__turnstile-bottom-mask {
    display:
        block
        !important;

    position:
        absolute;

    z-index:
        100;

    left:
        0;

    right:
        0;

    bottom:
        0;

    top:
        auto;

    width:
        auto
        !important;

    height:
        4px
        !important;

    pointer-events:
        none;

    /*
     * Same visual colour as the Login form surface
     * at the Turnstile bottom edge.
     *
     * This covers Cloudflare's remaining native
     * white bottom line instead of trying to restyle it.
     */
    background:
        #192e3e
        !important;

    border:
        0
        !important;

    outline:
        0
        !important;

    box-shadow:
        none
        !important;
}

/* ===== END TURNSTILE NATIVE EDGE COVER V13 ===== */
/* ===== LOGIN PASSWORD LABEL ROW GAP V16 ===== */

/*
 * Email uses:
 *
 *     label -> input
 *
 * Password uses:
 *
 *     label-row -> input
 *
 * The label-row adds an extra vertical offset on top of the
 * normal label spacing. Remove only that extra row offset so
 * Password -> input matches Email address -> input.
 */
.auth-login-steam-page
[data-auth-login-form]
.auth-login__label-row {
    margin-bottom:
        0
        !important;
}

/* ===== END LOGIN PASSWORD LABEL ROW GAP V16 ===== */

/* ===== LOGIN INPUT VERTICAL ALIGN V17 ===== */

/*
 * Final optical alignment of the two Login inputs.
 *
 * Email goes 2px lower.
 * Password goes 2px higher.
 *
 * transform is intentional:
 * it changes only the visual position of the inputs and does
 * not alter the vertical rhythm of the rest of the Login card.
 */
/* ===== VERIFY EMAIL STEAM CARD V1 ===== */

/*
 * /verify-email reuses the Login card and primary button.
 * Resend stays primary. Log out is a compact secondary action.
 */

.auth-login-steam-page
.auth-verify__email {
    display:
        block;

    margin-top:
        6px;

    color:
        #ffffff;

    font-weight:
        600;

    overflow-wrap:
        anywhere;

    word-break:
        break-word;
}


.auth-login-steam-page
.auth-verify
.auth-login__intro
+ .auth-login__intro {
    margin-top:
        12px;
}


.auth-login-steam-page
.auth-verify__hint,
.auth-login-steam-page
.auth-verify__footer {
    color:
        #8f98a0;
}


.auth-login-steam-page
.auth-verify__footer {
    margin:
        18px 0 0;
}


.auth-login-steam-page
.auth-verify__actions {
    display:
        -webkit-box;

    display:
        -webkit-flex;

    display:
        -ms-flexbox;

    display:
        flex;

    -webkit-flex-wrap:
        wrap;

    -ms-flex-wrap:
        wrap;

    flex-wrap:
        wrap;

    margin:
        4px -6px 0;
}


.auth-login-steam-page
.auth-verify__actions
> .auth-login__submit {
    width:
        auto;

    -webkit-box-flex:
        1;

    -webkit-flex:
        1 1 11rem;

    -ms-flex:
        1 1 11rem;

    flex:
        1 1 11rem;

    margin:
        0 6px 12px;
}


.auth-login-steam-page
.auth-login__submit--secondary {
    color:
        #c7d5e0;

    font-weight:
        600;

    background:
        rgba(21, 39, 56, 0.55);

    border:
        1px solid
        #35566d;

    border-radius:
        1px;

    box-shadow:
        none;
}


.auth-login-steam-page
.auth-login__submit--secondary:hover,
.auth-login-steam-page
.auth-login__submit--secondary:focus-visible {
    color:
        #ffffff;

    background:
        rgba(31, 54, 73, 0.92);

    border-color:
        #4a7a9a;

    text-decoration:
        none;
}


@media (max-width: 640px) {

    .auth-login-steam-page
    .auth-verify__actions
    > .auth-login__submit {
        -webkit-flex-basis:
            100%;

        -ms-flex-preferred-size:
            100%;

        flex-basis:
            100%;
    }

}

/* ===== END VERIFY EMAIL STEAM CARD V1 ===== */


.auth-login-steam-page
[data-auth-login-form]
#auth-login-email {
    transform:
        translateY(2px);
}

.auth-login-steam-page
[data-auth-login-form]
#auth-login-password {
    transform:
        translateY(-2px);
}

/* ===== END LOGIN INPUT VERTICAL ALIGN V17 ===== */
