/* Member login on main site — forum auth look without breaking sexer header */

.member-auth-forum-page {
    padding: 0.75rem 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.member-auth-forum-page > .forum-container {
    width: max(100%, var(--forum-mobile-freeze-width, 768px));
    min-width: max(100%, var(--forum-mobile-freeze-width, 768px));
    max-width: 100%;
    margin-inline: auto;
    padding-inline: var(--forum-body-gutter, 0.85rem);
    box-sizing: border-box;
}

.member-auth-forum-page .forum-panel-narrow {
    margin-inline: auto;
}

.member-auth-forum-page .forum-flash-stack {
    max-width: 640px;
    margin: 0 auto 0.75rem;
}

/* Keep sexer header/nav colors — forum.css sets global blue/red links */
.custom-header a,
.custom-header a:hover,
.custom-header a:focus,
.custom-header a:focus-visible,
.bottom-header a,
.bottom-header a:hover,
.bottom-header a:focus,
.bottom-header a:focus-visible,
.nav-bot-view a,
.nav-bot-view a:hover,
#sidebar a,
#sidebar a:hover,
.header-btn a,
.header-btn a:hover,
.listing-toolbar a,
.listing-toolbar a:hover,
.dropdown-content a,
.dropdown-content a:hover,
.dropdown-btn,
.header-langs a {
    color: inherit;
}

.custom-header .menu a,
.custom-header .menu a:hover,
.custom-header .menu a:focus-visible {
    color: #fff;
}

/* POST AD — keep violet text from style.css (forum.css global links must not override) */
.header-btn .btn-custom,
.header-btn a.btn-custom,
.bottom-header .header-btn .btn-custom,
.bottom-header .header-btn a.btn-custom {
    color: #924bdd !important;
    background-color: #242525 !important;
}

.header-btn .btn-custom:hover,
.header-btn .btn-custom:focus-visible,
.header-btn a.btn-custom:hover,
.header-btn a.btn-custom:focus-visible {
    color: #ffffff !important;
    background-color: #ff004c !important;
}

/* Forum auth panel only: full-width pill buttons */
.member-auth-forum-page .forum-auth-panel .btn-register,
.member-auth-forum-page .forum-auth-panel .btn-google {
    width: 100%;
}

/* Login/register use forum.css — reset header hamburger to main-site styles (not pink pill). */
.custom-header .toggle-sidebar.btn,
.custom-header .toggle-sidebar.btn-primary,
.custom-header .toggle-icon-mobile .toggle-sidebar,
.custom-header .toggle-icon-mobile .toggle-sidebar.btn-primary {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    transform: none !important;
}

.custom-header .toggle-sidebar:hover,
.custom-header .toggle-sidebar:focus,
.custom-header .toggle-sidebar:focus-visible,
.custom-header .toggle-sidebar:active {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.custom-header .toggle-sidebar svg {
    width: 44px;
    height: 44px;
    display: block;
}

/* Match style.css mobile header menu (forum.css loads only on login/register). */
@media only screen and (max-width: 1024px) {
    .custom-header .toggle-sidebar,
    .custom-header .toggle-sidebar.btn,
    .custom-header .toggle-sidebar.btn-primary,
    .custom-header .toggle-icon-mobile .toggle-sidebar,
    .custom-header .toggle-icon-mobile .toggle-sidebar.btn-primary {
        position: fixed !important;
        top: 9px !important;
        right: 0 !important;
        z-index: 999 !important;
        display: block !important;
        color: #fff !important;
        margin-right: 10px !important;
    }

    .custom-header .toggle-sidebar.scrolled {
        color: #6A11CF !important;
    }

    .custom-header .toggle-sidebar:hover,
    .custom-header .toggle-sidebar:active,
    .custom-header .toggle-sidebar:focus,
    .custom-header .toggle-sidebar:focus-visible {
        background-color: transparent !important;
        border-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .custom-header .toggle-sidebar svg {
        width: 44px !important;
        height: 44px !important;
        fill: currentColor !important;
    }

    .custom-header .toggle-sidebar svg path {
        fill: currentColor !important;
        stroke: currentColor !important;
        stroke-width: 0.9 !important;
        stroke-linejoin: round !important;
    }

    .custom-header .toggle-icon-mobile {
        z-index: 9;
    }

    .custom-header .logo-class {
        justify-content: space-between !important;
        width: 100%;
    }
}
