:root {
    color-scheme: light;
    --notebook-navy: #09255a;
    --notebook-blue: #0b68f7;
    --notebook-bright: #3f9fff;
    --text: #10244b;
    --muted: #607199;
    --border: #d7deea;
    --panel: #f8faff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background: var(--panel);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(570px, 52.55%) minmax(540px, 47.45%);
    min-height: 100vh;
}

.login-hero {
    position: relative;
    min-height: 100vh;
    padding: clamp(36px, 4.5vw, 64px) clamp(42px, 4.5vw, 68px) 44px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 48%, rgba(25, 120, 246, .56), transparent 32%),
        radial-gradient(circle at 60% 86%, rgba(11, 43, 132, .8), transparent 35%),
        linear-gradient(145deg, #0649ad 0%, #022c79 52%, #021c56 100%);
}

.login-hero::before {
    content: "";
    position: absolute;
    top: -15%;
    right: -18%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 80px;
    transform: rotate(41deg);
    background: linear-gradient(140deg, rgba(71, 153, 255, .38), rgba(15, 91, 214, .08) 64%);
}

.login-hero::after {
    content: "";
    position: absolute;
    right: -25%;
    bottom: -31%;
    width: 82%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(100, 171, 255, .14);
    box-shadow: 0 0 120px rgba(4, 77, 185, .42) inset;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.hero-glow-one {
    left: -18%;
    bottom: 4%;
    width: 48%;
    height: 38%;
    background: rgba(0, 112, 242, .2);
    filter: blur(70px);
}

.hero-glow-two {
    right: 0;
    top: 35%;
    width: 40%;
    height: 34%;
    background: rgba(40, 135, 255, .2);
    filter: blur(74px);
}

.hero-dots {
    position: absolute;
    z-index: 1;
    top: 5%;
    right: 2.5%;
    width: 126px;
    height: 82px;
    opacity: .62;
    background-image: radial-gradient(circle, rgba(104, 173, 255, .9) 0 3px, transparent 3.5px);
    background-size: 20px 20px;
}

.hero-brand {
    position: relative;
    z-index: 2;
    width: 210px;
    color: rgba(255, 255, 255, .96);
}

.hero-brand img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(1) brightness(0) invert(1);
}

.hero-brand span {
    display: block;
    margin-top: -5px;
    padding-left: 68px;
    font-size: 15px;
    letter-spacing: .03em;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(275px, 42%) 1fr;
    align-items: center;
    min-height: calc(100vh - 230px);
    padding: 38px 0 66px;
}

.hero-copy {
    z-index: 2;
    align-self: start;
    padding-top: clamp(52px, 8vh, 112px);
}

.hero-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 3vw, 52px);
    font-weight: 720;
    line-height: 1.14;
    letter-spacing: -.035em;
}

.hero-copy h1 span {
    color: #4ea4ff;
}

.hero-copy > p {
    max-width: 320px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    line-height: 1.85;
}

.hero-features {
    display: grid;
    gap: 32px;
    margin-top: 42px;
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, rgba(39, 133, 244, .48), rgba(74, 155, 255, .13));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.feature-icon i {
    font-size: 29px;
    line-height: 1;
}

.hero-feature strong,
.hero-feature small {
    display: block;
}

.hero-feature strong {
    margin-top: 3px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.hero-feature small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 1.65;
}

.hero-product {
    position: relative;
    align-self: center;
    width: min(100%, 455px);
    height: 470px;
    margin: 115px 0 0 -4px;
    perspective: 1000px;
}

.product-window {
    position: absolute;
    right: -35px;
    bottom: 42px;
    display: flex;
    width: 425px;
    height: 365px;
    overflow: hidden;
    border: 7px solid rgba(250, 252, 255, .94);
    border-radius: 21px;
    background: #eef4ff;
    box-shadow: 0 38px 55px rgba(0, 13, 55, .38);
    transform: rotateY(-13deg) rotateZ(1.5deg);
    transform-origin: right center;
}

