:root {
    color-scheme: light;
    --ink: #18211d;
    --muted: #68736d;
    --surface: #ffffff;
    --canvas: #f2f5f2;
    --line: #dce4df;
    --green: #156b4a;
    --green-dark: #0d4c35;
    --lime: #c9f36a;
    --danger: #a32929;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; }

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(201, 243, 106, .18), transparent 32rem),
        #10251d;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr);
}

.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 8vw, 8rem);
    color: white;
}

.brand-panel h1 { max-width: 12ch; margin: .7rem 0 1.25rem; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.055em; }
.brand-copy { max-width: 35rem; color: #b9c9c1; font-size: 1.15rem; line-height: 1.7; }
.brand-mark { width: 4.2rem; height: 4.2rem; display: grid; place-items: center; border-radius: 1.25rem; background: var(--lime); color: var(--green-dark); font-weight: 850; letter-spacing: -.04em; }
.brand-mark.small { width: 2.4rem; height: 2.4rem; border-radius: .75rem; font-size: .78rem; }
.eyebrow { margin: 0; color: var(--green); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.brand-panel .eyebrow { margin-top: 2.5rem; color: var(--lime); }

.login-card {
    align-self: center;
    margin: 2rem clamp(2rem, 6vw, 6rem) 2rem 0;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 2rem;
    background: var(--surface);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, .28);
}

.login-card h2 { margin: .55rem 0 .7rem; font-size: 2rem; letter-spacing: -.035em; }
.muted { color: var(--muted); }
form { display: grid; margin-top: 2.2rem; }
label { margin: 1rem 0 .45rem; font-size: .86rem; font-weight: 750; }
input { width: 100%; padding: .92rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #fbfcfb; outline: none; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21, 107, 74, .12); }
button { border: 0; border-radius: .8rem; padding: .9rem 1.15rem; background: var(--green); color: white; font-weight: 750; cursor: pointer; }
button:hover { background: var(--green-dark); }
button:disabled { opacity: .65; cursor: progress; }
form button { margin-top: 1.4rem; }
.form-error { margin: 1rem 0 0; color: var(--danger); font-size: .9rem; }

.app-header { height: 4.8rem; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 4vw, 4rem); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); }
.app-brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font-weight: 850; }
.account { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .9rem; }
.secondary-button { padding: .58rem .9rem; border: 1px solid var(--line); background: white; color: var(--ink); }
.secondary-button:hover { background: var(--canvas); }
.dashboard { width: min(88rem, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 5rem) 0; }
.welcome { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.welcome h1 { margin: .55rem 0 .5rem; font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: -.055em; }
.status-pill { padding: .65rem .9rem; border-radius: 99rem; background: #e5e9e7; color: var(--muted); font-size: .82rem; font-weight: 750; white-space: nowrap; }
.status-pill.ready { background: #dff5e9; color: var(--green-dark); }
.status-pill.error { background: #f8dfdf; color: var(--danger); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3rem 0 1rem; }
.metric-card { min-height: 12rem; display: flex; flex-direction: column; justify-content: end; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); }
.metric-card.accent { border: 0; background: var(--green-dark); color: white; }
.metric-card strong { margin: .6rem 0 .3rem; font-size: 3.3rem; line-height: 1; letter-spacing: -.06em; }
.metric-card span:last-child { color: var(--muted); font-size: .86rem; }
.metric-card.accent span:last-child { color: #b8cbc2; }
.metric-label { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, .7fr); gap: 1rem; }
.panel { padding: 1.7rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); }
.panel h2 { margin: .4rem 0 0; letter-spacing: -.03em; }
.empty-state { margin-top: 2rem; padding: 2rem; border: 1px dashed var(--line); border-radius: 1rem; color: var(--muted); text-align: center; }
.next-steps { background: #e7f2ec; }
.next-steps ol { margin: 1.5rem 0 0; padding-left: 1.3rem; color: var(--green-dark); }
.next-steps li { padding: .42rem 0; }
.customer-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.customer-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.customer-list span { color: var(--muted); }

@media (max-width: 800px) {
    .login-shell { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .login-card { margin: 1rem; padding: 2rem; }
    .metric-grid, .content-grid { grid-template-columns: 1fr; }
    .welcome { align-items: start; flex-direction: column; }
    .account span { display: none; }
}
