/* Tema claro/oscuro para las páginas sin sesión (login y selección de bodega).
   Requiere dark-theme.css y el atributo data-color-scheme en <html>. */

.tema-auth-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1050;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9dee3;
  background: #fff;
  color: #696cff;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(67, 89, 113, .12);
}
.tema-auth-toggle:hover { background: rgba(105, 108, 255, .08); }

html[data-color-scheme="dark"],
html[data-color-scheme="dark"] body {
  background-color: #1e1e2d !important;
  color-scheme: dark;
}
html[data-color-scheme="dark"] .tema-auth-toggle {
  background: #2b2c40;
  border-color: #45465b;
  color: #f5c542;
}
html[data-color-scheme="dark"] .tetris-logo-text { color: #f5f5f9; }

/* Decoración de puntos del fondo de autenticación: más tenue en oscuro */
html[data-color-scheme="dark"] .authentication-wrapper .authentication-inner:before { opacity: .35; }

/* Autocompletado del navegador (Chrome pinta el campo de blanco/amarillo) */
html[data-color-scheme="dark"] input:-webkit-autofill,
html[data-color-scheme="dark"] input:-webkit-autofill:hover,
html[data-color-scheme="dark"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f5f9;
  -webkit-box-shadow: 0 0 0 1000px #2b2c40 inset;
  caret-color: #f5f5f9;
}

/* Selección de bodega */
html[data-color-scheme="dark"] .item-bodega .nombre { color: #f5f5f9; }
html[data-color-scheme="dark"] .item-bodega .codigo { color: #a7acb2; }
html[data-color-scheme="dark"] .item-bodega .icono { background: rgba(105, 108, 255, .2); color: #a5a7ff; }
html[data-color-scheme="dark"] .item-bodega:hover .icono,
html[data-color-scheme="dark"] .item-bodega:focus .icono { background: #696cff; color: #fff; }
