:root {
    --login-navy: #102a43;
    --login-blue: #1a4e7b;
    --login-mint: #54d6bb;
    --login-ink: #17324d;
    --login-muted: #6f8196;
}

.login-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #f4f8fb;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(410px, .84fr);
    min-height: 100vh;
}

.login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(28px, 5vw, 72px);
    color: #fff;
    background:
        radial-gradient(circle at 12% 83%, rgba(84, 214, 187, .22), transparent 25rem),
        radial-gradient(circle at 88% 20%, rgba(105, 174, 255, .18), transparent 20rem),
        linear-gradient(142deg, #0a233e 2%, #123d63 62%, #136665 150%);
}

.login-story::before,
.login-story::after {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.login-story::before {
    top: -174px;
    left: -83px;
    box-shadow: 0 0 0 38px rgba(255, 255, 255, .025), 0 0 0 76px rgba(255, 255, 255, .018);
}

.login-story::after {
    bottom: -215px;
    right: 15%;
    box-shadow: 0 0 0 55px rgba(84, 214, 187, .035);
}

.login-brand,
.mobile-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    color: #fff;
    direction: ltr;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .035em;
}

.login-brand:hover {
    color: #fff;
}

.login-brand > span:last-child span,
.mobile-brand > span:last-child span {
    color: var(--login-mint);
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(114, 241, 213, .28), rgba(255, 255, 255, .1));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.login-story-content {
    position: relative;
    z-index: 1;
    width: min(590px, 100%);
    margin: auto 0;
    padding: 64px 0 36px;
}

.story-kicker,
.access-kicker {
    margin: 0 0 12px;
    color: var(--login-mint);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
}

.login-story h1 {
    max-width: 560px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4.3vw, 58px);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.04em;
}

.story-description {
    max-width: 570px;
    margin: 20px 0 0;
    color: rgba(239, 248, 255, .8);
    font-size: 15px;
    line-height: 2.05;
}

.story-points {
    display: grid;
    gap: 10px;
    max-width: 540px;
    margin-top: 35px;
}

.story-points article {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    background: rgba(3, 24, 45, .16);
    backdrop-filter: blur(10px);
}

.story-points article > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: rgba(84, 214, 187, .15);
    color: #8aecd8;
    font-size: 15px;
}

.story-points strong,
.story-points p {
    display: block;
}

.story-points strong {
    color: #fff;
    font-size: 13px;
}

.story-points p {
    margin: 3px 0 0;
    color: rgba(239, 248, 255, .68);
    font-size: 11px;
    line-height: 1.75;
}

.login-copyright {
    position: relative;
    z-index: 1;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
}

.login-access {
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 84% 5%, rgba(84, 214, 187, .11), transparent 17rem),
        #f9fbfd;
}

.login-card {
    width: min(410px, 100%);
}

.mobile-brand {
    display: none;
    margin-bottom: 34px;
    color: var(--login-navy);
}

.mobile-brand .brand-mark {
    border-color: #b9d0df;
    background: linear-gradient(135deg, #1a4e7b, #2c8a80);
}

.access-kicker {
    color: #218b7a;
}

.login-card h2 {
    margin: 0;
    color: var(--login-ink);
    font-size: 30px;
    font-weight: 850;
    line-height: 1.35;
}

.access-description {
    margin: 9px 0 32px;
    color: var(--login-muted);
    font-size: 13px;
}

.login-field {
    margin-top: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #35516b;
    font-size: 12px;
    font-weight: 750;
}

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

.input-wrap > span {
    position: absolute;
    right: 14px;
    z-index: 1;
    color: #7d92a8;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 43px 0 74px;
    border: 1px solid #d9e4ed;
    border-radius: 12px;
    background: #fff;
    color: var(--login-ink);
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrap input::placeholder {
    color: #a2b1c0;
}

.input-wrap input:focus {
    border-color: #299886;
    box-shadow: 0 0 0 4px rgba(84, 214, 187, .17);
}

.password-toggle {
    position: absolute;
    left: 9px;
    z-index: 1;
    padding: 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #37777b;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
}

.password-toggle:hover {
    background: #eef8f6;
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(84, 214, 187, .28);
}

.login-message {
    margin: 18px 0 0;
    padding: 10px 12px;
    border: 1px solid #f1c2c0;
    border-radius: 10px;
    background: #fff5f4;
    color: #b3261e;
    font-size: 12px;
    line-height: 1.7;
}

.login-submit {
    display: inline-flex;
    width: 100%;
    height: 51px;
    align-items: center;
    justify-content: space-between;
    margin-top: 23px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(112deg, #166e68, #197b93);
    box-shadow: 0 11px 22px rgba(22, 110, 104, .18);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.login-submit:hover:not(:disabled) {
    box-shadow: 0 14px 28px rgba(22, 110, 104, .28);
    transform: translateY(-1px);
}

.login-submit:focus-visible {
    outline: 4px solid rgba(84, 214, 187, .3);
    outline-offset: 2px;
}

.login-submit:disabled {
    cursor: wait;
    opacity: .72;
}

.login-submit.is-loading span:first-child {
    color: transparent;
}

.login-submit.is-loading::after {
    position: absolute;
    right: calc(50% - 9px);
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    animation: login-spin .65s linear infinite;
}

.login-help {
    display: grid;
    gap: 3px;
    margin-top: 25px;
    padding-top: 19px;
    border-top: 1px solid #e5edf3;
    color: #8091a4;
    font-size: 11px;
    line-height: 1.7;
}

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

@media (max-width: 920px) {
    .login-shell {
        grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
    }

    .login-story {
        padding: 34px;
    }

    .login-story h1 {
        font-size: 38px;
    }
}

@media (max-width: 720px) {
    .login-shell {
        display: block;
    }

    .login-story {
        min-height: auto;
        padding: 23px 22px 29px;
    }

    .login-story-content {
        margin: 0;
        padding: 43px 0 0;
    }

    .login-story h1 {
        max-width: 430px;
        font-size: 32px;
    }

    .story-description {
        margin-top: 13px;
        font-size: 13px;
        line-height: 1.95;
    }

    .story-points,
    .login-copyright {
        display: none;
    }

    .login-access {
        min-height: 510px;
        padding: 35px 22px;
    }

    .mobile-brand {
        display: inline-flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit,
    .input-wrap input {
        transition: none;
    }

    .login-submit.is-loading::after {
        animation: none;
    }
}
