:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --line: #d8dee6;
    --text: #1f2933;
    --muted: #667085;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --danger-bg: #fef2f2;
    --danger-text: #991b1b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

.topbar {
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 32px;
}

.brand {
    color: var(--brand-dark);
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.nav a {
    border-radius: 6px;
    color: #344054;
    font-size: 14px;
    padding: 8px 10px;
}

.nav a:hover {
    background: #eef4f3;
    color: var(--brand-dark);
}

.page {
    margin: 0 auto;
    max-width: 1120px;
    padding: 40px 24px;
}

.section-heading {
    margin-bottom: 24px;
}

.eyebrow {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 10px;
}

h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

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

.quick-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-card,
.panel,
.login-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.quick-card {
    display: block;
    min-height: 130px;
    padding: 22px;
}

.quick-card:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.quick-card span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.quick-card small {
    color: var(--muted);
    display: block;
    font-size: 14px;
}

.panel {
    padding: 24px;
}

.login-shell {
    display: grid;
    min-height: calc(100vh - 144px);
    place-items: center;
}

.login-panel {
    display: grid;
    gap: 18px;
    max-width: 420px;
    padding: 30px;
    width: 100%;
}

label {
    color: #344054;
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 6px;
}

input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    padding: 11px 12px;
    width: 100%;
}

input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
    outline: none;
}

button {
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 12px 16px;
}

button:hover {
    background: var(--brand-dark);
}

.alert {
    background: var(--danger-bg);
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: var(--danger-text);
    padding: 10px 12px;
}

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px;
    }

    .nav {
        justify-content: flex-start;
    }

    .page {
        padding: 28px 18px;
    }

    h1 {
        font-size: 28px;
    }
}
