/* BotOffer welcome and authentication branding */
.mx_AuthPage_modal,
.mx_AuthPage_modal.mx_AuthPage_modal_withBlur {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.mx_AuthPage_modalContent,
.mx_AuthPage_modal.mx_AuthPage_modal_withBlur .mx_AuthPage_modalContent {
    overflow: visible;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0;
}

.mx_AuthPage_modalBlur {
    display: none !important;
}

.mx_DefaultWelcome {
    position: relative;
    background: transparent !important;
    padding: 0 !important;
}

.mx_DefaultWelcome_logo {
    display: block;
    width: min(640px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 0 !important;
    background: transparent !important;
    line-height: 0;
}

.mx_DefaultWelcome_logo img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 640px;
    max-height: none !important;
    margin: 0 auto;
    border: 0;
    outline: 0;
}

/* Place the welcome actions centrally over the branding image. */
.mx_DefaultWelcome_buttons {
    position: absolute;
    z-index: 2;
    top: min(320px, calc((100vw - 48px) / 2));
    left: 50%;
    width: min(360px, calc(100vw - 88px));
    transform: translate(-50%, -50%);
}

.mx_DefaultWelcome_buttons > * {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.mx_DefaultWelcome h1 {
    position: absolute;
    z-index: 3;
    top: clamp(36px, calc((100vw - 48px) / 2 - 155px), 165px);
    left: 50%;
    width: min(520px, calc(100vw - 72px));
    margin: 0;
    transform: translateX(-50%);
    color: #69707a;
    font-size: 80px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.72);
}

.mx_DefaultWelcome h1 a {
    color: #000;
    letter-spacing: 0.08em;
    text-decoration: none;
    -webkit-text-stroke: 0.5px #949aa3;
    text-shadow: none;
}

.mx_DefaultWelcome h1 a:hover,
.mx_DefaultWelcome h1 a:focus-visible {
    color: #000;
    text-decoration: none;
}

.botoffer-terminal-cursor {
    display: inline-block;
    color: #000;
    -webkit-text-stroke: 0.5px #949aa3;
    animation: botoffer-cursor-blink 1s steps(1, end) infinite;
}

@keyframes botoffer-cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.mx_DefaultWelcome h2 {
    color: #69707a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.72);
}

/* Do not show Element and Matrix promotional links on unauthenticated pages. */
.mx_AuthFooter {
    display: none;
}
