@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&display=swap');

html,
body {
    width: 100%;
    min-height: 100%;
    height: 100%;
    background-color: #FFFFFF;
    background-repeat: no-repeat !important;
    background-position: right top !important;
    background-size: 50% 100% !important;
}

body {
    font-family: 'Public Sans', 'Helvetica Neue', Helvetica, sans-serif;
    color: #14233A;
}

#top-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
    grid-template-rows: auto auto auto auto 1fr;
    align-items: start;
    column-gap: 0;
    row-gap: 24px;
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    min-height: 100vh;
    max-width: none;
    margin: 0;
    padding: 0;
    background-color: transparent !important;
    background-image: linear-gradient(to right, #FFFFFF 50%, transparent 50%) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    background-position: left top !important;
    font-family: 'Public Sans', 'Helvetica Neue', Helvetica, sans-serif;
}

#top-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#top-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-image:
        radial-gradient(circle, #EAF5FC 0 85px, transparent 86px),
        radial-gradient(circle, #D4ECF9 0 48px, transparent 49px),
        radial-gradient(circle, #D4ECF9 0 36px, transparent 37px),
        radial-gradient(circle, #B9E1F6 0 20px, transparent 21px),
        radial-gradient(circle, #B9E1F6 0 11px, transparent 12px),
        radial-gradient(circle, #FDD3C5 0 9px, transparent 10px);
    background-repeat: no-repeat;
    background-size:
        170px 170px,
        96px 96px,
        72px 72px,
        40px 40px,
        22px 22px,
        18px 18px;
    background-position:
        92% calc(100% + 30px),
        62% calc(100% - 8px),
        96% calc(100% - 170px),
        74% calc(100% - 95px),
        42% calc(100% - 85px),
        80% calc(100% - 210px);
}

#logoWrapper,
#titleWrapper,
#registrationWrapper,
#loginWrapper {
    position: relative;
    z-index: 1;
}

#subtitleWrapper {
    z-index: 1;
}

#logoWrapper {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    box-sizing: border-box;
    width: 100%;
    padding: 56px 64px 0;
    text-align: left;
}

#logoWrapper a {
    display: inline-block;
}

#logoWrapper img {
    display: block;
    max-width: 340px;
    width: 100%;
    height: auto;
}

#titleWrapper {
    grid-column: 1;
    grid-row: 2;
    box-sizing: border-box;
    width: 100%;
    max-width: 624px;
    padding: 56px 64px 0 !important;
    line-height: 1.08;
    letter-spacing: -0.02em !important;
}

#titleWrapper::before {
    content: "Webcast";
    display: block;
    margin-bottom: 24px;
    padding-left: 40px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #005CB9;
    background: linear-gradient(#FC4513, #FC4513) no-repeat left center / 28px 3px;
}

#datetimeWrapper {
    grid-column: 1;
    grid-row: 4;
    box-sizing: border-box;
    align-self: start;
    justify-self: start;
    z-index: 1;
    width: max-content;
    max-width: calc(100% - 128px);
    margin: 24px 64px 24px;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 1px solid #CFE0F0;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: #14233A;
}

#datetimeWrapper::after {
    content: "This webcast is intended solely for registered attendees.";
    position: absolute;
    left: 64px;
    bottom: 56px;
    max-width: 520px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    color: #4A5D78;
    background: none;
    border: 0;
    padding: 0;
}

#subtitleWrapper {
    grid-column: 1;
    grid-row: 3;
    box-sizing: border-box;
    align-self: start;
    justify-self: start;
    z-index: 1;
    width: 100%;
    max-width: 624px;
    margin: 0;
    padding: 8px 64px 0 !important;
    background: none;
    border: 0;
    line-height: 1.45;
}

#top-wrapper:not(:has(#subtitleWrapper)) #datetimeWrapper {
    grid-row: 3;
}

#registrationWrapper,
#loginWrapper {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: stretch;
    justify-self: stretch;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 40px 24px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border: 0;
    box-shadow: none;
}

.main-form-div {
    box-sizing: border-box;
    width: 100%;
    max-width: 460px;
    padding: 28px !important;
    box-shadow: 0 2px 4px rgba(0, 20, 50, 0.14), 0 20px 48px rgba(0, 20, 50, 0.32);
}

.form-header-text {
    letter-spacing: -0.01em !important;
}

.form-subheader-text {
    letter-spacing: 0 !important;
    line-height: 1.55;
    padding: 0 0 16px 0 !important;
}

