.preesm-portal-page #page-cms {
    background-color: #0d1b3e;
}

.preesm-portal-page #page-cms .section-cms {
    min-height: calc(100vh - var(--header-height, 112px));
    padding: clamp(44px, 6vw, 88px) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(44, 117, 255, .17), transparent 34%),
        radial-gradient(circle at 85% 88%, rgba(153, 0, 255, .12), transparent 31%),
        #141414;
}

.preesm-portal-page #page-cms .section-cms > .container > .title-xxl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.preesm-portal-page #page-cms .cms {
    max-width: none;
}

.preesm-portal-page #page-cms .cms > :first-child {
    margin-top: 0;
}

.preesm-portal {
    --portal-blue: #2c75ff;
    --portal-purple: #9900ff;
    --portal-ink: #141414;
    --portal-panel: #212424;
    --portal-muted: #a9afb9;
    --portal-line: rgba(255, 255, 255, .15);
    --portal-white: #fff;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(390px, 1fr);
    gap: clamp(42px, 7vw, 112px);
    align-items: center;
    max-width: 1180px;
    min-height: 610px;
    margin: 0 auto;
    font-family: poppins, sans-serif;
    color: var(--portal-white);
}

.preesm-portal::before {
    position: absolute;
    top: 4%;
    bottom: 4%;
    left: calc(43% - 1px);
    width: 1px;
    content: "";
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(44, 117, 255, .72) 21%,
        rgba(153, 0, 255, .72) 76%,
        transparent
    );
}

.preesm-portal__intro {
    position: relative;
    z-index: 1;
}

.preesm-portal__eyebrow {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 24px !important;
    color: #b8c7ea;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.preesm-portal__eyebrow::before {
    width: 34px;
    height: 2px;
    content: "";
    background: var(--portal-blue);
}

.preesm-portal__intro h2 {
    max-width: 560px;
    margin: 0 !important;
    color: var(--portal-white);
    font-size: clamp(52px, 6.4vw, 92px) !important;
    font-weight: 200;
    line-height: .98 !important;
    letter-spacing: -.055em;
}

.preesm-portal__intro h2 span {
    color: transparent;
    background: linear-gradient(95deg, #fff 0%, #93b5ff 44%, #c273ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.preesm-portal__lead {
    max-width: 440px;
    margin: 30px 0 0 !important;
    color: #d8dbe2;
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 200;
    line-height: 1.6;
}

.preesm-portal__trust {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 56px;
}

.preesm-portal__trust-icon {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(99, 143, 255, .38);
    border-radius: 50%;
    background: rgba(44, 117, 255, .08);
}

.preesm-portal__trust-icon svg {
    width: 18px;
    fill: none;
    stroke: #8cadff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.preesm-portal__trust p {
    margin: 0 !important;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.55;
}

.preesm-portal__trust strong {
    color: #e9ecf2;
    font-size: 13px;
    font-weight: 500;
}

.preesm-portal__card {
    position: relative;
    z-index: 1;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid var(--portal-line);
    border-radius: 4px;
    background: rgba(33, 36, 36, .9);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.preesm-portal__card::after {
    position: absolute;
    top: -1px;
    right: 42px;
    width: 74px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--portal-blue), var(--portal-purple));
}

.preesm-portal__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border: 1px solid var(--portal-line);
    border-radius: 3px;
    background: rgba(20, 20, 20, .72);
}

