:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #d1d5db;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
}

* { 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;
}

a { color: var(--primary); }

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.topbar .brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.topbar nav { display: flex; gap: 1rem; align-items: center; }

.container { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}
.card-narrow { max-width: 420px; margin: 0 auto; }
.card h1 { margin-top: 0; font-size: 1.5rem; }

label { display: block; font-weight: 500; margin: 1rem 0 .25rem; }
label.checkbox, .card form div:has(> input[type=checkbox]) label { display: inline; font-weight: normal; }

input[type=email], input[type=password], input[type=text] {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}
input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
input[type=checkbox] { margin: 1rem .4rem 0 0; }

.btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: .6rem 1.2rem;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--muted); }
.btn-block { width: 100%; }

.muted { color: var(--muted); }
.card .muted { margin-top: 1.25rem; font-size: .9rem; text-align: center; }

.alert { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-danger, .alert-error { background: var(--danger-bg); color: var(--danger-text); }

/* Symfony form errors */
.card ul { list-style: none; padding: 0; margin: .25rem 0 0; color: var(--danger-text); font-size: .9rem; }
