:root {
    --bg: #0b0b10;
    --panel: #12121a;
    --panel-b: #1f2030;
    --accent: #3b82f6;
    --muted: #9aa0b4;
    --text: #e6e6e6;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}

.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
}

.auth-form {
    background: var(--panel);
    border: 1px solid var(--panel-b);
    border-radius: 12px;
    padding: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
}

.auth-form input:not([type="checkbox"]) {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #2a2a34;
    background: #111119;
    color: var(--text);
    margin-bottom: 16px;
}

.auth-form input:focus {
    border-color: var(--accent);
    outline: none;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.errorlist {
    color: #ef4444;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.helptext {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.main-nav {
    background: var(--panel);
    border-bottom: 1px solid var(--panel-b);
    padding: 12px 16px;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--panel-b);
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span { display:block; width:20px; height:2px; background: var(--text); margin:4px 0; }

@media (max-width: 768px) {
    .nav-content { flex-wrap: wrap; gap: 10px; }
    .nav-toggle { display: inline-block; }
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
    .nav-links.open { display: flex; }
    .nav-links a, .nav-links button, .nav-links .inline-form { width: 100%; }
    .nav-links a, .nav-links button { justify-content: flex-start; padding: 10px 12px; border: 1px solid var(--panel-b); border-radius: 10px; }
    .user-info { order: -1; margin: 0 0 4px 0; }
}

.nav-links a,
.nav-links button {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.nav-links a:hover,
.nav-links button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-info {
    color: var(--muted);
    margin-right: 8px;
}

.nav-register {
    background: var(--accent) !important;
}

.nav-register:hover {
    filter: brightness(1.1);
    background: var(--accent);
}

.nav-logout { color: #ef4444 !important; }
.btn-link { background: transparent; border: 1px solid var(--panel-b); border-radius: 8px; }
.btn-link:hover { background: rgba(255,255,255,0.06); }

.nav-admin {
    color: var(--accent) !important;
}