:root {
    --bg: #f3f5f7;
    --card: #ffffff;
    --text: #15232e;
    --muted: #5b6b78;
    --primary: #0b6fa4;
    --primary-dark: #095a85;
    --danger-bg: #fdecea;
    --danger: #a12a1f;
    --border: #d7dee4;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.05rem; margin: 0 0 .25rem; }
.muted { color: var(--muted); margin-top: 0; }

.login-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 1rem; }
.login-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
label { display: block; margin: 1rem 0 .25rem; font-weight: 600; }
input[type="email"], input[type="password"] {
    width: 100%; padding: .75rem; font-size: 1rem; border: 1px solid var(--border); border-radius: 8px;
}
input:focus, button:focus { outline: 3px solid #8cc7e6; outline-offset: 1px; }
button {
    margin-top: 1.25rem; width: 100%; padding: .8rem; font-size: 1rem; font-weight: 600;
    color: #fff; background: var(--primary); border: 0; border-radius: 8px; cursor: pointer; min-height: 44px;
}
button:hover { background: var(--primary-dark); }
button.secondary { margin: 0; width: auto; padding: .5rem 1rem; background: transparent; color: var(--primary); border: 1px solid var(--primary); }
button.secondary:hover { background: #e6f2f9; }
.alert { background: var(--danger-bg); color: var(--danger); border-radius: 8px; padding: .75rem; margin: 1rem 0 0; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: var(--card); border-bottom: 1px solid var(--border); }
.container { max-width: 1000px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.grid { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.tile p { margin: 0 0 .75rem; color: var(--muted); }
.badge { display: inline-block; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; background: #eef1f4; color: var(--muted); }

@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
