:root {
    color-scheme: light dark;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fg: #111;
    --fg-muted: #555;
    --bg: #fff;
    --border: #d0d0d0;
    --primary: #2b6cb0;
    --primary-hover: #1e4e8c;
    --error: #c53030;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
}

.container {
    max-width: 32rem;
    margin: 4rem auto;
    padding: 0 1.25rem;
}

header h1 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    font-weight: 600;
}

h2 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

footer {
    margin-top: 3rem;
    color: var(--fg-muted);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--fg-muted);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    font: inherit;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--fg);
}

input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
    border-color: var(--primary);
}

button[type="submit"] {
    font: inherit;
    font-weight: 600;
    padding: 0.65rem 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 120ms ease;
}

button[type="submit"]:hover {
    background: var(--primary-hover);
}

.field-error,
.summary-error {
    color: var(--error);
    font-size: 0.875rem;
}

.summary-error ul {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

.muted-link a {
    color: var(--primary);
    text-decoration: none;
}

.muted-link a:hover {
    text-decoration: underline;
}