.preesm-portal__tab {
    position: relative;
    padding: 13px 12px;
    color: #aeb2ba;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.preesm-portal__tab:hover,
.preesm-portal__tab:focus-visible {
    color: #fff;
}

.preesm-portal__tab:focus-visible,
.preesm-portal__submit:focus-visible,
.preesm-portal__mode-link:focus-visible,
.preesm-portal__password-toggle:focus-visible {
    outline: 2px solid #8eb1ff;
    outline-offset: 3px;
}

.preesm-portal__tab.is-active {
    color: #fff;
    background: rgba(44, 117, 255, .17);
    box-shadow: inset 0 0 0 1px rgba(99, 143, 255, .26);
}

.preesm-portal[data-active-space="provider"] .preesm-portal__tab.is-active {
    background: rgba(153, 0, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(194, 115, 255, .24);
}

.preesm-portal__panel {
    padding-top: 30px;
}

.preesm-portal__notice {
    padding: 12px 14px;
    margin-bottom: 22px;
    border-left: 2px solid #8eb1ff;
    background: rgba(44, 117, 255, .09);
    color: #e7eeff;
    font-size: 12px;
    line-height: 1.55;
}

.preesm-portal__notice[hidden] {
    display: none;
}

.preesm-portal__notice.is-error {
    border-left-color: #f283a1;
    background: rgba(242, 91, 131, .08);
    color: #ffdbe4;
}

.preesm-portal__notice.is-success {
    border-left-color: #76d8ad;
    background: rgba(68, 214, 44, .07);
    color: #dbffec;
}

.preesm-portal__space-label {
    margin: 0 !important;
    color: #fff;
    font-size: clamp(23px, 2.2vw, 31px);
    font-weight: 400;
    letter-spacing: -.025em;
}

.preesm-portal__space-description {
    min-height: 44px;
    margin: 8px 0 0 !important;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.6;
}

.preesm-portal__form {
    display: none;
    margin-top: 27px;
}

.preesm-portal__form.is-visible {
    display: block;
    animation: preesm-portal-form-in .35s ease both;
}

.preesm-portal__field + .preesm-portal__field {
    margin-top: 18px;
}

.preesm-portal__field label {
    display: block;
    margin-bottom: 7px;
    color: #dfe2e7;
    font-size: 12px;
    font-weight: 400;
}

.preesm-portal__field input {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .21);
    border-radius: 2px;
    outline: none;
    background: rgba(10, 12, 13, .5);
    color: #fff;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.preesm-portal__field input:hover {
    border-color: rgba(255, 255, 255, .35);
}

.preesm-portal__field input:focus {
    border-color: #668fff;
    background: rgba(10, 12, 13, .72);
    box-shadow: 0 0 0 3px rgba(44, 117, 255, .13);
}

.preesm-portal__password {
    position: relative;
}

.preesm-portal__password input {
    padding-right: 82px;
}

.preesm-portal__password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 5px 2px;
    border: 0;
    background: transparent;
    color: #aeb6c5;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
    transform: translateY(-50%);
}

.preesm-portal__password-toggle:hover {
    color: #fff;
}

.preesm-portal__submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    margin-top: 24px;
    border: 0;
    border-radius: 2px;
    background: var(--portal-blue);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.preesm-portal[data-active-space="provider"] .preesm-portal__submit {
    background: #8500dc;
}

.preesm-portal__submit-icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    transition: transform .25s ease;
}

.preesm-portal__submit-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 2;
}

.preesm-portal__submit:hover {
    background: #4b88ff;
    box-shadow: 0 12px 30px rgba(44, 117, 255, .2);
    transform: translateY(-1px);
}

.preesm-portal[data-active-space="provider"] .preesm-portal__submit:hover {
    background: #a21dff;
    box-shadow: 0 12px 30px rgba(153, 0, 255, .18);
}

.preesm-portal__submit:hover .preesm-portal__submit-icon {
    transform: translate(3px, -3px);
}

.preesm-portal__mode-link {
    display: table;
    margin: 18px auto 0;
    color: #cfd3db;
    font-size: 11px;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .35);
    text-underline-offset: 4px;
}

.preesm-portal__mode-link:hover {
    color: #fff;
}

.preesm-portal__recovery-copy {
    margin: 0 0 22px !important;
    color: #c4c8d0;
    font-size: 12px;
    line-height: 1.65;
}

@keyframes preesm-portal-form-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1023px) {
    .preesm-portal {
        grid-template-columns: minmax(0, .78fr) minmax(360px, 1fr);
        gap: 54px;
    }

    .preesm-portal::before {
        display: none;
    }

    .preesm-portal__trust {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .preesm-portal-page #page-cms .section-cms {
        padding: 32px 0 52px;
    }

    .preesm-portal {
        display: block;
        min-height: 0;
    }

    .preesm-portal__intro h2 {
        font-size: clamp(46px, 15vw, 68px) !important;
    }

    .preesm-portal__lead {
        margin-top: 22px !important;
        font-size: 16px;
    }

    .preesm-portal__trust {
        margin: 28px 0 36px;
    }

    .preesm-portal__card {
        padding: 18px;
    }

    .preesm-portal__panel {
        padding-top: 24px;
    }

    .preesm-portal__space-description {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preesm-portal *,
    .preesm-portal *::before,
    .preesm-portal *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