.main-form-div-row,
.titleRowDiv,
.form-div {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
}

.main-form-div-row {
    padding: 0 0 12px 0 !important;
}

.titleRowDiv {
    margin: 0 0 6px;
}

.form-field-text,
.form-field-select-text,
.passcode-text,
.passscode-text {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: inline-block;
    letter-spacing: 0;
}

.form-div {
    height: auto !important;
    overflow: visible !important;
}

.form-div:focus-within {
    transform: none;
    border-color: #005CB9 !important;
    box-shadow: 0 0 0 3px rgba(0, 92, 185, 0.18);
}

.form-div input:not([type=checkbox]):not([type=radio]),
.form-div select,
.form-input {
    box-sizing: border-box;
    width: 100%;
    height: 40px !important;
    line-height: 40px;
    padding: 0 12px;
    font-family: 'Public Sans', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 14px !important;
    letter-spacing: 0;
}

.form-submit-btn {
    width: 100%;
    border: 0;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.form-submit-btn:hover {
    background-image: linear-gradient(#00468E, #00468E);
}

.form-submit-btn-div {
    text-align: center;
}

.form-submit-btn-div::after {
    content: "Secure registration. Your details are used only for this event.";
    display: inline-block;
    margin-top: 16px;
    padding-left: 22px;
    font-size: 13px;
    line-height: 1.45;
    color: #4A5D78;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A5D78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 2px;
    background-size: 14px 14px;
}

#registrationWrapper:not(.has-regenxbio-footer)::after,
#loginWrapper:not(.has-regenxbio-footer)::after {
    content: "Visit regenxbio.com\A© 2026 REGENXBIO Inc. All rights reserved.";
    white-space: pre-line;
    display: block;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100% - 48px);
    margin: 28px auto 0;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(0, 42, 90, 0.82);
    color: #E6EFF9;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.regenxbio-footer-card {
    display: block;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100% - 48px);
    margin: 28px auto 0;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(0, 42, 90, 0.82);
    color: #E6EFF9;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
}

a.regenxbio-footer-card:hover {
    color: #FFFFFF;
    background: rgba(0, 42, 90, 0.92);
}

.reqAsterisk {
    color: #B42318 !important;
}

#regErrorDiv,
#loginErrorDiv {
    font-size: 14px;
    color: #B42318;
}

#regErrorDiv:not(:empty),
#loginErrorDiv:not(:empty) {
    background: #FEF3F2;
    border: 1px solid #FECDCA;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

#login-section-link,
#registration-section-link,
.section_link {
    display: inline;
    color: #4A5D78;
    font-weight: 400;
}

#login-section-link a,
#registration-section-link a,
.section_link a {
    color: #005CB9;
    font-weight: 600;
    text-decoration: underline;
}

#login-section-link a:hover,
#registration-section-link a:hover,
.section_link a:hover {
    color: #00468E;
}

@media screen and (max-width: 980px) {
    body {
        background-size: 100% auto !important;
        background-position: center top !important;
    }

    #top-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        gap: 0;
        min-height: auto;
        padding: 0;
        background: transparent !important;
    }

    #top-wrapper::before,
    #top-wrapper::after {
        display: none;
    }

    #logoWrapper,
    #titleWrapper {
        background-color: #FFFFFF;
    }

    #logoWrapper {
        order: 1;
        padding: 32px 24px 8px;
    }

    #logoWrapper img {
        max-width: 240px;
    }

    #titleWrapper {
        order: 2;
        padding: 32px 24px 0 !important;
        font-size: 34px !important;
        max-width: none;
    }

    #subtitleWrapper {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 8px 24px 0 !important;
        background-color: #FFFFFF;
    }

    #datetimeWrapper {
        order: 4;
        width: auto;
        max-width: calc(100% - 48px);
        margin: 16px 24px 28px;
        background-color: #FFFFFF;
    }

    #top-wrapper:not(:has(#subtitleWrapper)) #datetimeWrapper {
        order: 3;
    }

    #datetimeWrapper::after {
        position: static;
        display: block;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 20px;
        max-width: none;
    }

    #registrationWrapper,
    #loginWrapper {
        order: 5;
        grid-column: auto !important;
        grid-row: auto !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        width: 100%;
        max-width: none;
        min-height: 0;
        padding: 28px 24px 40px;
    }

    #registrationWrapper .main-form-div,
    #loginWrapper .main-form-div {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
