:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #1e40af;
    --danger: #dc2626;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 0.9375rem;
}

.container {
    width: min(960px, 92%);
    margin: 0 auto;
}

.container--pro {
    width: min(1280px, 96%);
}

.site-header,
.site-footer {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-footer {
    border-bottom: none;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 1rem 0;
    color: var(--muted);
}

.site-header .container,
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header {
    padding: 1rem 0;
}

.brand {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.site-nav a,
.site-nav button {
    margin-left: 0.75rem;
}

a {
    color: var(--primary);
}

main {
    padding: 2rem 0 3rem;
}

.auth-card,
.dashboard-card,
.error-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.dashboard-card,
.error-card {
    max-width: 640px;
}

h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--muted);
    margin-top: 0;
}

label {
    display: block;
    margin: 1rem 0 0.35rem;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--text);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-error {
    background: #fee2e2;
    color: var(--danger);
}

.hidden {
    display: none;
}

.auth-switch {
    margin-top: 1.5rem;
    color: var(--muted);
}

.profile-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem 1rem;
    margin: 1.5rem 0 0;
}

.profile-list dt {
    font-weight: 700;
}

.profile-list dd {
    margin: 0;
}

.loading {
    color: var(--muted);
    margin-top: 1rem;
}

.field-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
