@font-face {
    font-family:Inter;
    src:url('/assets/fonts/inter-regular.ttf') format('truetype');
    font-style:normal;
    font-weight:400;
    font-display:swap;
}

@font-face {
    font-family:Inter;
    src:url('/assets/fonts/inter-semibold.ttf') format('truetype');
    font-style:normal;
    font-weight:500 700;
    font-display:swap;
}

@font-face {
    font-family:'JetBrains Mono';
    src:url('/assets/fonts/mono-regular.ttf') format('truetype');
    font-style:normal;
    font-weight:400 700;
    font-display:swap;
}

:root {
    --bg:#0c0e10;
    --panel:#111416;
    --surface:#171b1e;
    --line:#2a3035;
    --muted:#98a1a9;
    --text:#f5f6f7;
    --accent:#00f0ff;
    --mono:'JetBrains Mono',monospace;
    --sans:Inter,Arial,sans-serif;
    color-scheme:dark;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:var(--sans);
    font-size:14px;
    -webkit-font-smoothing:antialiased;
}

a {
    color:inherit;
    text-decoration:none;
}

button,input,select,textarea {
    font:inherit;
}

button,a,input {
    -webkit-tap-highlight-color:transparent;
}

button {
    cursor:pointer;
}

button:focus-visible,a:focus-visible {
    outline:2px solid var(--accent);
    outline-offset:5px;
}

button {
    transition:background .15s,color .15s;
}

.accent {
    color:var(--accent);
}

.wordmark {
    display:inline-flex;
    align-items:center;
    font-family:var(--mono);
    font-size:31px;
    font-weight:700;
    letter-spacing:-2px;
    line-height:1.1;
}

.brand-dot {
    color:var(--accent);
}

.wordmark-divider {
    height:22px;
    width:1px;
    background:#3b4449;
    margin:0 16px 0 20px;
}

.wordmark-label {
    font-size:11px;
    letter-spacing:2px;
    font-weight:400;
    color:#b1bac0;
}

.login-layout {
    min-height:100svh;
    display:grid;
    grid-template-columns:1.05fr 1fr;
}

