/* The Local - Element Web custom styles */

/* Replace lake.jpg with brand purple on all auth pages */
.mx_AuthPage {
    background: #220D46 !important;
}

/* Replace blurred lake.jpg card frost with clean warm-white */
.mx_AuthPage_modalBlur {
    background: rgba(249, 245, 240, 0.96) !important;
    filter: none !important;
}

/* Left panel: swap Element logo for The Local logo */
.mx_AuthHeaderLogo img {
    display: none !important;
}

.mx_AuthHeaderLogo {
    background-image: url('/assets/the-local-logo.png');
    background-size: 140px auto;
    background-repeat: no-repeat;
    background-position: center 36px;
}

/* Hide Element/Matrix/Blog footer on auth pages */
.mx_AuthPage .mx_AuthFooter {
    display: none !important;
}

/* ═══════════════════════════════════════════════
   Welcome Page (/#/welcome) - The Local branding
   ═══════════════════════════════════════════════ */

/* Brand purple background behind the card */
.mx_Welcome {
    background: #220D46 !important;
}

/* The card wrapper -- padding handled by .tlw inside welcome.html */
.mx_WelcomePage {
    background: #F9F5F0 !important;
    border-radius: 24px !important;
    padding: 0 !important;
    max-width: 440px !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
}

/* Left-align the card contents */
.mx_WelcomePage .mx_Parent {
    padding: 0 !important;
    text-align: left !important;
    align-items: flex-start !important;
}

/* Hide default Element/Matrix logos */
.mx_WelcomePage .mx_Logo,
.mx_WelcomePage .mx_WelcomePage_logo {
    display: none !important;
}

/* Replace Element logo link with The Local logo */
.mx_WelcomePage .mx_Parent > a:first-of-type {
    display: block !important;
    width: 148px !important;
    height: 40px !important;
    margin-bottom: 1.5rem !important;
    background: url('/assets/the-local-logo.png') no-repeat left center !important;
    background-size: contain !important;
    pointer-events: none !important;
}

/* Replace "Welcome to Element!" heading text */
.mx_WelcomePage .mx_Header_title {
    font-size: 0 !important;
    margin: 0 0 0.25rem !important;
}
.mx_WelcomePage .mx_Header_title::after {
    content: '' !important;
    display: block !important;
    width: 2rem !important;
    height: 2px !important;
    background: #ed1d26 !important;
    margin-top: 1.25rem !important;
}
.mx_WelcomePage .mx_Header_title::before {
    content: "Communications for the workplace democracy movement.";
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #220D46 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    display: block !important;
}

/* Hide "Decentralised... powered by Matrix" subtitle */
.mx_WelcomePage .mx_Header_subtitle {
    display: none !important;
}

/* Description copy before buttons */
.mx_WelcomePage .mx_ButtonGroup::before {
    content: "The Local connects co-operatives, organizers, and movement builders on a private network built on open standards.";
    display: block;
    font-size: 14px;
    line-height: 1.65;
    color: #5a4a7a;
    margin-bottom: 1.5rem;
}

/* Sign in button - brand purple */
.mx_WelcomePage .mx_ButtonSignIn {
    background: #220D46 !important;
    color: #F9F5F0 !important;
    border-radius: 8px !important;
    flex: 1 !important;
    width: auto !important;
    display: flex !important;
    padding: 0.85rem 1.5rem !important;
    justify-content: center !important;
    background-image: none !important;
    box-sizing: border-box !important;
}
.mx_WelcomePage .mx_ButtonSignIn .mx_ButtonLabel {
    margin-left: 0 !important;
    color: #F9F5F0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Buttons side by side, equal height */
.mx_WelcomePage .mx_ButtonRow {
    display: flex !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin: 0 !important;
}

/* Style Create Account button - outlined */
.mx_WelcomePage .mx_ButtonCreateAccount {
    background: transparent !important;
    color: #220D46 !important;
    border: 2px solid #220D46 !important;
    border-radius: 8px !important;
    flex: 1 !important;
    width: auto !important;
    display: flex !important;
    padding: 0.85rem 1.5rem !important;
    justify-content: center !important;
    background-image: none !important;
    box-sizing: border-box !important;
}
.mx_WelcomePage .mx_ButtonCreateAccount .mx_ButtonLabel {
    margin-left: 0 !important;
    color: #220D46 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Hide Explore rooms (guest function) */
.mx_WelcomePage .mx_WelcomePage_guestFunctions {
    display: none !important;
}

/* Hide language dropdown */
.mx_AuthBody_language {
    display: none !important;
}

/* ═══════════════════════════════════════════════
   Auth Pages (/#/login, /#/register) - consistency
   ═══════════════════════════════════════════════ */

/* Auth modal card - explicit rounded corners */
.mx_AuthPage_modal {
    border-radius: 24px !important;
    overflow: hidden !important;
}

/* Right panel - warm white to match welcome card */
.mx_AuthPage_modalContent {
    background: #F9F5F0 !important;
}

/* Submit buttons - full styling to match welcome page sign-in button */
.mx_Login_submit,
.mx_Register_submit {
    -webkit-appearance: none !important;
    appearance: none !important;
    /* Override Element's font shorthand (cpd-font-body-md-regular) */
    font: unset !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    /* Override Element's fixed height: 32px from mx_DialogButton */
    height: auto !important;
    min-height: 0 !important;
    border-radius: 8px !important;
    background: #220D46 !important;
    color: #F9F5F0 !important;
    padding: 0.85rem 1.5rem !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    width: 100% !important;
    cursor: pointer !important;
    border: none !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-bottom: 1rem !important;
}

.mx_Login_submit:hover,
.mx_Register_submit:hover {
    background: #2d1060 !important;
}

/* Secondary links - brand color instead of default blue */
.mx_AuthBody a,
.mx_Login_forgot,
.mx_AuthBody .mx_AccessibleButton_kind_link {
    color: #220D46 !important;
}
.mx_AuthBody a:hover,
.mx_Login_forgot:hover {
    color: #ed1d26 !important;
}
