:root {
    --navy-950: #071426;
    --navy-900: #0b1f3a;
    --navy-800: #12325a;
    --blue-600: #1268d8;
    --blue-500: #2583f8;
    --blue-100: #eaf3ff;
    --orange-500: #f59e0b;
    --slate-900: #172033;
    --slate-600: #667085;
    --slate-400: #98a2b3;
    --slate-200: #e4e7ec;
    --slate-100: #f2f4f7;
    --white: #fff;
    --danger-700: #b42318;
    --danger-100: #fee4e2;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: #edf3fb;
}

body.login-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 36px 24px 64px;
    overflow-x: hidden;
    color: var(--slate-900);
    background:
        radial-gradient(circle at 12% 12%, rgba(37, 131, 248, .13), transparent 32%),
        radial-gradient(circle at 88% 88%, rgba(245, 158, 11, .1), transparent 26%),
        linear-gradient(145deg, #f7faff 0%, #eaf1fa 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-page__glow {
    position: fixed;
    z-index: 0;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}

.login-page__glow--top {
    top: -245px;
    left: -180px;
    border: 70px solid rgba(18, 104, 216, .12);
}

.login-page__glow--bottom {
    right: -230px;
    bottom: -270px;
    border: 80px solid rgba(245, 158, 11, .1);
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(400px, .96fr);
    width: min(100%, 1040px);
    min-height: 650px;
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 30px;
    background: rgba(255, 255, 255, .82);
    box-shadow:
        0 35px 80px rgba(25, 49, 83, .16),
        0 3px 12px rgba(25, 49, 83, .06);
    backdrop-filter: blur(18px);
}

.login-showcase {
    position: relative;
    display: flex;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 95% 5%, rgba(37, 131, 248, .48), transparent 36%),
        linear-gradient(145deg, var(--navy-900), var(--navy-950));
}

.login-showcase::before,
.login-showcase::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.login-showcase::before {
    right: -165px;
    bottom: -145px;
    width: 390px;
    height: 390px;
    border: 58px solid rgba(255, 255, 255, .055);
}

.login-showcase::after {
    top: 98px;
    right: -72px;
    width: 170px;
    height: 170px;
    border: 32px solid rgba(245, 158, 11, .13);
}

.login-showcase__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 48px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark__logo-wrap {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 17px;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.brand-mark__logo {
    display: block;
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.brand-mark__name {
    max-width: 150px;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.login-showcase__copy {
    max-width: 430px;
    margin: auto 0;
    padding: 64px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #9dc8ff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--orange-500);
    content: "";
}

.login-showcase h1 {
    max-width: 420px;
    margin: 0 0 22px;
    font-size: clamp(34px, 3.5vw, 48px);
    font-weight: 740;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.login-showcase__copy p {
    max-width: 395px;
    margin: 0;
    color: rgba(255, 255, 255, .67);
    font-size: 16px;
    line-height: 1.65;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, .82);
}

.secure-note__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

.secure-note svg {
    width: 20px;
    fill: none;
    stroke: #8fc2ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.secure-note strong,
.secure-note small {
    display: block;
}

.secure-note strong {
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 650;
}

.secure-note small {
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
    line-height: 1.35;
}

.login-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .94);
}

.login-card__content {
    width: 100%;
    padding: 56px clamp(40px, 5vw, 68px);
}

.login-card__header {
    margin-bottom: 34px;
}

.login-card__kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 750;
}

.login-card h2 {
    margin: 0 0 10px;
    color: var(--slate-900);
    font-size: 31px;
    font-weight: 740;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.login-card__header p {
    margin: 0;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.55;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: -8px 0 22px;
    padding: 13px 14px;
    border: 1px solid var(--danger-100);
    border-radius: 12px;
    color: var(--danger-700);
    background: #fff6f5;
    font-size: 13px;
    line-height: 1.45;
}

.login-alert__icon {
    flex: 0 0 auto;
    margin-top: 1px;
}

.login-alert svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.login-alert p {
    margin: 0;
}

.login-alert p + p {
    margin-top: 4px;
}

.login-form {
    display: grid;
    gap: 21px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: #344054;
    font-size: 13px;
    font-weight: 650;
}

.input-wrap {
    position: relative;
}

.input-wrap__icon {
    position: absolute;
    top: 50%;
    left: 15px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: var(--slate-400);
    pointer-events: none;
    transform: translateY(-50%);
    transition: color .2s ease;
}

.input-wrap__icon svg,
.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 46px;
    border: 1px solid #d7dce3;
    border-radius: 13px;
    outline: none;
    color: var(--slate-900);
    background: #fbfcfe;
    font: inherit;
    font-size: 15px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.input-wrap input::placeholder {
    color: var(--slate-400);
}

.input-wrap input:hover {
    border-color: #b6c0cf;
    background: var(--white);
}

.input-wrap input:focus {
    border-color: var(--blue-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 131, 248, .12);
}

.input-wrap:focus-within .input-wrap__icon {
    color: var(--blue-600);
}

.input-wrap input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fbfcfe inset;
    -webkit-text-fill-color: var(--slate-900);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 9px;
    outline: none;
    color: var(--slate-400);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, background-color .2s ease;
}

.password-toggle:hover {
    color: var(--blue-600);
    background: var(--blue-100);
}

.password-toggle:focus-visible {
    color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 131, 248, .18);
}

