:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #07111d;
    color: #e9f2f7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(20, 184, 166, .14), transparent 30rem),
        linear-gradient(145deg, #07111d, #0a1d2e 65%, #092533);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 430px);
    padding: 42px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: rgba(9, 25, 39, .88);
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #16b8a5;
    color: #041417;
    font-weight: 900;
    letter-spacing: -.04em;
}

.mark.small { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }
.eyebrow { margin: 28px 0 5px; color: #45d7c5; text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.04em; }
.intro { color: #9bb0bd; line-height: 1.6; margin: 12px 0 28px; }
label { display: block; margin: 18px 0 7px; color: #c8d6dd; font-size: 14px; font-weight: 650; }

input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #294153;
    border-radius: 10px;
    background: #07131f;
    color: white;
    font: inherit;
    outline: none;
}

input:focus { border-color: #27c8b5; box-shadow: 0 0 0 3px rgba(39,200,181,.13); }
button {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: #20c7b3;
    color: #041715;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}
button:hover { background: #43d9c7; }
.alert { padding: 12px 14px; border: 1px solid #994b56; border-radius: 9px; background: rgba(153,75,86,.16); color: #ffd6da; font-size: 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(24px, 6vw, 80px); border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar > div { display: flex; align-items: center; gap: 12px; }
.topbar a { color: #9edfd7; text-decoration: none; }
.dashboard { padding: 72px clamp(24px, 8vw, 120px); }
.dashboard .eyebrow { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 36px 0; }
.stats article { padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.035); }
.stats span { display: block; color: #91a7b4; font-size: 13px; }
.stats strong { display: block; margin-top: 8px; font-size: 32px; }
.panel { max-width: 1100px; padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(9,25,39,.72); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 0; }
.status { padding: 8px 11px; border-radius: 999px; background: rgba(32,199,179,.1); color: #8ce6dc; font-size: 13px; }
.status i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #20c7b3; }
.empty-state { margin-top: 44px; max-width: 680px; padding: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.035); }
.empty-state.compact { max-width: none; margin-top: 24px; padding: 25px; }
.empty-state h2 { margin-top: 0; }
.empty-state h3 { margin-top: 0; }
.empty-state p { color: #9bb0bd; }
.table-wrap { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
th { color: #8fa6b3; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 520px) {
    .login-card { padding: 30px 24px; }
}

@media (max-width: 800px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-heading { align-items: flex-start; flex-direction: column; }
}
