:root {
    --bg-color: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #c2410c; /* Naranja rústico */
    --primary-hover: #9a3412;
    --border: #374151;
    --error: #ef4444;
    --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); display: flex; justify-content: center; min-height: 100vh; padding: 20px; }

/* Formularios y Tarjetas */
.auth-wrapper { width: 100%; max-width: 400px; margin-top: 5vh; }
.auth-card, .dash-card { background: var(--card-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 5px; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.form-group { margin-bottom: 15px; }
label { display: block; font-size: 14px; margin-bottom: 5px; color: var(--text-muted); }
input { width: 100%; padding: 10px 12px; background: var(--bg-color); border: 1px solid var(--border); color: var(--text-main); border-radius: 6px; font-size: 16px; }
input:focus { outline: none; border-color: var(--primary); }

.btn-primary { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { padding: 8px 15px; background: transparent; color: var(--text-main); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.btn-outline:hover { background: var(--border); }

.auth-footer-text { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-footer-text a { color: var(--primary); text-decoration: none; font-weight: bold; }

/* Dashboard */
.dash-wrap { width: 100%; max-width: 700px; margin-top: 20px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.header-actions { display: flex; gap: 15px; align-items: center; }
.badge { background: var(--primary); color: white; padding: 5px 12px; border-radius: 20px; font-size: 14px; font-weight: bold; }
.demo-box { background: #27272a; padding: 15px; border-radius: 8px; margin-top: 10px; font-style: italic; border-left: 4px solid var(--primary); }

/* Alertas */
.alert { padding: 12px; border-radius: 6px; margin-bottom: 15px; font-size: 14px; }
.alert-error { background: rgba(239, 68, 68, 0.2); border: 1px solid var(--error); color: #fca5a5; }
.alert-success { background: rgba(16, 185, 129, 0.2); border: 1px solid var(--success); color: #6ee7b7; }
.alert-info { background: rgba(59, 130, 246, 0.2); border: 1px solid #3b82f6; color: #93c5fd; }