:root {
    color-scheme: light;
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #eef2ff;
    --text: #172033;
    --muted: #667085;
    --primary: #6366f1;
    --primary-strong: #4f46e5;
    --accent: #8b5cf6;
    --success: #16a34a;
    --border: #d9e0ec;
    --danger: #dc2626;
    --shadow: 0 20px 60px rgba(23, 32, 51, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

.dark body {
    background: var(--bg);
}

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

img {
    max-width: 100%;
    display: block;
}

.site-header,
.site-footer {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px clamp(16px, 4vw, 48px);
}

.site-footer {
    border-top: 1px solid var(--border);
    border-bottom: 0;
    color: var(--muted);
}

.brand {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: 20px;
    font-weight: 800;
    gap: 10px;
    white-space: nowrap;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.site-header {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav a {
    color: var(--muted);
    font-weight: 700;
}

.nav a:hover {
    color: var(--primary);
}

.header-shell,
.header-actions {
    align-items: center;
    display: flex;
    gap: 16px;
}

.header-shell {
    justify-content: space-between;
    width: 100%;
}

.container {
    margin: 0 auto;
    max-width: 1200px;
    min-height: calc(100vh - 150px);
    padding: 32px 16px;
}

.auth-page {
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.14), transparent 28%),
        radial-gradient(circle at 80% 12%, rgba(124, 58, 237, 0.12), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(247, 248, 251, 0.72)),
        repeating-linear-gradient(45deg, rgba(37, 99, 235, 0.04) 0 1px, transparent 1px 18px);
    display: flex;
    justify-content: center;
    margin: -32px -16px;
    min-height: calc(100vh - 150px);
    padding: 40px 16px;
}

.hero {
    padding: 80px 0;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    max-width: 780px;
}

.hero p {
    color: var(--muted);
    font-size: 20px;
    max-width: 680px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--border);
    padding: 12px;
    text-align: left;
}
