:root {
    color-scheme: light;
    --navy: #17264b;
    --muted: #788196;
    --red: #ed293e
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #0c1635;
    color: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 10% 35%, #233c7555, transparent 55%), radial-gradient(ellipse at 85% 95%, #872c4330, transparent 50%)
}

#login-network {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.page-shell {
    position: relative;
    max-width: 1440px;
    min-height: 100vh;
    min-height: 100svh;
    margin: auto;
    padding: 32px 6%;
    display: flex;
    flex-direction: column
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    gap: 16px;
    align-items: center;
    color: inherit;
    text-decoration: none
}

.brand-mark {
    background: white;
    border-radius: 12px;
    padding: 5px 9px;
    display: flex;
    box-shadow: 0 6px 24px #0002
}

.brand-mark img {
    object-fit: contain;
    width: 94px;
    height: 60px
}

.brand-name {
    font-size: 25px;
    letter-spacing: 1px;
    font-weight: 300
}

.brand-name strong {
    font-weight: 750
}

.brand-name small {
    display: block;
    font-size: 8px;
    letter-spacing: 2px;
    color: #aebbd7;
    margin-top: 6px
}

.header-label {
    font-size: 12px;
    color: #bdc9e0;
    display: flex;
    gap: 9px;
    align-items: center
}

.header-label span {
    width: 6px;
    height: 6px;
    background: #ec4358;
    border-radius: 50%;
    box-shadow: 0 0 14px #ed293e
}

.login-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8%;
    align-items: center;
    flex: 1;
    padding: 60px 0
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #b8c9e8
}

.eyebrow span {
    height: 2px;
    width: 25px;
    background: var(--red)
}

h1 {
    font-size: clamp(42px, 4.5vw, 65px);
    line-height: 1.13;
    letter-spacing: -2.8px;
    margin: 26px 0
}

h1 em {
    font-style: normal;
    color: #a9bfff;
    display: block
}

.intro-description {
    max-width: 390px;
    font-size: 15px;
    line-height: 1.85;
    color: #a6b5d2
}

.journey {
    position: relative;
    width: 85%;
    max-width: 375px;
    height: 95px;
    margin-top: 36px
}

.journey-line {
    position: absolute;
    top: 20px;
    left: 5px;
    right: 5px;
    height: 1px;
    background: linear-gradient(90deg, #eb425e, #658be2, #799eee44)
}

.journey-point {
    position: absolute;
    top: 16px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b2c5ff;
    box-shadow: 0 0 0 5px #a3baff0d, 0 0 18px #8badff66
}

.point-one {
    left: 0;
    background: #f44a61
}

.point-two {
    left: 47%
}

.point-three {
    right: 0
}

.journey-label {
    position: absolute;
    top: 40px;
    color: #96a8ca;
    font-size: 10px;
    letter-spacing: 1px
}

.label-one {
    left: 0
}

.label-two {
    left: 47%;
    transform: translateX(-40%)
}

.label-three {
    right: -12px
}

.intro-note {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 12px;
    color: #cbd6ed
}

.note-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border: 1px solid #8fa8d533;
    border-radius: 10px;
    color: #e84b63;
    font-size: 22px
}

.intro-note small {
    display: block;
    margin-top: 6px;
    color: #7f91b2;
    font-size: 10px
}

.login-card {
    background: #fff;
    color: var(--navy);
    border-radius: 24px;
    padding: 36px 40px 0;
    box-shadow: 0 30px 100px #0004;
    position: relative;
    overflow: hidden;
    max-width: 460px;
    width: 100%;
    justify-self: end
}

.login-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    width: 48px;
    height: 4px;
    background: var(--red);
    border-radius: 0 0 3px 3px
}

.card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #8b94a6
}

.workspace-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #f1f4fb;
    color: #263f79;
    font-size: 19px
}

h2 {
    font-size: 34px;
    letter-spacing: -1.3px;
    margin: 20px 0 10px
}

h2>span {
    color: var(--red)
}

.form-description {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 30px
}

form>label {
    display: block;
    font-size: 12px;
    font-weight: 650;
    margin: 19px 0 9px
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center
}

.input-wrap>svg {
    position: absolute;
    left: 15px;
    width: 18px;
    height: 18px;
    color: #929caf;
    pointer-events: none
}

.input-wrap input {
    font: inherit;
    font-size: 13px;
    width: 100%;
    height: 51px;
    padding: 0 45px;
    border: 1px solid #e0e5ed;
    background: #f8f9fc;
    border-radius: 9px;
    color: var(--navy);
    transition: border-color .2s, box-shadow .2s
}

.input-wrap input::placeholder {
    color: #939aaa
}

.input-wrap input:focus {
    outline: none;
    background: #fff;
    border-color: #6279b5;
    box-shadow: 0 0 0 3px #5477cf18
}

.password-toggle {
    position: absolute;
    right: 7px;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
    color: #8490a5;
    display: flex
}

.password-toggle[hidden] {
    display: none
}

.password-toggle svg {
    width: 18px;
    height: 18px
}

.form-options {
    margin: 19px 0 25px
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #667189;
    width: fit-content;
    cursor: pointer
}

