:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --border: #334155;
  --error: #f87171;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.auth-container {
  max-width: 380px;
  margin: 10vh auto;
  padding: 2rem;
}
.auth-container h1 { font-size: 1.6rem; margin: 0 0 .3rem; }
.subtitulo { color: var(--muted); margin-bottom: 2rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}

label {
  display: flex; flex-direction: column; gap: .3rem;
  font-size: .85rem; color: var(--muted);
}
input, select {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .7rem .9rem;
  color: var(--text);
  font-size: .95rem;
}
input:focus, select:focus { outline: 2px solid var(--accent); }

button {
  background: var(--accent);
  color: #04283a;
  border: 0;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover { opacity: .9; }

.btn-google {
  width: 100%;
  background: #fff;
  color: #111;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.separador {
  text-align: center; color: var(--muted); margin: 1.2rem 0;
}
.mensaje-error { color: var(--error); font-size: .85rem; margin-top: 1rem; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 1.1rem; margin: 0; }
.topbar > div { display: flex; align-items: center; gap: 1rem; }
.topbar span { color: var(--muted); font-size: .85rem; }
.topbar button { background: transparent; color: var(--accent); padding: .3rem .6rem; }

.panel { padding: 2rem; display: grid; gap: 2rem; }
.filtros { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; }
.filtros h2 { width: 100%; margin: 0; }
.filtros input { flex: 1; min-width: 240px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
th { background: #0b1220; color: var(--muted); }
