*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --border: #2a2a2a;
    --text: #e4e4e4;
    --text-muted: #888;
    --accent: #6c63ff;
    --accent-hover: #5a52d5;
    --danger: #e74c3c;
    --success: #2ecc71;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.container--wide {
    max-width: 700px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 28px;
    margin-bottom: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.subtitle {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .95rem;
    transition: border-color .2s;
    margin-bottom: 16px;
}

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

button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}

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

.link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: .85rem;
}

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

.link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: .85rem;
    margin-bottom: 16px;
}

.alert--error {
    background: rgba(231,76,60,.1);
    border: 1px solid rgba(231,76,60,.3);
    color: var(--danger);
}

.alert--success {
    background: rgba(46,204,113,.1);
    border: 1px solid rgba(46,204,113,.3);
    color: var(--success);
}

.meta {
    color: var(--text-muted);
    font-size: .8rem;
    margin-bottom: 20px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.actions a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius);
    font-size: .85rem;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: border-color .2s, color .2s;
}

.actions a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    margin-top: 16px;
}

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

th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .75rem;
    background: rgba(108,99,255,.15);
    color: var(--accent);
}

.badge--admin {
    background: rgba(231,76,60,.15);
    color: var(--danger);
}

/* Mobile */
@media (max-width: 600px) {
    body { padding: 10px; align-items: flex-start; }
    .container { padding: 20px; border-radius: 10px; }
    .container--wide { max-width: 100%; }
    h1 { font-size: 1.2rem; }
    table { font-size: .75rem; }
    th, td { padding: 8px 6px; }
    .actions { flex-direction: column; }
    .actions a { padding: 12px; }
}
