
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.bg {
  min-height: 100%;
  background: url('bg.jpg') center/cover no-repeat fixed, linear-gradient(135deg,#e0e7ff,#f0f9ff);
  display: grid;
  place-items: center;
  padding: 24px;
}
.bg-home { background-blend-mode: overlay; }
.card {
  width: 100%; max-width: 380px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
h1 { margin: 0 0 12px; font-size: 22px; text-align: center; }
.form-group { margin-bottom: 12px; }
label { display:block; font-weight:600; margin-bottom:6px; }
input[type="text"], input[type="password"], input[type="email"] {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px;
}
button {
  width: 100%; padding: 12px; border: 0; border-radius: 10px; cursor: pointer;
  font-weight: 700;
}
.btn-primary { background: #2563eb; color: white; }
.btn-link { background: transparent; color: #2563eb; text-decoration: underline; padding: 0; width: auto; cursor:pointer; }
.alert { margin: 10px 0; padding: 10px; border-radius: 8px; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.success { background: #dcfce7; color: #166534; }
.small { font-size: 12px; color:#555; text-align:center; margin-top:8px; }



/* Contenedor con scroll vertical independiente */
.table-scroll {
  max-height: 70vh;      /* altura máxima: 70% del alto de la ventana */
  overflow-y: auto;      /* scroll vertical si se excede */
  overflow-x: auto;      /* scroll horizontal si hay muchas columnas */
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

/* Estética del scroll (opcional) */
.table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
.table-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