.password-toggle__hide {
    display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__show {
    display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__hide {
    display: block;
}

.captcha-wrap {
    min-height: 78px;
    overflow: hidden;
    border-radius: 8px;
}

.g-recaptcha > div {
    margin: 0 auto;
}

.login-submit {
    position: relative;
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1px;
    padding: 0 20px;
    overflow: hidden;
    border: 0;
    border-radius: 13px;
    outline: none;
    color: var(--white);
    background: linear-gradient(135deg, #1268d8, #0758bd);
    box-shadow: 0 10px 24px rgba(18, 104, 216, .24);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.login-submit::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .14), transparent 80%);
    content: "";
    transform: translateX(-100%);
    transition: transform .5s ease;
}

.login-submit:hover {
    box-shadow: 0 13px 28px rgba(18, 104, 216, .32);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.login-submit:hover::before {
    transform: translateX(100%);
}

.login-submit:active {
    box-shadow: 0 7px 16px rgba(18, 104, 216, .23);
    transform: translateY(0);
}

.login-submit:focus-visible {
    box-shadow:
        0 10px 24px rgba(18, 104, 216, .24),
        0 0 0 4px rgba(37, 131, 248, .2);
}

.login-submit svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform .2s ease;
}

.login-submit:hover svg {
    transform: translateX(2px);
}

.login-submit__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: login-spin .7s linear infinite;
}

.login-form.is-submitting .login-submit {
    cursor: wait;
    pointer-events: none;
}

.login-form.is-submitting .login-submit__spinner {
    display: block;
}

.login-form.is-submitting .login-submit svg {
    display: none;
}

.login-card__support {
    margin: 24px 0 0;
    color: var(--slate-400);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.login-copyright {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 23px;
    left: 0;
    margin: 0;
    color: #8491a5;
    font-size: 11px;
    font-weight: 550;
    text-align: center;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 880px) {
    body.login-page {
        padding: 24px 18px 58px;
    }

    .login-shell {
        grid-template-columns: minmax(265px, .82fr) minmax(390px, 1.18fr);
        min-height: 610px;
    }

    .login-showcase__content {
        padding: 36px 30px;
    }

    .login-showcase h1 {
        font-size: 33px;
    }

    .login-showcase__copy p {
        font-size: 14px;
    }

    .secure-note small {
        display: none;
    }

    .login-card__content {
        padding: 44px 36px;
    }
}

@media (max-width: 700px) {
    body.login-page {
        display: block;
        padding: 16px 14px 58px;
    }

    .login-shell {
        display: block;
        width: 100%;
        min-height: auto;
        margin: 0 auto;
        border-radius: 24px;
    }

    .login-showcase {
        min-height: 128px;
    }

    .login-showcase__content {
        display: block;
        padding: 24px 26px;
    }

    .brand-mark__logo-wrap {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .brand-mark__logo {
        width: 40px;
        height: 40px;
    }

    .login-showcase__copy,
    .secure-note {
        display: none;
    }

    .login-card__content {
        padding: 34px 26px 30px;
    }
}

@media (max-width: 380px) {
    body.login-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .login-card__content {
        padding-right: 20px;
        padding-left: 20px;
    }

    .login-card h2 {
        font-size: 27px;
    }

    .captcha-wrap {
        width: 100%;
        height: 72px;
        min-height: 72px;
    }

    .g-recaptcha {
        width: 304px;
        transform: scale(.88);
        transform-origin: left top;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