.product-rail {
    display: flex;
    flex: 0 0 45px;
    flex-direction: column;
    align-items: center;
    gap: 17px;
    padding-top: 14px;
    color: rgba(255, 255, 255, .88);
    background: linear-gradient(#0d5edb, #06368e);
}

.product-rail i {
    font-size: 14px;
}

.rail-mark {
    display: grid;
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    place-items: center;
    border-radius: 6px;
    color: #0c55c8;
    background: white;
    font-size: 12px;
    font-weight: 800;
}

.product-screen {
    flex: 1;
    padding: 25px 20px;
    color: #10244b;
    background: linear-gradient(145deg, #fbfdff, #eff5ff);
}

.product-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.product-topbar span {
    width: 36px;
    height: 8px;
    border-radius: 4px;
    background: #dce7f7;
}

.metric-row {
    display: grid;
    grid-template-columns: 1.2fr .78fr 1fr;
    gap: 9px;
    margin-top: 23px;
}

.metric-card {
    min-width: 0;
    padding: 14px 11px;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 7px 18px rgba(36, 71, 125, .06);
}

.metric-card small,
.metric-card strong,
.metric-card em {
    display: block;
    white-space: nowrap;
}

.metric-card small {
    color: #6c7a98;
    font-size: 8px;
}

.metric-card strong {
    overflow: hidden;
    margin: 5px 0;
    font-size: 10px;
    text-overflow: ellipsis;
}

.metric-card em {
    color: #16b87a;
    font-size: 8px;
    font-style: normal;
}

.analytics-card {
    position: relative;
    height: 185px;
    margin-top: 14px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid #e2e9f3;
    border-radius: 8px;
    background: rgba(255, 255, 255, .85);
}

.analytics-card > small {
    color: #4b5c7d;
    font-size: 9px;
    font-weight: 600;
}

.chart-lines {
    position: absolute;
    inset: 52px 105px 33px 18px;
    opacity: .75;
    background: repeating-linear-gradient(to bottom, #e7edf7 0 1px, transparent 1px 24px);
}

.chart-track {
    position: absolute;
    left: 23px;
    bottom: 61px;
    width: 192px;
    height: 52px;
}

.chart-track i {
    position: absolute;
    display: block;
    width: 38px;
    height: 2px;
    border-radius: 2px;
    transform-origin: left center;
    background: #1976ff;
}

.chart-track i:nth-child(1) { left: 0; top: 32px; transform: rotate(-42deg); }
.chart-track i:nth-child(2) { left: 28px; top: 12px; transform: rotate(48deg); }
.chart-track i:nth-child(3) { left: 54px; top: 39px; transform: rotate(-30deg); }
.chart-track i:nth-child(4) { left: 86px; top: 22px; transform: rotate(42deg); }
.chart-track i:nth-child(5) { left: 114px; top: 43px; transform: rotate(-44deg); }
.chart-track i:nth-child(6) { left: 141px; top: 18px; transform: rotate(-20deg); }
.chart-track i:nth-child(7) { left: 176px; top: 7px; transform: rotate(57deg); }

.bar-chart {
    position: absolute;
    right: 38px;
    bottom: 43px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    width: 55px;
    height: 58px;
}

.bar-chart b {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(#5aa7ff, #9ccaff);
}

.bar-chart b:nth-child(1) { height: 31%; }
.bar-chart b:nth-child(2) { height: 58%; }
.bar-chart b:nth-child(3) { height: 44%; }
.bar-chart b:nth-child(4) { height: 78%; }

.pie-chart {
    position: absolute;
    right: 37px;
    bottom: 112px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: conic-gradient(#16b87a 0 34%, #68c9a7 34% 49%, #dce9f5 49% 100%);
}

.product-badge {
    position: absolute;
    z-index: 3;
    left: -20px;
    bottom: 19px;
    display: grid;
    width: 104px;
    height: 124px;
    place-items: center;
    border: 8px solid rgba(255, 255, 255, .75);
    border-radius: 24px;
    background: linear-gradient(145deg, #f9fbff, #dce8fb);
    box-shadow: 0 24px 30px rgba(0, 25, 77, .35);
    transform: rotateY(-7deg) rotateZ(1deg);
}

.product-badge span {
    display: block;
    width: 66px;
    height: 68px;
    overflow: hidden;
}

.product-badge img {
    width: 235px;
    max-width: none;
    height: auto;
    transform: translate(-1px, 4px);
}

.hero-copyright {
    position: absolute;
    z-index: 3;
    left: clamp(42px, 4.5vw, 68px);
    bottom: 34px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.7;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 56px 48px 35px;
    background:
        radial-gradient(circle at 84% 16%, rgba(216, 226, 245, .34), transparent 25%),
        linear-gradient(140deg, #fbfcff, #f7f9fc 65%, #f4f7fb);
}

.login-card {
    width: min(100%, 560px);
    padding: 55px 39px 47px;
    border: 1px solid #d9dfe9;
    border-radius: 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 15px 38px rgba(23, 48, 89, .1);
}

.login-brand {
    width: 260px;
    margin: 0 auto 32px;
}

.login-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.login-heading {
    text-align: center;
}

.login-heading h2 {
    margin: 0;
    color: #0c2047;
    font-size: 27px;
    font-weight: 720;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.login-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.login-alerts {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid #d7e3f6;
    border-radius: 8px;
    color: #1e4a85;
    background: #f2f7ff;
    font-size: 13px;
    line-height: 1.45;
}

.login-alert-error {
    border-color: #f2c8cc;
    color: #9c2733;
    background: #fff5f6;
}

.login-alert-success {
    border-color: #bfe6d6;
    color: #167454;
    background: #f1fbf7;
}

.login-alert i {
    margin-top: 1px;
    font-size: 17px;
    line-height: 1;
}

.login-form {
    display: grid;
    gap: 25px;
    margin-top: 38px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: #11244a;
    font-size: 14px;
    font-weight: 650;
}

.field-group label > span {
    color: #f0394c;
}

.field-control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field-control:focus-within {
    border-color: #6ba7fa;
    box-shadow: 0 0 0 3px rgba(24, 112, 244, .11);
}

.field-icon {
    position: absolute;
    left: 14px;
    color: #173464;
    font-size: 21px;
    line-height: 1;
    pointer-events: none;
}

.field-control input,
.field-control select {
    width: 100%;
    height: 50px;
    padding: 0 42px 0 47px;
    border: 0;
    outline: 0;
    color: #14274e;
    background: transparent;
    font-size: 14px;
}

.field-control input::placeholder {
    color: #8b98b1;
}

.field-control select {
    padding-right: 47px;
    cursor: pointer;
    appearance: none;
}

.select-chevron {
    position: absolute;
    right: 14px;
    color: #18335f;
    font-size: 22px;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 5px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #1b3768;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--notebook-blue);
    background: #f1f6ff;
    outline: 0;
}

.password-toggle i {
    font-size: 21px;
}

.field-help,
.field-error {
    margin: 7px 0 0;
    color: #61739b;
    font-size: 12.5px;
    line-height: 1.45;
}

.field-error {
    color: #bf2f40;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -1px;
    color: #657499;
    font-size: 13px;
}

.form-options a {
    color: #005cf2;
    font-weight: 500;
    text-decoration: none;
}

.form-options a:hover,
.form-options a:focus-visible {
    text-decoration: underline;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.remember-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.remember-option > span {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid #bbc7da;
    border-radius: 4px;
    color: transparent;
    background: #fff;
    transition: .15s ease;
}

.remember-option input:checked + span {
    border-color: #1775f8;
    color: #fff;
    background: #1775f8;
}

.remember-option input:focus-visible + span {
    outline: 3px solid rgba(23, 117, 248, .2);
    outline-offset: 2px;
}

.remember-option i {
    font-size: 14px;
    line-height: 1;
}

.sign-in-button {
    position: relative;
    display: grid;
    width: 100%;
    height: 57px;
    margin-top: 2px;
    padding: 0 52px;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(100deg, #0e67f2, #0869f6 62%, #0a79f9);
    box-shadow: 0 9px 18px rgba(9, 105, 244, .16);
    font-size: 16px;
    font-weight: 550;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.sign-in-button::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
    transition: transform .45s ease;
}

.sign-in-button:hover {
    box-shadow: 0 12px 24px rgba(9, 105, 244, .24);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.sign-in-button:hover::before {
    transform: translateX(100%);
}

.sign-in-button:active {
    transform: translateY(0);
}

.sign-in-button:focus-visible {
    outline: 3px solid rgba(23, 117, 248, .25);
    outline-offset: 3px;
}

.sign-in-button i {
    position: absolute;
    right: 18px;
    font-size: 25px;
}

.login-help {
    margin: 35px 0 0;
    color: #65759a;
    text-align: center;
    font-size: 13px;
}

.login-help span {
    color: #0968f6;
    font-weight: 650;
}

.trust-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 560px);
    margin-top: 43px;
    color: #5d6f96;
    font-size: 12.5px;
}

.trust-row span {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 31px;
    white-space: nowrap;
}

.trust-row span + span {
    border-left: 1px solid #d4dbe7;
}

.trust-row i {
    color: #0968f6;
    font-size: 22px;
}

@media (max-width: 1240px) {
    .login-shell {
        grid-template-columns: minmax(460px, 48%) minmax(500px, 52%);
    }

    .login-hero {
        padding-inline: 42px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-copy {
        padding-top: 55px;
    }

    .hero-product {
        position: absolute;
        right: -120px;
        bottom: 20px;
        width: 380px;
        opacity: .62;
        transform: scale(.82);
    }

    .hero-copyright {
        left: 42px;
    }
}

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

    .login-hero {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 34px 24px 28px;
    }
}

@media (max-width: 620px) {
    .login-panel {
        justify-content: flex-start;
        padding: 26px 18px 24px;
        background: #fff;
    }

    .login-card {
        padding: 28px 4px 22px;
        border: 0;
        box-shadow: none;
    }

    .login-brand {
        width: 220px;
        margin-bottom: 28px;
    }

    .login-heading h2 {
        font-size: 25px;
    }

    .login-heading p {
        font-size: 14px;
    }

    .desktop-break {
        display: none;
    }

    .login-form {
        gap: 22px;
        margin-top: 32px;
    }

    .form-options {
        font-size: 12.5px;
    }

    .trust-row {
        flex-wrap: wrap;
        gap: 13px 0;
        margin-top: 17px;
        font-size: 11px;
    }

    .trust-row span {
        padding: 0 13px;
    }

    .trust-row i {
        font-size: 18px;
    }
}

@media (max-height: 850px) and (min-width: 981px) {
    .login-panel {
        justify-content: flex-start;
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .login-card {
        padding-top: 34px;
        padding-bottom: 31px;
    }

    .login-brand {
        width: 220px;
        margin-bottom: 22px;
    }

    .login-form {
        gap: 18px;
        margin-top: 27px;
    }

    .login-help {
        margin-top: 24px;
    }

    .trust-row {
        margin-top: 24px;
    }
}

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