.brand-panel {
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:50px 64px 30px;
    border-right:1px solid var(--line);
    overflow:hidden;
    background:radial-gradient(ellipse at 5% 100%,#063a3e66,transparent 55%),#111517;
}

.brand-panel:before {
    content:'';
    position:absolute;
    inset:0;
    background-image:linear-gradient(#91b3be09 1px,transparent 1px),linear-gradient(90deg,#91b3be09 1px,transparent 1px);
    background-size:52px 52px;
    pointer-events:none;
}

.brand-panel>* {
    position:relative;
}

.brand-content {
    padding:76px 0 92px;
}

.eyebrow {
    font-family:var(--mono);
    font-size:10px;
    letter-spacing:1.9px;
    font-weight:400;
    color:var(--muted);
    display:flex;
    align-items:center;
    gap:12px;
    margin:0 0 26px;
}

.tiny-line {
    width:24px;
    height:2px;
    background:var(--accent);
}

.brand-content h1 {
    font-size:clamp(36px,3.4vw,57px);
    line-height:1.14;
    letter-spacing:-2.5px;
    font-weight:500;
    margin:0 0 28px;
}

.brand-description {
    font-size:14px;
    color:#9ca9b0;
    line-height:1.9;
    margin:0;
}

.relationship-map {
    margin-top:60px;
    font-family:var(--mono);
    font-size:9px;
    letter-spacing:1px;
}

.map-top,.map-bottom {
    display:flex;
    align-items:center;
}

.map-node {
    padding:13px 17px;
    border:1px solid #38474e;
    background:#142126aa;
    min-width:122px;
    text-align:center;
    color:#c2cbd0;
}

.map-connector {
    width:30px;
    height:1px;
    background:#38474e;
}

.map-stem {
    height:25px;
    width:1px;
    background:#38474e;
    margin-left:60px;
}

.cyan-node {
    color:var(--accent);
    border-color:#087a81;
    display:flex;
    justify-content:space-between;
}

.map-caption {
    color:#819298;
    font-size:9px;
    letter-spacing:0;
}

.brand-footer {
    display:flex;
    justify-content:space-between;
    gap:20px;
    color:#809097;
    font-family:var(--mono);
    font-size:8px;
    letter-spacing:1px;
}

.login-panel {
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:50px 44px 30px;
    min-width:0;
}

.login-top {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    font-family:var(--mono);
    font-size:9px;
    letter-spacing:1.5px;
    color:#a2aaaf;
}

.status-dot {
    display:inline-block;
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--accent);
    flex-shrink:0;
}

.login-form-wrap {
    width:100%;
    max-width:378px;
    align-self:center;
    margin:65px 0 80px;
}

.login-icon {
    width:42px;
    height:42px;
    border:1px solid #334044;
    display:grid;
    place-items:center;
    color:var(--accent);
    font-size:23px;
    margin-bottom:38px;
}

.login-form-wrap .eyebrow {
    margin-bottom:12px;
    color:var(--accent);
    font-size:9px;
}

.login-form-wrap h2 {
    font-weight:500;
    letter-spacing:-1.2px;
    font-size:29px;
    line-height:1.3;
    margin:0 0 12px;
}

.form-description {
    color:var(--muted);
    font-size:13px;
    margin:0 0 35px;
}

.field {
    margin-bottom:23px;
}

.field label {
    display:block;
    font-size:12px;
    font-weight:500;
    color:#d6dce0;
    margin-bottom:10px;
}

.field input {
    width:100%;
    min-height:49px;
    border:1px solid #32393e;
    background:#15191c;
    border-radius:3px;
    color:var(--text);
    padding:13px 15px;
    font-size:13px;
    outline:none;
    transition:border-color .15s;
}

.field input:focus {
    border-color:var(--accent);
    box-shadow:0 0 0 2px #00f0ff18;
}

.field input::placeholder {
    color:#7c858d;
}

.password-field {
    position:relative;
}

.password-field input {
    padding-right:50px;
}

.password-toggle {
    position:absolute;
    right:1px;
    top:1px;
    width:46px;
    height:47px;
    background:transparent;
    color:#9aa4ac;
    border:0;
    display:grid;
    place-items:center;
}

.password-toggle:hover {
    color:var(--accent);
}

.submit-button {
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    background:var(--accent);
    color:#052326;
    border:0;
    min-height:49px;
    border-radius:3px;
    padding:14px 18px;
    font-size:13px;
    font-weight:600;
    margin-top:30px;
}

.submit-button:hover {
    background:#67f7ff;
}

.submit-button span {
    font-size:20px;
    line-height:1;
}

.private-note {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#9aa3aa;
    font-size:10px;
    border-top:1px solid #252c31;
    margin-top:28px;
    padding-top:23px;
}

.login-footer {
    display:flex;
    justify-content:space-between;
    gap:14px;
    font-size:9px;
    color:#808b92;
}

.login-footer>span:first-child {
    font-family:var(--mono);
    font-size:8px;
    letter-spacing:1.3px;
}

.form-error {
    background:#3a1e22;
    border:1px solid #7d3b47;
    color:#ffcad2;
    padding:13px;
    font-size:12px;
    line-height:1.7;
    margin:0 0 24px;
    border-radius:3px;
}

.workspace {
    display:flex;
    min-height:100svh;
}

.sidebar {
    width:245px;
    background:#111517;
    border-right:1px solid var(--line);
    padding:36px 22px;
    display:flex;
    flex-direction:column;
    flex-shrink:0;
}

.sidebar .wordmark {
    font-size:27px;
    margin:0 8px;
}

.sidebar .wordmark-divider {
    margin-left:16px;
    margin-right:12px;
}

.sidebar-label {
    font-family:var(--mono);
    font-size:8px;
    letter-spacing:1.4px;
    color:#85929a;
    margin:59px 10px 17px;
}

.nav-item {
    display:flex;
    gap:13px;
    padding:14px;
    border-radius:3px;
    font-size:12px;
}

.nav-item.active {
    color:var(--accent);
    background:#073035;
    border:1px solid #12505a;
}

.nav-item>span {
    font-size:17px;
    line-height:1;
}

.sidebar-bottom {
    margin-top:auto;
    font-size:10px;
    color:#9ca7af;
    padding:40px 10px 0;
    display:flex;
    align-items:center;
    gap:9px;
}

.workspace-main {
    display:flex;
    flex-direction:column;
    flex:1;
    min-width:0;
}

.workspace-header {
    height:87px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 44px;
    border-bottom:1px solid var(--line);
    font-size:11px;
    color:var(--muted);
    gap:16px;
}

.workspace-header strong {
    color:#d8dee3;
    font-weight:400;
}

.breadcrumb-divider {
    padding:0 12px;
    color:#5b666f;
}

.logout-button {
    background:transparent;
    border:1px solid #333e45;
    color:#c5cdd2;
    border-radius:3px;
    font-size:11px;
    padding:10px 14px;
    white-space:nowrap;
}

.logout-button:hover {
    border-color:var(--accent);
    color:var(--accent);
}

.logout-button span {
    padding-left:8px;
}

.dashboard-content {
    padding:54px 48px;
    max-width:1320px;
    width:100%;
    margin:0 auto;
}

.dashboard-content .eyebrow {
    font-size:9px;
    margin-bottom:22px;
}

.eyebrow-slash {
    color:#55626b;
    margin:0 4px;
}

.dashboard-content>h1 {
    font-size:36px;
    font-weight:500;
    letter-spacing:-1.5px;
    margin:0 0 13px;
}

.dashboard-description {
    color:var(--muted);
    font-size:13px;
    margin:0 0 38px;
}

.welcome-card {
    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:340px;
    border:1px solid #334047;
    background:radial-gradient(ellipse at 100% 100%,#083a3f77,transparent 60%),#13191c;
    overflow:hidden;
    padding:38px 42px;
}

.welcome-copy {
    max-width:440px;
    position:relative;
    z-index:1;
}

.section-kicker {
    font-family:var(--mono);
    font-size:8px;
    letter-spacing:1.7px;
    color:var(--accent);
}

.welcome-copy h2 {
    font-size:31px;
    line-height:1.25;
    letter-spacing:-1.1px;
    font-weight:500;
    margin:22px 0 18px;
}

.welcome-copy p {
    color:#a4b0b8;
    font-size:12px;
    line-height:1.9;
    max-width:340px;
    margin:0;
}

.connection-confirmation {
    display:inline-flex;
    gap:8px;
    align-items:center;
    margin-top:28px;
    font-family:var(--mono);
    font-size:9px;
    color:#a8babe;
}

.welcome-art {
    position:relative;
    width:250px;
    height:250px;
    flex-shrink:0;
    display:grid;
    place-items:center;
    margin-left:20px;
}

.welcome-art>span {
    font-family:var(--mono);
    font-size:90px;
    letter-spacing:-10px;
}

.orbit {
    position:absolute;
    border:1px solid #4f818544;
    border-radius:50%;
    inset:0;
}

.orbit-two {
    inset:27px;
    border-style:dashed;
}

.orbit-dot {
    position:absolute;
    top:32px;
    right:34px;
    width:9px;
    height:9px;
    border-radius:50%;
    background:var(--accent);
    box-shadow:0 0 25px #00f0ff77;
}

.next-step {
    display:flex;
    align-items:center;
    gap:20px;
    margin-top:22px;
    padding:24px;
    border:1px solid var(--line);
    background:#111518;
}

.step-number {
    font:14px var(--mono);
    color:#8a989f;
}

.next-step strong {
    font-size:12px;
    font-weight:500;
}

.next-step p {
    font-size:11px;
    color:var(--muted);
    line-height:1.7;
    margin:7px 0 0;
}

.next-badge {
    margin-left:auto;
    white-space:nowrap;
    padding:7px 8px;
    border:1px solid #39454c;
    font-family:var(--mono);
    font-size:8px;
    letter-spacing:1px;
    color:#a2afb6;
}

.workspace-footer {
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-top:auto;
    padding:24px 48px;
    font-size:9px;
    color:#829098;
}

.workspace-footer>span {
    font-family:var(--mono);
    font-size:8px;
    letter-spacing:1px;
}

@media(min-width:1600px) {
    .brand-panel {
        padding:60px 88px 36px;
    }
    .login-panel {
        padding:60px 64px 36px;
    }
    .login-form-wrap {
        max-width:400px;
    }
    .brand-content h1 {
        font-size:64px;
    }
}

@media(max-width:1100px) {
    .brand-panel {
        padding:40px 36px 28px;
    }
    .brand-content h1 {
        font-size:43px;
    }
    .login-panel {
        padding:40px 30px 28px;
    }
    .brand-footer {
        font-size:7px;
    }
    .welcome-art {
        width:180px;
        height:180px;
    }
    .welcome-card {
        padding:30px;
    }
    .sidebar {
        width:220px;
    }
    .dashboard-content {
        padding:40px 30px;
    }
    .workspace-header {
        padding:0 30px;
    }
}

@media(max-width:760px) {
    .login-layout {
        display:block;
    }
    .brand-panel {
        padding:28px 26px;
        border-right:0;
        border-bottom:1px solid var(--line);
        background:#111517;
    }
    .brand-panel .wordmark {
        font-size:27px;
    }
    .brand-content,.brand-footer {
        display:none;
    }
    .login-panel {
        min-height:calc(100svh - 87px);
        padding:24px 26px;
    }
    .login-top {
        font-size:8px;
    }
    .login-form-wrap {
        margin:38px 0 54px;
        max-width:400px;
    }
    .login-icon {
        margin-bottom:28px;
    }
    .login-form-wrap h2 {
        font-size:28px;
    }
    .login-panel .field input {
        font-size:16px;
    }
    .private-note {
        font-size:9px;
    }
    .login-footer {
        font-size:8px;
    }
    .sidebar {
        width:100%;
        padding:23px 22px;
        border-right:0;
        border-bottom:1px solid var(--line);
    }
    .sidebar .wordmark {
        font-size:25px;
        margin:0;
    }
    .sidebar-label,.sidebar nav,.sidebar-bottom {
        display:none;
    }
    .workspace {
        display:block;
    }
    .workspace-header {
        height:73px;
        padding:0 22px;
        font-size:10px;
    }
    .workspace-header>span {
        max-width:150px;
        line-height:1.8;
    }
    .breadcrumb-divider {
        padding:0 4px;
    }
    .logout-button {
        font-size:10px;
        padding:9px 10px;
    }
    .dashboard-content {
        padding:36px 22px;
    }
    .dashboard-content>h1 {
        font-size:30px;
    }
    .dashboard-description {
        line-height:1.7;
        margin-bottom:26px;
    }
    .welcome-card {
        padding:28px 24px;
        min-height:320px;
    }
    .welcome-copy h2 {
        font-size:28px;
    }
    .welcome-art {
        display:none;
    }
    .next-step {
        padding:20px 16px;
        gap:12px;
        flex-wrap:wrap;
    }
    .next-step>div {
        flex:1;
        min-width:190px;
    }
    .next-badge {
        margin-left:30px;
    }
    .workspace-footer {
        padding:20px 22px;
        font-size:8px;
    }
    .workspace-footer>span {
        font-size:6px;
        letter-spacing:.5px;
    }
}