.remember input {
    accent-color: #293f78;
    width: 15px;
    height: 15px;
    margin: 0
}

.sign-in {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 16px 20px;
    background: #243b77;
    color: white;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    gap: 22px;
    cursor: pointer;
    box-shadow: 0 5px 12px #243b7720;
    transition: background .2s, transform .2s
}

.sign-in:hover {
    background: #314d91;
    transform: translateY(-1px)
}

.sign-in span {
    font-size: 19px;
    line-height: 15px
}

.help-note {
    text-align: center;
    font-size: 10px;
    line-height: 1.8;
    color: #8790a2;
    margin: 23px 0 27px
}

.help-note span {
    color: #465778;
    display: block
}

.card-footer {
    border-top: 1px solid #edf0f5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    color: #9099aa;
    font-size: 10px;
    padding: 18px 0
}

.card-footer svg {
    height: 14px;
    width: 14px
}

.page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: #8190ae;
    font-size: 10px
}

.page-footer button {
    background: transparent;
    border: 1px solid #8190ae44;
    border-radius: 6px;
    color: #b5c2db;
    padding: 7px 10px;
    font: inherit;
    cursor: pointer
}

.alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 18px
}

.alert-error {
    background: #fff0f2;
    color: #aa2138;
    border: 1px solid #f9d3dc
}

.alert-success {
    background: #edf8f1;
    color: #246d43
}

button:focus-visible,
a:focus-visible,
input[type=checkbox]:focus-visible {
    outline: 3px solid #829ce2;
    outline-offset: 4px
}

@media(min-width:1500px) {
    .login-layout {
        gap: 12%
    }
}

@media(max-width:900px) {
    .page-shell {
        padding: 26px 5%
    }

    .login-layout {
        gap: 5%
    }

    .login-card {
        padding: 30px 26px 0
    }

    h1 {
        font-size: 44px
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 1.2px
    }
}

@media(max-width:680px) {
    .page-shell {
        padding: 20px
    }

    .brand-mark img {
        width: 70px;
        height: 45px
    }

    .brand-name {
        font-size: 21px
    }

    .header-label {
        font-size: 10px
    }

    .login-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 36px 0
    }

    .intro {
        text-align: center
    }

    .eyebrow {
        justify-content: center
    }

    h1 {
        font-size: 38px;
        letter-spacing: -1.6px;
        margin: 18px 0
    }

    h1 em {
        display: inline
    }

    .intro-description {
        margin: 0 auto;
        font-size: 13px;
        max-width: 340px
    }

    .journey,
    .intro-note {
        display: none
    }

    .login-card {
        justify-self: center;
        padding: 28px 28px 0
    }

    .page-footer {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 9px
    }

    .page-footer>span:nth-child(2) {
        display: none
    }

    h2 {
        font-size: 31px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        transition: none !important
    }
}

/* Fit the available viewport, including mobile browser chrome. */
html {
    min-height: 100%;
}

.page-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-block: clamp(12px, 3vh, 32px);
}

.page-header,
.page-footer {
    flex-shrink: 0;
}

.login-layout {
    min-height: 0;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    padding-block: clamp(12px, 3vh, 40px);
}

.intro {
    min-width: 0;
}

#intro-title {
    white-space: nowrap;
    font-size: clamp(26px, 3.4vw, 49px);
    letter-spacing: -1.6px;
}

@media (max-height: 800px) {
    .login-card {
        padding-top: 22px;
    }

    .card-topline .workspace-icon {
        width: 26px;
        height: 26px;
    }

    h2 {
        margin: 12px 0 8px;
    }

    .form-description {
        margin-bottom: 18px;
    }

    form>label {
        margin-top: 13px;
    }

    .form-options {
        margin: 14px 0 18px;
    }

    .help-note {
        margin: 16px 0;
    }

    .card-footer {
        padding: 13px 0;
    }

    .journey {
        margin-top: 20px;
        height: 80px;
    }
}

@media (max-width: 680px) {
    .page-shell {
        padding: 12px 20px;
    }

    .login-layout {
        grid-template-columns: minmax(0, 1fr);
        align-content: center;
        gap: 18px;
        padding-block: 14px;
    }

    #intro-title {
        font-size: clamp(24px, 7vw, 38px);
        margin: 12px 0;
    }

    .header-label {
        display: none;
    }

    .login-card {
        padding-top: 22px;
    }

    .intro-description {
        font-size: 12px;
        line-height: 1.6;
    }

    .page-footer {
        gap: 8px;
    }
}

@media (max-width: 680px) and (max-height: 800px) {

    .intro .eyebrow,
    .intro-description {
        display: none;
    }

    .login-layout {
        gap: 10px;
        padding-block: 8px;
    }

    #intro-title {
        margin: 4px 0;
    }

    .brand-mark img {
        width: 58px;
        height: 37px;
    }

    .login-card {
        padding-top: 18px;
    }

    .input-wrap input {
        height: 46px;
    }

    .help-note {
        margin: 12px 0;
    }

    .card-footer {
        padding: 10px 0;
        font-size: 9px;
    }
}

