:root {
    color-scheme: light;
    --ink: #1b2822;
    --muted: #68756f;
    --line: #dce4df;
    --paper: #f4f7f5;
    --surface: #ffffff;
    --green: #174f38;
    --green-light: #e5f1e9;
    --gold: #cf9d55;
    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(--paper); }
button, input { font: inherit; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background:
        radial-gradient(circle at 15% 20%, rgba(207, 157, 85, .15), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(23, 79, 56, .12), transparent 30%),
        var(--paper);
}

.login-card {
    width: min(100%, 430px);
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(31, 51, 41, .12);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: white;
    background: var(--green);
    font-family: Georgia, serif;
    font-size: 26px;
}

.brand-mark-small { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
.eyebrow { margin: 24px 0 8px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 5vw, 46px); font-weight: 500; letter-spacing: -.035em; }
.intro { color: var(--muted); line-height: 1.6; }
.form-stack { display: grid; gap: 18px; margin-top: 28px; }
.form-stack label > span:first-child { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.form-stack input[type="email"], .form-stack input[type="password"] { width: 100%; padding: 13px 14px; border: 1px solid #cbd5cf; border-radius: 10px; color: var(--ink); background: white; outline: none; }
.form-stack input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 79, 56, .12); }
.checkbox-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.checkbox-row span:first-child { margin: 0; }
.form-stack button { border: 0; border-radius: 10px; padding: 14px 18px; color: white; background: var(--green); cursor: pointer; font-weight: 800; }
.form-stack button:hover { background: #0f3e2a; }
.alert { padding: 12px 14px; border-radius: 10px; color: #812a28; background: #fbe9e7; font-size: 14px; }

.topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; }
.user-actions { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.text-button { padding: 0; border: 0; color: var(--green); background: none; cursor: pointer; font-weight: 800; }
.content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 80px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.hero .eyebrow { margin-top: 0; }
.system-status { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #cce0d3; border-radius: 999px; color: var(--green); background: var(--green-light); font-size: 13px; font-weight: 800; }
.system-status span { width: 8px; height: 8px; border-radius: 50%; background: #30a165; box-shadow: 0 0 0 4px rgba(48, 161, 101, .13); }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.integration-card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 30px rgba(31, 51, 41, .05); }
.card-topline { display: flex; align-items: center; justify-content: space-between; }
.app-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--green); background: var(--green-light); font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.badge { padding: 6px 10px; border-radius: 999px; color: #735328; background: #f7eddc; font-size: 12px; font-weight: 800; }
.integration-card h2 { margin: 22px 0 8px; font-size: 20px; }
.integration-card p { min-height: 48px; margin: 0; color: var(--muted); line-height: 1.55; }
.card-meta { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 700px) {
    .login-card { padding: 30px 24px; }
    .topbar { padding: 0 20px; }
    .user-actions > span { display: none; }
    .content { padding-top: 40px; }
    .hero { align-items: start; flex-direction: column; }
    .integration-grid { grid-template-columns: 1fr; }
}
