/* Pantalla de ingreso común a todo el sistema: la carga desde la obra, el portal del cliente y las apps del celular
   (Equipos y Control de plagas) usan la misma que el ERP y la app de Bienes: fondo azul con verde y tarjeta blanca con
   el logo. Se activa con un contenedor `.ingreso` visible. Incluye el botón "ver contraseña" (ojo.js). */
body:has(.ingreso:not([hidden])) {
  background: radial-gradient(1200px 600px at 10% -10%, #2a5d3a 0%, #0f2238 55%, #0a1829 100%) fixed !important;
  min-height: 100vh;
}
.ingreso[hidden] {
  display: none !important;
}
.ingreso {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 400px;
  margin: 9vh auto 24px;
  padding: 34px 32px;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #1c2733;
}
.ingreso::before {
  content: "";
  display: block;
  width: 220px;
  max-width: 100%;
  height: 96px;
  margin: 0 auto 18px;
  background: url(/marca/logo.png) no-repeat center/contain;
}
.ingreso h1 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #1c2733;
}
.ingreso h1 + p,
.ingreso .ayuda {
  margin: -8px 0 14px;
  color: #64748b;
  font-size: 13px;
}
.ingreso label {
  display: block;
  margin: 0 0 4px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
}
.ingreso input,
.ingreso select {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  background: #fff;
  color: #1c2733;
  font: inherit;
  font-size: 15px;
}
.ingreso input:focus {
  outline: 2px solid rgba(74, 154, 63, 0.35);
  border-color: #4a9a3f;
}
.ingreso button[type="submit"],
.ingreso button.entrar,
.ingreso .btn.pri {
  box-sizing: border-box;
  width: 100%;
  margin-top: 4px;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: #4a9a3f;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  min-height: 0;
}
.ingreso button[type="submit"]:disabled,
.ingreso .btn.pri:disabled {
  opacity: 0.6;
}
.ingreso p a,
.ingreso .enlaces a {
  color: #2d6fb5;
  text-decoration: none;
  font-weight: 500;
}
.ingreso .err {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fde8e6;
  color: #b3261e;
  font-size: 13px;
}
.ingreso .err:empty {
  display: none;
}

/* Botón "ver contraseña" (ojo.js) en cualquier campo de clave, dentro o fuera del ingreso. */
.ojo-wrap {
  position: relative;
  display: block;
}
.ingreso .ojo-wrap,
.login .ojo-wrap {
  margin-bottom: 10px;
}
.ojo-wrap > input {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 0 !important;
  padding-right: 46px !important;
}
.ojo-wrap > .ojo-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none;
  color: #6e7b8a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ojo-wrap > .ojo-btn:hover {
  color: #1c2733;
}
.ojo-wrap > .ojo-btn svg {
  width: 20px;
  height: 20px;
}