@media (max-height: 620px) and (min-width: 681px) {
    .page-shell {
        padding-block: 10px;
    }

    .brand-mark img {
        width: 63px;
        height: 40px;
    }

    .login-layout {
        padding-block: 8px;
    }

    .login-card {
        padding-top: 14px;
    }

    .card-topline,
    .journey,
    .intro-note {
        display: none;
    }

    h2 {
        font-size: 28px;
        margin-top: 0;
    }

    .form-description {
        margin-bottom: 12px;
    }

    .input-wrap input {
        height: 43px;
    }

    .form-options {
        margin: 12px 0;
    }

    .sign-in {
        padding-block: 13px;
    }

    .help-note {
        margin: 10px 0;
    }

    .card-footer {
        padding: 10px 0;
    }
}

/* Preserve access to the form with a keyboard, zoom, or unusually short screen. */
@media (max-height: 540px) {
    .page-shell {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .login-layout {
        flex-shrink: 0;
    }
}

/* Custom branding may be longer than the default copy. */
.brand-name {
    min-width: 0;
}

.brand-name>strong {
    display: block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#intro-title {
    white-space: normal;
    overflow-wrap: anywhere;
}

.intro-description {
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .brand-name>strong {
        max-width: 180px;
    }
}

body[data-login-theme="forest"] {
    background: #102b2b;
    --red: #56bda0;
}

body[data-login-theme="plum"] {
    background: #281832;
    --red: #da91c7;
}

body[data-login-theme="forest"] .sign-in {
    background: #236455;
}

body[data-login-theme="plum"] .sign-in {
    background: #724575;
}

body[data-login-theme="forest"] .sign-in:hover {
    background: #194e41;
}

body[data-login-theme="plum"] .sign-in:hover {
    background: #58345b;
}

h2>.login-heading-text {
    color: var(--navy);
    overflow-wrap: anywhere;
}

.sign-in .login-button-text {
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.form-description,
.help-note {
    overflow-wrap: anywhere;
}

/* ─── Ajax login button states ─────────────────────────────── */
.sign-in {
    position: relative;
}

.button-arrow {
    transition: transform .25s ease, opacity .2s ease;
    display: inline-flex;
}

.button-spinner,
.button-check {
    display: none;
    position: absolute;
}

.sign-in .button-spinner svg,
.sign-in .button-check svg {
    width: 18px;
    height: 18px;
}

/* Loading state */
.sign-in.is-loading {
    pointer-events: none;
    background: #243b77;
    justify-content: center;
}

.sign-in.is-loading .button-arrow {
    opacity: 0;
    transform: translateX(8px);
}

.sign-in.is-loading .button-spinner {
    display: inline-flex;
    animation: login-spin .8s linear infinite;
}

.sign-in.is-loading .login-button-text {
    opacity: .55;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success state */
.sign-in.is-success {
    pointer-events: none;
    background: #2a9d6e;
    justify-content: center;
    box-shadow: 0 5px 16px #2a9d6e33;
}

.sign-in.is-success .button-arrow {
    opacity: 0;
}

.sign-in.is-success .button-spinner {
    display: none;
}

.sign-in.is-success .button-check {
    display: inline-flex;
    animation: login-pop .45s cubic-bezier(.2, 1.4, .6, 1) both;
}

.sign-in.is-success .login-button-text {
    opacity: 0;
}

@keyframes login-pop {
    0% {
        transform: scale(.3);
        opacity: 0;
    }

    60% {
        transform: scale(1.25);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Error shake */
.login-card.shake {
    animation: login-shake .5s ease;
}

@keyframes login-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* Alert animations */
#login-alert {
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    transform: translateY(-6px);
}

#login-alert.show {
    opacity: 1;
    transform: translateY(0);
}

#login-alert.alert-error {
    background: #fff0f2;
    color: #aa2138;
    border: 1px solid #f9d3dc;
}

#login-alert.alert-success {
    background: #edf8f1;
    color: #246d43;
    border: 1px solid #c8ecd6;
}

#login-alert[hidden] {
    display: none;
}

/* Theme variants for success */
body[data-login-theme="forest"] .sign-in.is-success {
    background: #2a9d6e;
}

body[data-login-theme="plum"] .sign-in.is-success {
    background: #7a5a92;
}

body[data-login-theme="forest"] .sign-in.is-loading {
    background: #236455;
}

body[data-login-theme="plum"] .sign-in.is-loading {
    background: #724575;
}

body[data-login-theme="forest"] .sign-in.is-success {
    box-shadow: 0 5px 16px #2a9d6e33;
}

body[data-login-theme="plum"] .sign-in.is-success {
    box-shadow: 0 5px 16px #7a5a9233;
}

/* Disable inputs while submitting */
.sign-in.is-loading~.help-note {
    opacity: .5;
}

form.is-submitting input {
    pointer-events: none;
    opacity: .7;
}

form.is-submitting .password-toggle {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .sign-in.is-loading .button-spinner {
        animation-duration: 1.6s;
    }

    .sign-in.is-success .button-check {
        animation: none;
    }

    .login-card.shake {
        animation: none;
    }
}