:root {
    --bg: #0c0c0e;
    --surface: #141417;
    --surface-2: #1c1c21;
    --border: #27272e;
    --text: #ededf0;
    --text-muted: #8b8b96;
    --accent: #f4f4f6;
    --accent-text: #0c0c0e;
    --danger: #e55353;
    --warning: #e5a93b;
    --success: #3fb97a;
    --radius: 8px;
    --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--text); text-decoration: none; }

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    max-width: 380px;
}

.card h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 22px;
}

.field { margin-bottom: 14px; }

.field label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.field input, .field select, .field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.field input:focus, .field select:focus, .field textarea:focus {
    border-color: #555563;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s, background 0.15s;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    width: 100%;
}

.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover { background: var(--surface-2); }

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.alert-error {
    background: rgba(229, 83, 83, 0.1);
    border-color: rgba(229, 83, 83, 0.35);
    color: #f3a1a1;
}

.alert-ok {
    background: rgba(63, 185, 122, 0.1);
    border-color: rgba(63, 185, 122, 0.35);
    color: #8ee0b4;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.topbar-brand {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--text-muted);
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 24px;
}