:root {
    --bg: #0e0f12;
    --card: #16181d;
    --border: #262932;
    --text: #e8e6e1;
    --dim: #8a8d96;
    --accent: #c9a24b;
    --accent-dim: #8a7233;
    --error-bg: #2a1616;
    --error-text: #e58585;
    --success-bg: #16241c;
    --success-text: #7fd99a;
    font-family: 'Courier New', ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 4px;
    padding: 36px 32px;
}

.auth-card h1 {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: 0.02em;
}

.subtext {
    color: var(--dim);
    font-size: 13px;
    margin: 0 0 24px;
}

label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dim);
    margin: 16px 0 6px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    background: #0e0f12;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Courier New', ui-monospace, monospace;
}

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

button {
    width: 100%;
    margin-top: 24px;
    padding: 11px;
    background: var(--accent);
    color: #14150f;
    border: none;
    border-radius: 3px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.03em;
    cursor: pointer;
}

button:hover { background: var(--accent-dim); }

.switch-link {
    margin-top: 22px;
    font-size: 13px;
    color: var(--dim);
    text-align: center;
}

.switch-link a, .empty-state a { color: var(--accent); text-decoration: none; }

.alert {
    padding: 10px 12px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 8px;
}

.alert-error { background: var(--error-bg); color: var(--error-text); }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-success a { color: var(--success-text); font-weight: bold; }

/* Dashboard */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
}

.brand { font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }

.topbar-right { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 12px; }

.badge {
    background: var(--accent);
    color: #14150f;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.logout-link { color: var(--dim); text-decoration: none; border: 1px solid var(--border); padding: 5px 10px; border-radius: 3px; }
.logout-link:hover { color: var(--text); border-color: var(--accent); }

.page-wrap { max-width: 720px; margin: 60px auto; padding: 0 24px; }

.empty-state {
    margin-top: 32px;
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: 4px;
    text-align: center;
}

.dim { color: var(--dim); font-size: 13px; }
