:root {
    --bg-primary: #18181b;
    --bg-secondary: #1c1c20;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-color: #6366f1;
    --accent-hover: #818cf8;
}

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

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

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-color), #a855f7);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-header .text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
}

.auth-back {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.auth-back:hover { color: var(--text-primary); }

/* Form controls */
.form-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.form-control {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
}
.form-control:focus {
    background: var(--bg-primary);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* 2FA code input */
.auth-code-input {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 1.4rem;
    text-align: center;
    letter-spacing: 0.15em;
    max-width: 220px;
    margin: 0 auto;
    display: block;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #a855f7);
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: opacity 0.15s;
}
.btn-primary:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, var(--accent-color), #a855f7);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.auth-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}
.auth-footer a:hover {
    color: var(--accent-color);
}
