:root {
    --ui-ink: #111323;
    --ui-copy: #30344a;
    --ui-muted: #7c8299;
    --ui-line: #e6e8f1;
    --ui-surface: #ffffff;
    --ui-soft: #f6f7fb;
    --ui-violet: #5b5ce2;
    --ui-blue: #3174ed;
}

.auth-page-reimagined {
    display: block;
    min-width: 1040px;
    min-height: 100vh;
    overflow: hidden;
    color: var(--ui-copy);
    background:
        radial-gradient(circle at 86% 22%, rgba(93, 104, 235, .08), transparent 26%),
        linear-gradient(135deg, #f8f9fc 0%, #f3f5fa 58%, #f8f9fc 100%);
    font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.auth-page-reimagined::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .55;
    background-image: radial-gradient(rgba(31, 35, 62, .11) .65px, transparent .65px);
    background-size: 22px 22px;
    mask-image: linear-gradient(100deg, #000 0%, transparent 58%);
}

.login-canvas {
    position: relative;
    display: grid;
    grid-template-columns: minmax(570px, 1.12fr) minmax(470px, .88fr);
    grid-template-rows: 84px minmax(0, 1fr);
    width: min(1500px, 100%);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: 0 56px;
    isolation: isolate;
}

.site-bar {
    position: relative;
    z-index: 10;
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(31, 35, 62, .08);
}

.identity {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.identity-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #6b67eb, #3e50cf);
    box-shadow: 0 10px 24px rgba(72, 75, 198, .22), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.identity-mark svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
}

.identity-mark svg path:nth-child(2) { opacity: .48; }
.identity-mark svg path:nth-child(3) { stroke: #bfe8ff; }

.identity-copy {
    display: grid;
    gap: 2px;
}

.identity-copy strong {
    color: var(--ui-ink);
    font-size: 16px;
    font-weight: 760;
    letter-spacing: .01em;
}

.identity-copy small {
    color: #9a9fb2;
    font-size: 8px;
    font-weight: 760;
    letter-spacing: .22em;
}

.private-workspace {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8c91a4;
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .16em;
}

.private-workspace svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #676d84;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.hero-column {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 54px clamp(48px, 5vw, 88px) 54px 10px;
}

.hero-copy {
    max-width: 670px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #686d82;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .18em;
}

.hero-kicker i {
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ui-violet), #71c3f1);
}

.hero-copy h1 {
    margin: 22px 0 22px;
    color: var(--ui-ink);
    font-size: clamp(54px, 5.2vw, 76px);
    font-weight: 790;
    letter-spacing: -.07em;
    line-height: 1.08;
}

.hero-copy h1 em {
    color: transparent;
    background: linear-gradient(105deg, #5654db 0%, #3676ed 46%, #24a6cd 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-style: normal;
}

.hero-copy > p {
    max-width: 580px;
    margin: 0;
    color: #666c82;
    font-size: 15px;
    letter-spacing: .015em;
    line-height: 1.9;
}

.capability-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 660px;
    margin-top: 42px;
    border-top: 1px solid rgba(31, 35, 62, .1);
}

.capability-row > div {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 18px 20px 0 0;
}

.capability-row > div + div {
    padding-left: 24px;
    border-left: 1px solid rgba(31, 35, 62, .08);
}

.capability-row b {
    margin-bottom: 3px;
    color: #7774e6;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.capability-row span {
    color: #25283a;
    font-size: 13px;
    font-weight: 720;
}

.capability-row small {
    color: #a1a5b5;
    font-size: 9px;
    letter-spacing: .04em;
}

.insight-window {
    width: min(100%, 680px);
    margin-top: auto;
    overflow: hidden;
    border: 1px solid rgba(56, 61, 96, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 24px 60px rgba(36, 41, 78, .08), inset 0 1px 0 #fff;
    backdrop-filter: blur(18px);
}

.window-bar {
    display: flex;
    height: 38px;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border-bottom: 1px solid rgba(51, 56, 88, .08);
    color: #999eaf;
    font-size: 8px;
    font-weight: 760;
    letter-spacing: .12em;
}

.window-bar > span:nth-child(2) { margin-right: auto; }
.window-bar > b { color: #4baf87; font-size: 8px; letter-spacing: .15em; }

.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #d7d9e4; }
.window-dots i:nth-child(1) { background: #8c88ec; }

.window-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: stretch;
    min-height: 130px;
    padding: 20px 22px 18px;
}

.metric-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(51, 56, 88, .08);
}

.metric-block > span { color: #959aab; font-size: 10px; }
.metric-block strong { margin: 5px 0 8px; color: #24273a; font-size: 22px; letter-spacing: -.04em; }
.metric-block small { color: #8e93a6; font-size: 9px; }
.metric-block small i { color: #3ca477; font-style: normal; }

.trend-chart {
    position: relative;
    min-width: 0;
    margin-left: 24px;
    overflow: hidden;
}

.chart-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(67, 72, 106, .06) 1px, transparent 1px);
    background-size: 100% 25%;
}

.trend-chart svg { position: absolute; inset: 8px 0 0; width: 100%; height: calc(100% - 12px); overflow: visible; }
.trend-chart .chart-fill { fill: url(#chartFill); stroke: none; }
.trend-chart .chart-line { fill: none; stroke: #5b5ce2; stroke-width: 2; stroke-linecap: round; }
.trend-chart circle { fill: #fff; stroke: #5b5ce2; stroke-width: 2; }

.access-column {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 10px 36px 44px;
}

.access-glow {
    position: absolute;
    top: 50%;
    left: 54%;
    width: min(46vw, 660px);
    height: min(46vw, 660px);
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .92), transparent 18%),
        radial-gradient(circle at 48% 48%, rgba(115, 111, 238, .22), rgba(66, 132, 235, .12) 42%, transparent 70%);
    filter: blur(2px);
    transform: translate(-50%, -50%);
}

.access-orbit {
    position: absolute;
    top: 50%;
    left: 54%;
    border: 1px solid rgba(91, 92, 226, .12);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-one { width: 580px; height: 420px; }
.orbit-two { width: 690px; height: 520px; opacity: .62; transform: translate(-50%, -50%) rotate(18deg); }

.login-card {
    position: relative;
    z-index: 3;
    width: min(100%, 446px);
    padding: 46px 44px 40px;
    overflow: hidden;
    border: 1px solid rgba(42, 47, 83, .09);
    border-radius: 26px;
    background: rgba(255, 255, 255, .88);
    box-shadow:
        0 42px 90px rgba(45, 49, 93, .14),
        0 8px 24px rgba(45, 49, 93, .06),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(24px);
}

.login-card::before {
    position: absolute;
    top: 0;
    left: 44px;
    width: 54px;
    height: 3px;
    border-radius: 0 0 99px 99px;
    content: "";
    background: linear-gradient(90deg, #6c62e5, #4ba4ed);
}

.login-header { margin-bottom: 32px; }

.login-eyebrow {
    display: block;
    color: #6764d8;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .12em;
}

.login-header h2 {
    margin: 13px 0 9px;
    color: var(--ui-ink);
    font-size: 34px;
    font-weight: 780;
    letter-spacing: -.05em;
    line-height: 1.15;
}

.login-header p { margin: 0; color: var(--ui-muted); font-size: 13px; line-height: 1.7; }

.login-form { gap: 18px; }
.control-group { display: grid; gap: 8px; }

.control-label,
.auth-page-reimagined .control-label {
    display: block;
    color: #414559;
    font-size: 12px;
    font-weight: 690;
}

.control-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 13px;
    background: #f8f9fc;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.control-shell:hover { border-color: #d8dae7; background: #fff; }
.control-shell:focus-within {
    border-color: rgba(91, 92, 226, .7);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 92, 226, .09), 0 8px 22px rgba(60, 63, 118, .06);
    transform: translateY(-1px);
}

.control-shell > svg {
    width: 19px;
    height: 19px;
    margin-left: 17px;
    flex: 0 0 19px;
    fill: none;
    stroke: #969bad;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    transition: stroke .2s ease;
}

.control-shell:focus-within > svg { stroke: #5b5ce2; }

.auth-page-reimagined .control-shell input {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 16px 0 12px;
    border: 0;
    outline: 0;
    color: #222538;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
}

.auth-page-reimagined .control-shell-password input { padding-right: 6px; }
.auth-page-reimagined .control-shell input:focus { border: 0; outline: 0; box-shadow: none; }
.auth-page-reimagined .control-shell input::placeholder { color: #a6aaba; opacity: 1; }

.password-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-right: 6px;
    flex: 0 0 42px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #9297aa;
    background: transparent;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.password-toggle:hover { color: #5758d6; background: rgba(91, 92, 226, .07); }
.password-toggle:focus-visible { outline: 2px solid rgba(91, 92, 226, .45); outline-offset: -2px; }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }

.auth-page-reimagined .login-submit {
    position: relative;
    min-height: 56px;
    margin-top: 4px;
    overflow: hidden;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(115deg, #5d56db 0%, #5265e4 52%, #377eea 100%);
    box-shadow: 0 15px 30px rgba(75, 77, 205, .24), inset 0 1px 0 rgba(255, 255, 255, .22);
    font-size: 14px;
    font-weight: 720;
    letter-spacing: .03em;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-page-reimagined .login-submit::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
    transform: translateX(-100%);
    transition: transform .55s ease, opacity .2s ease;
}

.auth-page-reimagined .login-submit:hover {
    filter: saturate(1.1);
    box-shadow: 0 19px 34px rgba(75, 77, 205, .3), inset 0 1px 0 rgba(255, 255, 255, .26);
    transform: translateY(-2px);
}

.auth-page-reimagined .login-submit:hover::before { opacity: 1; transform: translateX(100%); }
.auth-page-reimagined .login-submit:active { transform: translateY(0); }
.auth-page-reimagined .login-submit:focus-visible { outline: 3px solid rgba(91, 92, 226, .25); outline-offset: 3px; }
.login-submit span,
.login-submit svg { position: relative; z-index: 1; }
.login-submit svg { width: 18px; height: 18px; margin-left: 9px; fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transition: transform .2s ease; }
.login-submit:hover svg { transform: translateX(3px); }

.login-assurance { display: flex; justify-content: center; margin-top: 22px; }
.assurance-line { display: inline-flex; align-items: center; gap: 7px; color: #999daf; font-size: 11px; }
.login-assurance svg { width: 15px; height: 15px; fill: none; stroke: #7874df; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -12px 0 22px;
    padding: 11px 13px;
    border: 1px solid rgba(211, 69, 77, .18);
    border-radius: 11px;
    color: #aa3f46;
    background: #fff4f4;
    font-size: 12px;
    line-height: 1.6;
}

.login-alert svg { width: 17px; height: 17px; margin-top: 1px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.login-footer {
    position: relative;
    z-index: 3;
    margin-top: 24px;
    color: #a0a4b5;
    font-size: 8px;
    font-weight: 690;
    letter-spacing: .13em;
}

@media (max-width: 1240px) {
    .login-canvas { padding: 0 40px; grid-template-columns: minmax(510px, 1fr) minmax(430px, .84fr); }
    .hero-column { padding-right: 42px; }
    .hero-copy h1 { font-size: 58px; }
    .access-column { padding-left: 24px; }
    .insight-window { max-width: 600px; }
}

@media (max-height: 780px) {
    .login-canvas { grid-template-rows: 72px minmax(0, 1fr); }
    .hero-column { padding-top: 30px; padding-bottom: 28px; }
    .hero-copy h1 { margin-top: 16px; margin-bottom: 15px; font-size: 54px; }
    .capability-row { margin-top: 28px; }
    .insight-window { margin-top: 34px; }
    .login-card { padding-top: 38px; padding-bottom: 34px; }
}

@media (min-width: 2000px) {
    .login-canvas {
        grid-template-columns: minmax(820px, 1.08fr) minmax(650px, .92fr);
        grid-template-rows: 106px minmax(0, 1fr);
        width: 100%;
        max-width: none;
        padding: 0 clamp(110px, 6.5vw, 260px);
    }

    .identity {
        gap: 16px;
    }

    .identity-mark {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .identity-mark svg {
        width: 33px;
        height: 33px;
    }

    .identity-copy strong {
        font-size: 19px;
    }

    .identity-copy small,
    .private-workspace {
        font-size: 10px;
    }

    .private-workspace svg {
        width: 18px;
        height: 18px;
    }

    .hero-column {
        padding: 68px clamp(80px, 7vw, 180px) 68px 0;
    }

    .hero-copy {
        max-width: 900px;
    }

    .hero-kicker {
        gap: 13px;
        font-size: 12px;
    }

    .hero-kicker i {
        width: 38px;
    }

    .hero-copy h1 {
        margin: 28px 0 28px;
        font-size: clamp(78px, 3.1vw, 108px);
    }

    .hero-copy > p {
        max-width: 760px;
        font-size: 18px;
        line-height: 2;
    }

    .capability-row {
        max-width: 840px;
        margin-top: 54px;
    }

    .capability-row > div {
        gap: 6px;
        padding-top: 23px;
    }

    .capability-row > div + div {
        padding-left: 32px;
    }

    .capability-row b {
        font-size: 10px;
    }

    .capability-row span {
        font-size: 16px;
    }

    .capability-row small {
        font-size: 11px;
    }

    .insight-window {
        width: min(100%, 860px);
        border-radius: 22px;
    }

    .window-bar {
        height: 46px;
        padding: 0 20px;
        font-size: 10px;
    }

    .window-bar > b {
        font-size: 9px;
    }

    .window-body {
        grid-template-columns: 230px 1fr;
        min-height: 168px;
        padding: 26px 28px 22px;
    }

    .metric-block > span {
        font-size: 12px;
    }

    .metric-block strong {
        margin: 7px 0 10px;
        font-size: 28px;
    }

    .metric-block small {
        font-size: 11px;
    }

    .trend-chart {
        margin-left: 32px;
    }

    .access-column {
        padding: 62px 0 46px clamp(30px, 3vw, 80px);
    }

    .access-glow {
        width: min(42vw, 880px);
        height: min(42vw, 880px);
    }

    .orbit-one {
        width: 760px;
        height: 550px;
    }

    .orbit-two {
        width: 910px;
        height: 680px;
    }

    .login-card {
        width: min(100%, 540px);
        padding: 58px 54px 50px;
        border-radius: 31px;
    }

    .login-card::before {
        left: 54px;
        width: 66px;
        height: 4px;
    }

    .login-header {
        margin-bottom: 38px;
    }

    .login-eyebrow {
        font-size: 13px;
    }

    .login-header h2 {
        margin: 16px 0 11px;
        font-size: 42px;
    }

    .login-header p {
        font-size: 15px;
    }

    .login-form {
        gap: 21px;
    }

    .control-group {
        gap: 10px;
    }

    .control-label,
    .auth-page-reimagined .control-label {
        font-size: 14px;
    }

    .control-shell {
        min-height: 64px;
        border-radius: 15px;
    }

    .control-shell > svg {
        width: 22px;
        height: 22px;
        margin-left: 20px;
        flex-basis: 22px;
    }

    .auth-page-reimagined .control-shell input {
        min-height: 62px;
        padding-left: 15px;
        font-size: 16px;
    }

    .password-toggle {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

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

    .auth-page-reimagined .login-submit {
        min-height: 64px;
        border-radius: 15px;
        font-size: 16px;
    }

    .login-submit svg {
        width: 21px;
        height: 21px;
    }

    .login-assurance {
        margin-top: 26px;
    }

    .assurance-line {
        font-size: 13px;
    }

    .login-assurance svg {
        width: 18px;
        height: 18px;
    }

    .login-footer {
        margin-top: 30px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .control-shell,
    .login-submit,
    .login-submit::before,
    .login-submit svg { transition: none; }
}
