:root {
    /* Brand */
    --tfc-primary: #2563eb;
    --tfc-primary-soft: #dbeafe;
    --tfc-secondary: #0f766e;
    --tfc-accent: #f97316;
    /* Neutrals */
    --tfc-bg: #f3f4f6;
    --tfc-surface: #ffffff;
    --tfc-border: #e5e7eb;
    --tfc-text: #111827;
    --tfc-text-muted: #6b7280;
    /* Semantic */
    --tfc-success: #16a34a;
    --tfc-warning: #f59e0b;
    --tfc-danger: #dc2626;
    --tfc-info: #0ea5e9;
    /* Bootstrap mapping */
    --bs-primary: var(--tfc-primary);
    --bs-secondary: var(--tfc-secondary);
    --bs-success: var(--tfc-success);
    --bs-info: var(--tfc-info);
    --bs-warning: var(--tfc-warning);
    --bs-danger: var(--tfc-danger);
    --bs-body-bg: var(--tfc-bg);
    --bs-body-color: var(--tfc-text);
}

/* Default theme (TFC primary palette) */
body.theme-default {
}

/* Pure Bootstrap-style theme */
body.theme-bootstrap {
    /* Brand-ish mapping from Bootstrap default */
    --tfc-primary: #0d6efd;
    --tfc-primary-soft: #e7f1ff;
    --tfc-secondary: #6c757d;
    --tfc-accent: #0d6efd;
    /* Neutrals similar to Bootstrap */
    --tfc-bg: #f8f9fa;
    --tfc-surface: #ffffff;
    --tfc-border: #dee2e6;
    --tfc-text: #212529;
    --tfc-text-muted: #6c757d;
    /* Semantic (Bootstrap defaults) */
    --tfc-success: #198754;
    --tfc-info: #0dcaf0;
    --tfc-warning: #ffc107;
    --tfc-danger: #dc3545;
}

/* Client A */
body.theme-client-a {
    --tfc-primary: #7c3aed;
    --tfc-primary-soft: #ede9fe;
    --tfc-secondary: #ec4899;
    --tfc-accent: #facc15;
    --tfc-bg: #faf5ff;
    --tfc-surface: #ffffff;
    --tfc-border: #e4e4e7;
    --tfc-text: #111827;
    --tfc-text-muted: #71717a;
}

/* Client B */
body.theme-client-b {
    --tfc-primary: #0ea5e9;
    --tfc-primary-soft: #e0f2fe;
    --tfc-secondary: #1d4ed8;
    --tfc-accent: #f97316;
    --tfc-bg: #eff6ff;
    --tfc-surface: #ffffff;
    --tfc-border: #e5e7eb;
    --tfc-text: #020617;
    --tfc-text-muted: #64748b;
}

/* Client C (dark-ish) */
body.theme-client-c {
    --tfc-primary: #22c55e;
    --tfc-primary-soft: #052e16;
    --tfc-secondary: #0ea5e9;
    --tfc-accent: #eab308;
    --tfc-bg: #020617;
    --tfc-surface: #020617;
    --tfc-border: #1e293b;
    --tfc-text: #e5e7eb;
    --tfc-text-muted: #94a3b8;
}

/* Base styles */
body {
    background-color: var(--tfc-bg);
    color: var(--tfc-text);
}

/* Generic reusable components (design system) */

.tfc-card {
    background-color: var(--tfc-surface);
    border: 1px solid var(--tfc-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border-radius: 0.75rem;
}

.tfc-card--accent {
    border-top: 4px solid var(--tfc-primary);
}

.tfc-heading {
    color: var(--tfc-text);
    font-weight: 600;
}

.tfc-heading-muted {
    color: var(--tfc-text-muted);
    font-size: 0.9rem;
}

.tfc-btn-primary {
    background-color: var(--tfc-primary);
    border-color: var(--tfc-primary);
    color: #ffffff;
}

    .tfc-btn-primary:hover {
        opacity: 0.95;
    }

.tfc-form-label {
    font-weight: 500;
    color: var(--tfc-text);
}

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

.form-control,
.form-select {
    border-color: var(--tfc-border);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--tfc-primary);
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    }

.tfc-badge-accent {
    background-color: var(--tfc-accent);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
}

/* Generic logo mark (if used anywhere) */
.tfc-auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--tfc-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tfc-primary);
    font-weight: 700;
    font-size: 1.25rem;
}
