body:has(.login-page) {
    margin: 0;
    background: #f1f6fd;
}

.login-page {
    --login-ink: #18324b;
    --login-muted: #63788f;
    --login-line: #dce6f0;
    --login-blue: #2372e8;
    display: block;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0 clamp(20px, 6.1vw, 94px) 20px;
    overflow-x: clip;
    box-sizing: border-box;
    color: var(--login-ink);
    background: linear-gradient(128deg, #f3f7fd 0%, #edf5ff 54%, #f7faff 100%);
}

.login-page::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(136deg, transparent 47%, rgba(207, 226, 251, .46) 47.1%, rgba(232, 242, 255, .2) 54%, transparent 54.1%),
        radial-gradient(ellipse at 48% 38%, rgba(255, 255, 255, .88), rgba(255, 255, 255, 0) 42%);
    content: "";
    pointer-events: none;
}

.login-page *,
.login-page *::before,
.login-page *::after { box-sizing: border-box; }

.login-workspace {
    display: flex;
    width: min(100%, 1360px);
    min-height: calc(100vh - 20px);
    min-height: calc(100svh - 20px);
    flex-direction: column;
    margin: 0 auto;
}

.login-masthead {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
}

.login-brand-lockup {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.login-brand-lockup:hover,
.login-brand-lockup:focus { color: inherit; text-decoration: none; }

.login-hero-logo {
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 7px;
    object-fit: contain;
}

.login-brand-name { color: #19334c; font-size: 17px; font-weight: 700; line-height: 24px; white-space: nowrap; }
.login-brand-divider { width: 1px; height: 20px; margin: 0 4px; background: #c9d7e6; }
.login-brand-category { color: #6a8099; font-size: 13px; line-height: 20px; white-space: nowrap; }

.login-access-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #617a98;
    font-size: 12px;
    white-space: nowrap;
}

.login-access-label i { color: #3c6fae; font-size: 16px; }

.login-entry-content {
    display: grid;
    flex: 1 0 auto;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
    align-items: center;
    gap: clamp(42px, 5vw, 78px);
    padding: 20px 0 32px;
}

.login-brand-panel { min-width: 0; align-self: start; padding-top: 66px; }

.login-entry-heading h1 {
    margin: 0;
    color: #17324b;
    font-size: 48px;
    font-weight: 750;
    line-height: 1.15;
}

.login-entry-heading h1 strong { color: #2372e8; font-weight: 750; }

.login-entry-heading h2 {
    margin: 7px 0 6px;
    color: #284761;
    font-size: 26px;
    font-weight: 600;
    line-height: 36px;
}

.login-entry-heading p {
    max-width: 620px;
    margin: 0;
    color: #627a94;
    font-size: 14px;
    line-height: 23px;
    overflow-wrap: anywhere;
}

.login-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 47px 0 20px;
    padding: 0;
    list-style: none;
}

.login-feature-item { display: flex; min-width: 0; align-items: flex-start; flex-direction: column; }

.login-feature-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 9px;
    color: #2174ed;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(225,238,255,.72));
    box-shadow: 0 5px 13px rgba(56, 112, 183, .08);
}

.login-feature-icon i { font-size: 23px; }
.login-feature-item strong { color: #29445f; font-size: 13px; font-weight: 700; line-height: 19px; }
.login-feature-item small { margin-top: 3px; color: #7c8fa4; font-size: 10px; line-height: 16px; }

.login-product-showcase {
    position: relative;
    min-width: 0;
    margin: 53px 0 0 -8px;
    padding: 12px 14px 18px 8px;
}

.login-product-showcase::before {
    position: absolute;
    right: 6%;
    bottom: 1px;
    left: -14%;
    height: 24px;
    transform: skewX(-32deg);
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(83, 161, 251, .34), rgba(255,255,255,.62) 56%, rgba(157, 199, 246, .24));
    box-shadow: 0 7px 20px rgba(65, 137, 218, .17);
    content: "";
}

.login-preview-window {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 280px;
    grid-template-columns: 112px minmax(0, 1fr);
    overflow: hidden;
    transform: rotate(-2deg);
    transform-origin: center;
    border: 1px solid rgba(206, 222, 240, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 16px 38px rgba(45, 87, 137, .16), 0 3px 8px rgba(45, 87, 137, .06);
}

.login-preview-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    padding: 13px 8px;
    color: #dceaff;
    background: linear-gradient(180deg, #193858, #102b49);
}

.login-preview-brand { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #fff; font-size: 9px; font-weight: 700; white-space: nowrap; }
.login-preview-brand img { width: 16px; height: 16px; border-radius: 4px; }

.login-preview-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    overflow: hidden;
    border-radius: 4px;
    color: #c1d4ec;
    font-size: 8px;
    line-height: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-preview-nav i { flex: 0 0 auto; font-size: 10px; }
.login-preview-nav.is-current { color: #fff; background: #2e5a88; }

.login-preview-main { min-width: 0; padding: 12px 13px 10px; }

.login-preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
    color: #425c77;
}

.login-preview-topbar strong { font-size: 10px; font-weight: 700; }
.login-preview-topbar span { color: #91a1b2; font-size: 7px; white-space: nowrap; }

.login-preview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }

.login-preview-metric {
    display: flex;
    min-width: 0;
    min-height: 55px;
    flex-direction: column;
    padding: 7px 8px 6px;
    border: 1px solid #edf1f6;
    border-radius: 5px;
    background: rgba(255,255,255,.93);
}

.login-preview-metric small { overflow: hidden; color: #8293a5; font-size: 7px; line-height: 10px; text-overflow: ellipsis; white-space: nowrap; }
.login-preview-metric strong { margin-top: 2px; color: #2a435f; font-size: 14px; font-weight: 700; line-height: 17px; white-space: nowrap; }
.login-preview-metric span { color: #67a796; font-size: 6px; line-height: 9px; }

.login-preview-analytics { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; margin-top: 8px; }

.login-preview-chart,
.login-preview-platforms { min-width: 0; min-height: 126px; padding: 8px; border: 1px solid #edf1f6; border-radius: 5px; background: rgba(255,255,255,.94); }

.login-preview-block-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #526b84; }
.login-preview-block-heading strong { font-size: 8px; font-weight: 700; }
.login-preview-block-heading span { color: #97a6b5; font-size: 6px; white-space: nowrap; }

.login-chart-area {
    position: relative;
    display: flex;
    height: 76px;
    align-items: flex-end;
    justify-content: space-around;
    gap: 4px;
    margin-top: 8px;
    padding: 5px 2px 0;
    border-bottom: 1px solid #dce6f2;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 18px, #edf2f8 19px, transparent 20px);
}

.login-chart-area i {
    width: 7%;
    height: var(--bar-height);
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #65a5fb, #2776e7);
    opacity: .86;
}

.login-chart-axis { display: flex; justify-content: space-between; margin-top: 4px; color: #a0adba; font-size: 6px; }

.login-platform-donut {
    width: 67px;
    height: 67px;
    margin: 8px auto 6px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: conic-gradient(#2d79e9 0 42%, #69b4a1 42% 70%, #f2bd72 70% 83%, #dce6f3 83% 100%);
    box-shadow: inset 0 0 0 13px #fff;
}

.login-platform-legend { display: grid; grid-template-columns: 1fr auto; gap: 3px 5px; color: #8494a4; font-size: 6px; line-height: 9px; }
.login-platform-legend b { color: #586f86; font-weight: 650; text-align: right; }

.login-showcase-seal {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 5px;
    display: flex;
    min-width: 182px;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(218, 231, 247, .95);
    border-radius: 7px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 22px rgba(44, 94, 152, .12);
}

.login-showcase-seal > span { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; border-radius: 7px; color: #fff; background: linear-gradient(145deg, #68a9fb, #216fe3); box-shadow: 0 3px 8px rgba(35, 114, 232, .2); }
.login-showcase-seal > span i { font-size: 17px; }
.login-showcase-seal div { display: flex; flex-direction: column; }
.login-showcase-seal strong { color: #315a85; font-size: 10px; font-weight: 700; line-height: 15px; }
.login-showcase-seal small { color: #8a9caf; font-size: 8px; line-height: 12px; }

.login-showcase-butterfly {
    position: absolute;
    z-index: 2;
    bottom: -5px;
    left: -16px;
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 20px 20px 25px 25px;
    background: linear-gradient(145deg, rgba(224,240,255,.94), rgba(137,192,252,.84));
    box-shadow: 0 8px 19px rgba(38, 118, 216, .2);
    transform: rotate(-7deg);
}

.login-showcase-butterfly img { width: 58px; height: 58px; filter: drop-shadow(0 5px 7px rgba(24, 94, 185, .2)); }

.login-auth-panel { display: flex; min-width: 0; justify-content: flex-end; }

.login-card {
    width: min(100%, 504px);
    padding: 42px 38px 28px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 20px 55px rgba(58, 98, 148, .13), 0 3px 10px rgba(58, 98, 148, .045);
    backdrop-filter: blur(10px);
}

.login-box { width: 100%; min-width: 0; }

.login-card-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 34px; }
.login-card-logo { display: block; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; object-fit: contain; }
.login-card-brand div { display: flex; flex-direction: column; gap: 2px; }
.login-card-brand strong { color: #1f3952; font-size: 15px; font-weight: 700; line-height: 21px; }
.login-card-brand small { color: #8495a7; font-size: 10px; line-height: 15px; }

.login-title { margin: 0 0 3px; color: #18334d; font-size: 25px; font-weight: 700; line-height: 34px; }
.login-card-product { margin: 0 0 20px; color: #7b8fa5; font-size: 12px; line-height: 19px; }
.login-subtitle { margin: 0 0 19px; color: #8799ab; font-size: 11px; line-height: 17px; }

.login-card .auth-mode-switch { margin-bottom: 24px; border-color: #e1e9f2; border-radius: 6px; background: #f7f9fc; }
.login-card .auth-mode-button { min-height: 44px; color: #657b92; font-size: 13px; transition: background-color .16s ease, color .16s ease; }
.login-card .auth-mode-button.is-active { color: #214b80; background: #eaf2ff; box-shadow: inset 0 -2px #2372e8; }
.login-card .form-group { margin-bottom: 17px; }
.login-card .form-group label { margin-bottom: 7px; color: #314b65; font-size: 12px; font-weight: 600; }
.login-card .form-control,
.login-card .input-group-text { min-height: 48px; border-color: #dce5ef; border-radius: 6px; background: #fff; font-size: 13px; }
.login-card .input-group > .input-group-prepend > .input-group-text { border-radius: 6px 0 0 6px; color: #7990a9; background: #f7f9fc; }
.login-card .input-group > .form-control { border-radius: 0 6px 6px 0; }
.login-card .input-group > #password.form-control { border-radius: 0; }
.login-password-toggle { display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid #dce5ef; border-left: 0; border-radius: 0 6px 6px 0; color: #7b90a8; background: #fff; cursor: pointer; }
.login-password-toggle:hover { color: #2372e8; background: #f7faff; }
.login-password-toggle i { font-size: 16px; }
.login-card .form-control:focus { border-color: #77a9ef; box-shadow: 0 0 0 3px rgba(35, 114, 232, .11); }
.login-card .registration-code-row .form-control,
.login-card .captcha-row .form-control { border-radius: 6px; }
.login-card #sendLoginCode { min-height: 48px; border-radius: 6px; font-size: 12px; }

.login-card #rememberLoginField { margin: 2px 0 24px !important; }
.login-card .custom-control-label { color: #657b92; font-size: 12px; }
.login-card #loginButton { position: relative; min-height: 50px; border: 0; border-radius: 6px; background: #2372e8; box-shadow: 0 6px 14px rgba(35, 114, 232, .2); font-size: 14px; font-weight: 650; transition: background-color .16s ease, box-shadow .16s ease; }
.login-card #loginButton::after { margin-left: 8px; content: "→"; font-size: 17px; font-weight: 400; vertical-align: -1px; }
.login-card #loginButton:hover:not(:disabled) { background: #1764d5; box-shadow: 0 8px 18px rgba(35, 114, 232, .25); }
.login-card #registrationSubmit,
.login-card #passwordResetSubmit { min-height: 50px; border: 0; border-radius: 6px; color: #fff; background: #2372e8; box-shadow: 0 6px 14px rgba(35, 114, 232, .2); font-size: 14px; font-weight: 650; transition: background-color .16s ease, box-shadow .16s ease; }
.login-card #registrationSubmit:hover:not(:disabled),
.login-card #passwordResetSubmit:hover:not(:disabled) { background: #1764d5; box-shadow: 0 8px 18px rgba(35, 114, 232, .25); }
.login-card .registration-code-row { grid-template-columns: minmax(0, 1fr) 128px; gap: 9px; }
.login-card #sendRegistrationCode,
.login-card #sendPasswordResetCode { min-height: 48px; padding: 0 9px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.login-card #forgotPasswordLink { text-decoration: none; }
.login-card #loginButton:focus-visible,
.login-card .auth-mode-button:focus-visible,
.login-card .login-password-toggle:focus-visible,
.login-card #registrationSubmit:focus-visible,
.login-card #passwordResetSubmit:focus-visible,
.login-card #sendRegistrationCode:focus-visible,
.login-card #sendPasswordResetCode:focus-visible,
.login-card .text-link-button:focus-visible,
.login-card a:focus-visible { outline: 3px solid rgba(35, 114, 232, .28); outline-offset: 2px; }

.login-card .login-register-link { margin-top: 20px; color: #71869c; font-size: 12px; }
.login-card .login-register-link a { color: #1768df; font-weight: 650; }
.login-card .login-footer { margin-top: 14px; color: #8799ab; font-size: 11px; text-align: center; }
.login-card .text-link-button { color: #1768df; font-size: 11px; }

.login-product-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; margin-top: 27px; padding-top: 19px; color: #98a8b8; border-top: 1px solid #edf1f6; font-size: 10px; line-height: 15px; }

@media (max-width: 1100px) and (min-width: 901px) {
    .login-page { padding-right: 32px; padding-left: 32px; }
    .login-entry-content { grid-template-columns: minmax(0, 1fr) minmax(400px, .94fr); gap: 28px; }
    .login-entry-heading h1 { font-size: 42px; }
    .login-entry-heading h2 { font-size: 22px; }
    .login-feature-grid { gap: 9px; }
    .login-feature-item strong { font-size: 11px; }
    .login-feature-item small { font-size: 9px; }
    .login-preview-window { grid-template-columns: 88px minmax(0,1fr); }
    .login-preview-analytics { grid-template-columns: minmax(0,1fr) 112px; }
    .login-card { padding-right: 30px; padding-left: 30px; }
}

@media (max-width: 900px) {
    .login-workspace { width: min(100%, 700px); }
    .login-entry-content { grid-template-columns: minmax(0,1fr); gap: 24px; padding-top: 26px; }
    .login-brand-panel { display: contents; }
    .login-entry-heading { order: 1; text-align: center; }
    .login-auth-panel { order: 2; justify-content: center; }
    .login-feature-grid { order: 3; margin-top: 8px; }
    .login-product-showcase { order: 4; }
    .login-entry-heading h1 { font-size: 40px; }
    .login-entry-heading h2 { font-size: 22px; line-height: 30px; }
    .login-entry-heading p { margin: 0 auto; }
    .login-card { width: min(100%, 504px); }
    .login-product-showcase { margin: 10px 0 10px; }
}

@media (max-width: 600px) {
    .login-page { padding: 0 15px 12px; }
    .login-workspace { min-height: calc(100vh - 12px); min-height: calc(100svh - 12px); }
    .login-masthead { min-height: 67px; }
    .login-brand-lockup { gap: 8px; }
    .login-hero-logo { width: 34px; height: 34px; flex-basis: 34px; }
    .login-brand-name { font-size: 14px; }
    .login-brand-divider,
    .login-brand-category { display: none; }
    .login-access-label { gap: 5px; font-size: 10px; }
    .login-entry-content { gap: 20px; padding-top: 22px; }
    .login-entry-heading h1 { font-size: 34px; }
    .login-entry-heading h2 { margin-top: 5px; font-size: 18px; line-height: 27px; }
    .login-entry-heading p { max-width: 440px; font-size: 12px; line-height: 19px; }
    .login-feature-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin: 2px 0 8px; }
    .login-feature-icon { width: 39px; height: 39px; margin-bottom: 5px; border-radius: 7px; }
    .login-feature-icon i { font-size: 19px; }
    .login-feature-item strong { font-size: 10px; line-height: 15px; }
    .login-feature-item small { font-size: 8px; line-height: 13px; }
    .login-product-showcase { display: none; }
    .login-card { padding: 28px 25px 22px; }
    .login-card-brand { margin-bottom: 25px; }
    .login-card-logo { width: 40px; height: 40px; flex-basis: 40px; }
    .login-title { font-size: 23px; }
    .login-card .auth-mode-switch { margin-bottom: 20px; }
    .login-card .form-group { margin-bottom: 14px; }
    .login-card .form-control,
    .login-card .input-group-text { min-height: 46px; }
    .login-password-toggle { min-height: 46px; }
    .login-card #sendLoginCode { min-height: 46px; }
    .login-card #registrationSubmit,
    .login-card #passwordResetSubmit { min-height: 46px; }
    .login-card #sendRegistrationCode,
    .login-card #sendPasswordResetCode { min-height: 46px; }
    .login-card #rememberLoginField { margin-bottom: 20px !important; }
    .login-product-footer { margin-top: 20px; padding-top: 14px; font-size: 9px; }
}

@media (max-width: 380px) {
    .login-page { padding-right: 11px; padding-left: 11px; }
    .login-brand-name { font-size: 13px; }
    .login-access-label { font-size: 9px; }
    .login-entry-heading h1 { font-size: 31px; }
    .login-entry-heading h2 { font-size: 16px; }
    .login-feature-grid { gap: 4px; }
    .login-feature-item strong { font-size: 9px; }
    .login-feature-item small { font-size: 7px; }
    .login-card { padding-right: 19px; padding-left: 19px; }
    .login-card .registration-code-row { grid-template-columns: minmax(0,1fr) 104px; gap: 7px; }
    .login-card .captcha-row { grid-template-columns: minmax(0,1fr) 100px; gap: 7px; }
    .login-product-footer span:last-child { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .login-card .auth-mode-button,
    .login-card #loginButton { transition: none; }
}
