/* ===== REGISTER STEAM PREVIEW V1 ===== */

/*
 * Standalone /register Steam treatment.
 *
 * Visual only.
 *
 * Registration handler, validation, intended redirect,
 * profile fields and Turnstile workflow remain unchanged.
 */


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

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

    left:
        50%;

    width:
        100vw;

    max-width:
        none;

    margin-left:
        -50vw;

    box-sizing:
        border-box;

    padding:
        54px
        24px
        72px;

    color:
        #c7d5e0;

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


/* ============================================================
   2. REGISTER CARD
   ============================================================ */

.auth-register-steam-page
.auth-register__card {
    box-sizing:
        border-box;

    width:
        calc(100% - 32px);

    max-width:
        680px;

    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. HEADER / TYPOGRAPHY
   ============================================================ */

.auth-register-steam-page
.auth-register__header {
    margin:
        0 0 22px;
}


.auth-register-steam-page
.auth-register__title {
    margin:
        0 0 7px;

    color:
        #ffffff;

    font-weight:
        400;

    line-height:
        1.18;

    letter-spacing:
        -0.01em;
}


.auth-register-steam-page
.auth-register__intro {
    margin:
        0;

    color:
        #8f98a0;

    line-height:
        1.5;
}


/* ============================================================
   4. FORM RHYTHM
   ============================================================ */

.auth-register-steam-page
.auth-register__form {
    margin:
        0;
}


.auth-register-steam-page
.auth-register__field {
    min-width:
        0;

    margin:
        0 0 18px;
}


.auth-register-steam-page
.auth-register__row {
    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        16px;

    margin:
        0 0 18px;
}


.auth-register-steam-page
.auth-register__row
> .auth-register__field {
    margin:
        0;

    min-width:
        0;
}


/* ============================================================
   5. LABELS / HINTS
   ============================================================ */

.auth-register-steam-page
.auth-register__label {
    display:
        block;

    margin:
        0 0 8px;

    color:
        #d6e0e8;

    font-weight:
        600;
}


.auth-register-steam-page
.auth-register__hint {
    margin:
        8px 0 0;

    color:
        #8f98a0;

    line-height:
        1.4;
}


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

.auth-register-steam-page
.auth-register__input,
.auth-register-steam-page
.auth-register__select {
    display:
        block;

    box-sizing:
        border-box;

    width:
        100%;

    min-height:
        44px;

    padding:
        9px 11px;

    color:
        #dfe8ef;

    caret-color:
        #66c0f4;

    background-color:
        #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-register-steam-page
.auth-register__input:hover,
.auth-register-steam-page
.auth-register__select:hover {
    border-color:
        #4d7895;
}


.auth-register-steam-page
.auth-register__input:focus,
.auth-register-steam-page
.auth-register__select:focus,
.auth-register-steam-page
.auth-register__input:focus-visible,
.auth-register-steam-page
.auth-register__select:focus-visible {
    color:
        #ffffff;

    background-color:
        #0d1720;

    border-color:
        #66c0f4;

    outline:
        none;

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


.auth-register-steam-page
.auth-register__input::placeholder {
    color:
        #6f7f8c;
}


/*
 * Keep the native select indicator while giving the control
 * the same dark Steam surface as the text fields.
 */
.auth-register-steam-page
.auth-register__select {
    cursor:
        pointer;

    color-scheme:
        dark;
}


/* ============================================================
   7. TURNSTILE
   ============================================================ */

.auth-register-steam-page
.auth-register__turnstile {
    position:
        relative;

    margin:
        0 0 18px;
}


.auth-register-steam-page
.auth-register__turnstile
.cf-turnstile {
    display:
        block;

    width:
        100%;

    max-width:
        100%;

    margin:
        0;
}


/* ============================================================
   8. CREATE ACCOUNT BUTTON
   ============================================================ */

.auth-register-steam-page
.auth-register__actions {
    margin:
        0;
}


.auth-register-steam-page
.auth-register__submit {
    width:
        100%;

    min-height:
        44px;

    padding:
        10px 16px;

    color:
        #ffffff;

    font-weight:
        600;

    background:
        linear-gradient(
            180deg,
            #3db5f3 0%,
            #1a98de 100%
        );

    border:
        1px solid
        #66c0f4;

    border-radius:
        1px;

    box-shadow:
        none;

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


.auth-register-steam-page
.auth-register__submit:hover:not(:disabled) {
    background:
        linear-gradient(
            180deg,
            #55c2f8 0%,
            #219fe6 100%
        );

    border-color:
        #8ad6ff;
}


.auth-register-steam-page
.auth-register__submit:disabled,
.auth-register-steam-page
.auth-register__submit[data-attach-loading].oc-loading {
    opacity:
        0.58;

    cursor:
        not-allowed;
}


/* ============================================================
   9. SIGN IN FOOTER
   ============================================================ */

.auth-register-steam-page
.auth-register__signin {
    margin:
        20px 0 0;

    padding:
        18px 0 0;

    border-top:
        1px solid
        #35566d;

    color:
        #8f98a0;

    text-align:
        center;
}


.auth-register-steam-page
.auth-register__signin
.text-link {
    margin-left:
        4px;

    color:
        #66c0f4;

    font-weight:
        600;

    text-decoration:
        none;
}


.auth-register-steam-page
.auth-register__signin
.text-link:hover {
    color:
        #8ad6ff;

    text-decoration:
        underline;
}


/* ============================================================
   10. REGISTRATION DISABLED
   ============================================================ */

.auth-register-steam-page
.auth-register__disabled {
    margin:
        0;

    padding:
        12px 14px;

    color:
        #c7d5e0;

    background:
        #152738;

    border:
        1px solid
        #35566d;

    border-left:
        3px solid
        #66c0f4;
}


/* ============================================================
   11. MOBILE
   ============================================================ */

@media (max-width: 640px) {
    .auth-register-steam-page {
        padding:
            32px
            16px
            48px;
    }


    .auth-register-steam-page
    .auth-register__card {
        width:
            100%;

        max-width:
            none;

        padding:
            20px;
    }


    .auth-register-steam-page
    .auth-register__title {
        font-size:
            1.25rem;
    }


    .auth-register-steam-page
    .auth-register__row {
        display:
            block;

        margin:
            0;
    }


    .auth-register-steam-page
    .auth-register__row
    > .auth-register__field {
        margin:
            0 0 18px;
    }


    .auth-register-steam-page
    .auth-register__submit {
        min-height:
            46px;
    }
}


/* ===== END REGISTER STEAM PREVIEW V1 ===== */


/* ===== REGISTER SHELL / FULL WIDTH FIX V2 ===== */

/*
 * /register lives inside the normal site shell.
 *
 * The global .site-main vertical padding creates the light
 * strips above and below the Steam registration surface.
 *
 * The original V1 100vw breakout also becomes wider than the
 * usable desktop viewport when the vertical browser scrollbar
 * is present, producing a horizontal scrollbar.
 *
 * Use the same approved shell strategy as /login:
 * - remove main top/bottom spacing only on /register;
 * - remove container side gutters only on /register;
 * - let the register surface use normal width:100%;
 *   instead of breaking out with 100vw.
 */


/* Remove only the shell spacing responsible for white strips. */
body:has(.auth-register-steam-page)
.site-main {
    padding-top:
        0
        !important;

    padding-bottom:
        0
        !important;
}


/*
 * The Steam surface itself owns the horizontal spacing,
 * so the normal content container must not add gutters.
 */
body:has(.auth-register-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;
}


/*
 * Neutralize the V1 100vw breakout.
 *
 * 100vw includes the browser scrollbar width on desktop and
 * therefore caused the horizontal scrollbar visible on /register.
 */
.auth-register-steam-page {
    left:
        auto;

    width:
        100%;

    max-width:
        none;

    margin-left:
        0;

    margin-right:
        0;
}

/* ===== END REGISTER SHELL / FULL WIDTH FIX V2 ===== */
